Create your first template

Upload a Word document with tags and generate your first document from it.

A template is a regular Microsoft Word document (.docx) in which the parts that change from one document to the next are replaced with tags - placeholders written in double curly braces, like {{CustomerName}}. When you generate a document, every tag is replaced with the value you provide.

This guide takes you from a Word document template to your first generated document in four steps.

1. Prepare your Word document

Open the document you want to automate in Word and replace each piece of variable content with a tag. Keep the rest of the document as it is - the formatting, images, tables and styles are preserved when documents are generated.

For example, a simple order confirmation may contain:

The downloadable example also uses an Items loop for the rows of the order table. You can start with standard tags and add loops when you need repeating content.

A few rules for tag names:

Hello {{Name}},
Thank you for your order from {{CompanyName}}.

ItemPrice
{{ >> Items }} {{Name}}${{Price}} {{ << }}

Total: ${{Total}}

Your order is on its way!

{{CompanyWebsite}}

2. Upload the template

  1. Sign in to TemplateDocs and open the Templates page.
  2. If this is your first template, click Upload Template. If your library already contains templates, click New Template and choose Upload Templates.
  3. Choose your .docx file.
  4. TemplateDocs scans the uploaded file for tags and checks for common problems. If it finds an issue, the upload summary explains it and offers the relevant next steps, such as reviewing suggested fixes, editing online or re-uploading a corrected file.

Prefer to start from nothing? Click Blank Template to create an empty template and add content in the online editor instead.

Templates page with the New Template menu open, showing Upload Templates, Create with AI and Blank Template

3. Review the template

After a clean upload, the template opens in the Quick Document editor. The input panel is built from the tags TemplateDocs detected, and the refreshable preview shows where their values will appear.

Check that the expected fields are present and that the preview still looks right. If a field is missing or a tag name is wrong, open Edit to correct the template in your browser. See Edit a template for a walkthrough.

Quick Document with detected template fields on the left and a live order confirmation preview on the right

4. Generate your first document

You are now ready to try the template:

  1. Fill in a value for each tag, or click Auto-fill to create sample values for you.
  2. Optionally, click the Preview button to see how the document will look with the values you filled in.
  3. Choose the output format - DOCX or PDF.
  4. Click Generate. The finished document is downloaded to your computer.

That's it - you have generated your first document. Every document you generate from now on uses the same template, so the layout stays consistent while the content changes.

Going further