Skip to main content
Word

Fill Word Template

Fill Word Template

Fills a Word document used as a template, replacing placeholders (variables) with the given values and saving the result as a new file. Ideal for automatically generating contracts, reports and standardized documents.


Options

Path to the template

Enter the full path of the Word file used as the template, including the name and the .docx extension. Example: C:\Usuários\Roberty\Desktop\modeloRelatório.docx.

Path to save filled file

Enter the full path where the filled Word document will be saved. Example: C:\Usuários\Roberty\Desktop\relatórioPreenchido.docx.

Fill variables

Define the variables to replace in the document. For each variable, enter:

  • Placeholder name: The placeholder text used in the template (e.g. {{nome}}, {{data}}).
  • Value: The value that replaces the placeholder in the final document.

Returns

This action has no returns.

Rules and Conditions

  • The Path to the template and Path to save filled file fields are required.
  • The template document must contain placeholders in the defined format for the replacement to work correctly.
  • The destination directory must exist before the run.
  • The template file is not modified — a new file is created at the output path.