Overview
Tela’s Document Templater allows you to generate documents from.docx templates by replacing placeholders with dynamic values from your workflow. You create a template once, and Tela fills in the data every time the workflow runs.
How Placeholders Work
Placeholders are markers inside your.docx template that tell Tela where to insert values. They use curly braces with the placeholder name:
{placeholder_name} is replaced with the actual value you mapped in the workflow.
Example
A template with:Creating a Template
Create a .docx file
Open Microsoft Word, Google Docs (export as .docx), or any editor that supports the
.docx format.Write your content
Write the document content as you normally would — formatting, tables, headers, images, and styles are all preserved.
Add placeholders
Where you want dynamic values, type the placeholder name wrapped in curly braces:
{placeholder_name}.Use descriptive names like {client_name}, {contract_date}, or {total_value}.Rules for Placeholders
| Rule | Example | Notes |
|---|---|---|
| Use curly braces | {name} | Single curly braces only |
| No spaces inside braces | {client_name} | Use underscores instead of spaces |
| Case sensitive | {Name} and {name} are different placeholders | Be consistent |
| Can repeat | Use {company} multiple times | Same value is inserted everywhere |
| Works in tables | Place {value} inside table cells | Formatting is preserved |
Using Templates in Workflows
- Add a Generate Document node to your workflow
- Upload your
.docxtemplate - Tela automatically extracts all placeholders from the template
- Map each placeholder to a workflow variable or a previous step’s output
- Set the output filename
- Run the workflow — the generated document is available as output
Tips
Keep placeholders simple
Use short, descriptive names. Avoid special characters other than underscores.
Test with sample data
Before using in production, run the workflow with test values to verify formatting.
Preserve formatting
Placeholders inherit the formatting (bold, italic, font size) of the surrounding text.
Use tables for structured data
Place placeholders inside table cells for invoices, reports, or forms.