Processing
Template Fill Nodes Reference
Technical reference for `pdfFormFill` and `wordFormFill`, including field detection, mapping behavior, and output naming.
Updated 2 min read
Overview
These nodes merge structured workflow data into document templates:
pdfFormFillfills existing AcroForm fields in a PDF.wordFormFillreplaces{{placeholder}}tokens in a DOCX template and can output DOCX or PDF.
Configuration / Settings
| Node | Setting | Type | Required | Details |
|---|---|---|---|---|
pdfFormFill | mappings | object | Yes | Maps PDF field names to expressions like {{sheet_node.email}}. |
wordFormFill | mappings | object | Yes | Maps placeholder names to expressions. |
wordFormFill | output_format | docx or pdf | No | Defaults to docx. |
Inputs Expected
pdfFormFillexpects PDF files with interactive form fields.wordFormFillexpects DOCX files containing{{placeholder}}markers.- Both nodes are designed to pair with structured inputs such as
excel,googleSheets,httpRequest, or webhook bodies.
Variables Exported / Outputs
| Node | Output shape | Filename behavior |
|---|---|---|
pdfFormFill | Blob[] | Each result is named <original>-filled.pdf. |
wordFormFill | Blob[] | Each result is named <original>-filled.docx or .pdf. |
Common Use Cases
- Fill onboarding packets from spreadsheet rows.
- Merge JSON from a webhook into a Word template and return a final PDF.
- Loop over many records and generate one filled document per row.
Edge Cases
pdfFormFillthrows when no PDF file is received or when the fill API is unavailable.wordFormFillhas multiple fallback paths to recover files from blobs, file IDs, loop payloads, and upstream graph context.- Auto-detection only helps map fields. It does not guarantee that every placeholder or form field has a value at runtime.