πŸ”¬ Streamlining document automation with n8n and JSReport

⚑ 3,033 views Β· πŸ”¬ Document Extraction & Analysis

Description

Who is this template for?

This workflow template is designed for accounting, human resources, and IT project management teams looking to automate the generation of PDF and Word documents. It can be particularly useful for:

Example result in mail

invoice.png

This PDF and Word document generation workflow offers a practical and efficient solution for automating administrative and document-related tasks, allowing teams to focus on higher-value activities.

How it works

This workflow currently operates with an n8n form, but you can easily replace this form with a webhook triggered by an external application such as AirTable, SharePoint, DocuWare, etc.

Once the configuration information is retrieved, we fill the API request body of JSReport. The body is defined at the time of template creation in JSReport (Example of JSReport usage).

Then, in a straightforward manner, we fetch the PDF and send it via email.

Here’s a brief overview of this n8n workflow template: Link to n8n workflow template presentation

To summarize

  1. This workflow integrates with an n8n form, but it’s flexible to work with various triggering methods like webhooks from other applications such as AirTable, SharePoint, or DocuWare.
  2. After configuring the necessary information, it populates the API request body of JSReport, which defines the template in JSReport.
  3. Once the template is populated, it retrieves the PDF and sends it via email.
  4. In essence, it streamlines the process of generating PDF documents based on user input and distributing them via email.

Instructions:

  1. Create a JSReport Account: Sign up for a JSReport account to create your PDF template model.
  2. Define PDF Template in JSReport: Use JSON data from your system to set up the content of your PDF template in JSReport.
  3. Configure HTTP Request in n8n: Use the HTTP Request node in n8n to send a request to JSReport. Set the node’s body to the JSON data defining your PDF template. Watch the Video: For detailed setup guidance, watch the setup video.

Remember, this template was created in n8n v1.38.2.

πŸ”— Nodes Used

HTTP Request, Gmail, n8n Form Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup