How to Automate Employee Leave Requests with n8n: From Submission to PDF Storage

In this video, a simple n8n workflow is demonstrated for handling vacation leave requests automatically.

The process begins when an employee submits their leave request.
An HTTP request collects all the necessary details: including the employee’s name, the leave dates, and their digital signature.

The signature image is then resized, making sure it fits cleanly on the document.

Next, a Word document is generated from a template. The employee’s details, leave dates, and signature are placed into the correct sections automatically.

The document is saved temporarily and converted into a PDF. This ensures the file is professional, easy to share, and cannot be edited accidentally.

A clear, descriptive file name is created — for example, ‘Leave Request – John Smith – July 10 to July 15.’

The workflow then checks the folders in OneDrive, filters to find the correct location, and prepares the file for upload.

The finalized PDF is uploaded to OneDrive, where it is safely stored and accessible to HR.

Finally, temporary files are removed to keep everything clean and organized.

This workflow transforms a simple leave request into a signed PDF, automatically stored in the right place, with no manual work required.

Share this post