Generate Document Node

Purpose

The Generate Document node dynamically creates a PDF file using a pre-defined Blade template and data from your flow. It is perfect for generating invoices, quotations, receipts, or certificates on the fly.

Configuration

  1. Template: Select the document template you want to use from the dropdown menu. Available templates include invoice, quotation, receipt, and more.
  2. Data Source: This field requires a variable that contains the JSON data needed to populate the template. You typically use an LLM / OpenAI node or a Set Variable node just before this one to construct the JSON object.
  3. Output URL Variable: Specify the name of the variable where the URL of the generated PDF will be stored (e.g., document_url).

Usage Example

To generate an invoice, you would first use an LLM node to structure data into a variable called {{invoice_data}}. The JSON might look like this: {"invoiceNumber": "123", "clientName": "John Doe", "items": [...]}. Then, in the Generate Document node, you would set the Data Source to {{invoice_data_message}}. The URL of the created PDF will be saved in the output variable you define, which you can then use in a Send Media (PDF) node.

Zimflow AI Assistant

If you still need help, you can open a support ticket.

Create Support Ticket

Cookie Consent

We use cookies to enhance your experience, in compliance with Zimbabwe's Data Protection Act. By continuing, you agree to our Privacy Policy.

Learn more