Skip to main content

Generate documents from saved templates and variables using Autype

Workflow preview

Workflow preview
100%
Generate documents from saved templates and variables using Autype preview
Open on n8n.io

1. Workflow Overview

️ Important: This workflow uses the Autype community node and requires a self hosted n8n insta...

Best for

  • Document Extraction automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.set, n8n-nodes-autype.autype, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by 8Automator.

Original n8n.io source

1.1 Workflow description

Title
Generate documents from saved templates and variables using Autype
Workflow name
Generate documents from saved templates and variables using Autype

⚠️ Important: This workflow uses the Autype community node and requires a self-hosted n8n instance.

This workflow shows how to turn a centrally managed Autype document template into a fully automated document generation pipeline: injecting dynamic data at render time to produce professional PDF, DOCX, or ODT files at scale. No manual editing of the template is ever required.

Who is this for?

This workflow is for developers, operations teams, and HR or finance departments who need to generate professional documents at scale (certificates, offer letters, invoices, reports, or contracts) where the layout and branding stay fixed but the content changes per recipient or record. It covers the full document automation lifecycle: template creation, variable injection, and output delivery.

What this workflow does

The example generates a personalized Employee of the Month certificate as a styled PDF including a company logo in the header, a profile photo, an achievements table, a current date, and a signature field. All content is injected dynamically via Autype's variable system without modifying the template itself.

The workflow demonstrates all major Autype variable types in one flow:

  • Text: plain text, e.g. recipient name, award month
  • Number: numeric values, e.g. employee ID
  • Table: structured tabular data with column headers and rows
  • Image: profile photos, signatures, or any image URL

It also includes a one-time setup section that creates the Autype project and document template entirely via API, so that the full pipeline can be bootstrapped from n8n without ever touching the web editor.

How it works

One-time setup (run once, then disable):

  1. Create Project: Creates an Autype project named "Certificates" via API.
  2. Create Document: Creates the template document with full content JSON (layout, styling defaults, variable placeholders) inside that project. Returns the document ID.

Main flow (runs every time): 3. Certificate Form: An n8n form collects: recipient name, employee ID, award month, achievements (textarea → parsed into a table variable), profile photo URL, and signature image URL. 4. Set Form Variables: Maps form fields, pre-computes the achievements data array, and stores the document ID. 5. Get Document Variables: Fetches the variable schema from the saved template (useful for debugging or dynamic form generation). 6. Render Document with Variables: Renders the saved template with all injected variable values and downloads the finished PDF.

Setup

  1. Install n8n-nodes-autype via Settings → Community Nodes (self-hosted n8n only).
  2. Get your API key at app.autype.comAPI Keys.
  3. Add an Autype API credential in n8n and update YOUR_CREDENTIAL_ID in each Autype node.
  4. Run the one-time setup: Trigger the Create Project node manually, copy the document id from the Create Document output, and paste it into the documentId field in Set Form Variables. Then disable the setup nodes.

Recommended: use the Autype web editor Instead of the One-Time Step: Creating and editing templates is much easier at app.autype.com. The AI agent in the editor can generate a complete document template from a single prompt with one click. Once saved, the document ID is visible directly in the URL, for example https://app.autype.com/document/a70a811d-a745-46f8-8eeb-bb9f2eb8cegb — where the last segment (a70a811d-a745-46f8-8eeb-bb9f2eb8cegb) is your document ID. Use the JSON/Markdown switch in the editor to view and copy the full document JSON, or open the Bulk tab to see exactly how the variable input structure should look.

Note: This is a community node and not maintained by the n8n team. Requires a self-hosted n8n instance.

Bulk document generation

This workflow is equally suited for bulk document generation : replace the Form Trigger with a database query, Google Sheets read, or webhook that returns multiple records, then loop over them using an n8n Split In Batches or Code node to render one document per record. Autype also provides a dedicated Bulk Render API that accepts a list of variable sets in one request for maximum throughput.

Requirements

  • Self-hosted n8n instance (community nodes are not available on n8n Cloud)
  • Autype account with API key (free tier available)
  • n8n-nodes-autype community node installed

How to customize

  • Output format: Change document.type in the template JSON to docx or odt for Word-compatible or OpenDocument output instead of PDF.
  • Different use case: Swap the certificate layout for invoices, offer letters, NDA contracts, or any business document. Update the variable names and form fields accordingly.
  • Pull data dynamically: Replace the Form Trigger with a webhook, CRM read, database query, or HTTP request and map the response fields to your variable names.
  • Skip variable lookup: If you already know your variable names, remove the Get Document Variables node and connect Set Form Variables directly to Render Document with Variables.
  • JSON syntax reference: See all available document elements (tables, charts, images, page breaks, etc.) in the Autype JSON Syntax Reference.
  • Post-processing: Use the Autype Tools API to further process the rendered PDF: add watermarks, password-protect the file, compress it, split pages, or rotate content — all directly from n8n.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Certificate Form

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 2 - Set Form Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Get Document Variables

Type / Role
n8n-nodes-autype.autype - autype
Config choices
Version 1

Block 4 - Render Document with Variables

Type / Role
n8n-nodes-autype.autype - autype
Config choices
Version 1

Block 5 - Create Project

Type / Role
n8n-nodes-autype.autype - autype
Config choices
Version 1

Block 6 - Create Document

Type / Role
n8n-nodes-autype.autype - autype
Config choices
Version 1

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

3. Summary Table

Workflow Generate documents from saved templates and variables using Autype
Complexity intermediate
Nodes 12
Categories Document Extraction, Multimodal AI
Author 8Automator
Published 01 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13784/13784.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate documents from saved templates and variables using Autype do?

️ Important: This workflow uses the Autype community node and requires a self hosted n8n insta...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, Multimodal AI use case.