Create your first document

Learn the basics of TemplateDocs by creating your first document.

A template is a regular Microsoft Word document (.docx) in which the parts that change from one document to the next are marked 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:

  • {{ Name }} - the name of the customer
  • {{ CompanyName }} - the name of their company
  • {{ Total }} - the order total
  • {{ CompanyWebsite }} - your website address

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:

  • Tags are surrounded by double curly braces: {{ and }}.
  • Tag names must start with an English letter and can contain English letters, numbers and underscores. No spaces or dashes.
  • Tag names are case-sensitive: {{ Name }} and {{ name }} are two different tags.
  • Spaces before or after the tag name are ignored. So {{ Name }} and {{Name}} are the same tag.

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 you wish to make changes, open the Edit tab to edit the template in your browser. See Edit a template for a walkthrough and more options.

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.

Next Steps