Skip to main content

Word template in Make

PDF4me Word Template is the most flexible template family in Make Generate Document Single. It takes a standard .docx file with template placeholders that match your JSON or XML keys, and outputs a personalized PDF or Word document. Use it for invoices, contracts, certificates, and letters without any manual mail merge.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

Before You Start​

Word .docx with template placeholders
The sample template.docx contains placeholders that map to keys in your data file. Placeholder names must match your JSON or XML field names exactly, including nesting.
Matching data file
Use data.json (recommended), test.xml, or test.csv. The same values populate the template regardless of format.
PDF4me connection in Make
Create a PDF4me connection in Make and paste your API key. The same key works across every PDF4me module in your scenario.

Sample File Pack​

Download the files below. One Word template plus matching data in JSON, XML, and CSV.

Make PDF4me Generate Document Single module. Connection is set to a PDF4me account. Template File Type is PDF4me Word Template. Output Type is Word. File source is Map with Template Name mapped from previous step File Name and Template mapped from previous step Data. Document DataType is Json and Document Data Text shows an inline JSON object with Name, Age, and Birth fields. Document Data File and Meta Data Json are empty.

Target configuration: PDF4me Word Template + JSON in Document Data Text + PDF output.

What is the PDF4me Word Template template in Make?​

The PDF4me Word Template family merges a Microsoft Word .docx file with your data at run time. The .docx acts as a fully designed layout (logos, tables, styles) and the module replaces the placeholders with values from the data file. It is the recommended choice when your document needs precise formatting and reusable branding.

How do I configure PDF4me Word Template in Make?​

Set the module fields as below. Required fields are marked with a red asterisk in the Make UI.

ParameterRequiredWhat it doesExample
ConnectionRequiredPDF4me connection for the scenario. Click Add to create one with your API key.My PDF4me connection
Template File TypeRequiredSet to PDF4me Word Template for this template family. Options: PDF4me Word Template, Html, Mail Merge, Google Docs, Pdf Form. Defaults to PDF4me Word Template.PDF4me Word Template
Output TypeConditionalFormat of the generated document. Options: Pdf, Word. Defaults to Docx.Pdf
FileRequiredHow the template file reaches the module. The radio lists your connected storage actions (for example Dropbox - Download a File) and Map. Choose Map to wire the fields below from earlier modules: Template Name, Template and Document Data File only appear once Map is selected.Map
Template NameRequiredTemplate file name including extension. Map from the prior module file name output.template.docx
TemplateRequiredTemplate file binary. Map from the prior module data output (for example 1. Data from Dropbox Download a File).1. Data
Document DataTypeRequiredFormat of the data payload. Options: Json, XML, Csv. Defaults to Json.Json
Document Data TextOptionalInline JSON or XML data. Use when Document Data File is empty.data.json
Document Data FileOptionalMapped data file from a prior module. Use when Document Data Text is empty.1. Data
Meta Data JsonOptionalOptional JSON describing advanced field settings for the template.

Output​

The module returns one bundle per run. The generated file is placed on the Document output field. PDF4me may process the request as a background job, and Make waits for the result before the next module runs.

FieldTypeWhat it contains
File NameFile nameOutput filename based on Template Name with the extension matching Output Type.
DocumentFile (binary data)The generated document. Map into a downstream Upload File or Send Email Attachment module.

Production patterns​

Common Make patterns for Word templatesReplace the manual test with these once the sample works.
Template from cloud storage
  1. Dropbox or Google Drive stores template.docx.
  2. Download a File loads the template as binary.
  3. Generate Document Single maps Template Name and Template.
  4. Data is built from Sheets or a webhook as JSON.
Webhook to delivered PDF
  1. Webhook receives the record payload.
  2. Generate Document Single merges it with the template.
  3. Output Type is PDF.
  4. Send Email or Upload File delivers Document.
Batch from a data source
  1. Search Records returns many rows.
  2. Iterator loops one record at a time.
  3. Generate Document Single runs once per record.
  4. Each file is uploaded to a per-record folder.

Frequently Asked Questions​

What placeholder syntax does a PDF4me Word template use?+
The .docx uses template placeholders that match the keys in your data file. Nested keys map to nested placeholders, and the names must match your JSON or XML exactly. Download the sample template.docx to see the working placeholders.
Can a Word template output PDF instead of Word?+
Yes. Output Type is independent of the template. Set Output Type to PDF for a locked layout (most common for invoices and contracts) or Word for an editable .docx.
Where do I store the template file for Make?+
Keep template.docx in Dropbox, Google Drive, or OneDrive. Add a Download a File module before Generate Document Single and map Template Name and Template from it.
Do I have to use JSON, or can I use XML or CSV?+
Set Document DataType to Json or Xml. The sample pack includes data.json, test.xml, and test.csv with identical values so you can test each format.

For the underlying template engine, see the Aspose Words for .NET documentation and the Make data structures reference.