Templates, variables and auto-fill

System Admin

Last updated on Nov 23, 2026

Overview

Templates are reusable models of your contracts. You create a template once, define the variable parts with {{ }} (for example, customer name, tax ID, amount, dates) and generate as many contracts from it as you like. When generating, the variables are filled in automatically with the data that already exists in your workspace โ€” contact, conversation, CRM deal, catalog and account โ€” leaving you to simply review and adjust anything missing.

You can build the template in the platform's editor or upload a ready-made model. There is also a reusable clause library to standardize common passages across multiple templates.

Prerequisites

  • Contracts module enabled and a user with permission to manage templates.
  • The contract content (base text) and the list of fields that change from one contract to another.
  • For auto-fill to work well, the source data (contact, deal, etc.) should be populated.

Step by step

  1. In the Contracts area, open Templates and create a new one.
  2. Write the content in the editor or upload a ready-made model.
  3. Wherever the text changes from one contract to another, insert a variable in the form {{ variable }}.
  4. Reuse common passages from the clause library.
  5. Save the template.
  6. To issue, generate a contract from the template: the variables are filled in automatically with the source data (contact/conversation/deal/catalog/account).
  7. Review the filled-in values, manually adjust anything missing and proceed to signing.

Settings & options

  • Data source: variables can be filled from the contact, conversation, CRM deal, catalog and account data.
  • Manual entry: any variable can be edited by hand before sending.
  • Agentic generation: Maestro can help draft/fill the contract from the conversation context.
  • Clause library: standardize clauses and reuse them across multiple templates.
  • Model upload: import an already-formatted document and turn it into a template.

Template used by the closing policy

A template with Use integrated closing financial agreement on can be chosen in Contract template of the closing policy (Sales โ†’ Settings โ†’ Proposals, pipeline, product or plan template). When the policy creates a contract, the accepted agreement becomes a contract of this template, with the agreement appendix at the end and the closing_total_amount and closing_currency variables filled. Turning the option off, archiving or deactivating the template makes the next proposal be refused until another template is chosen.

Use cases

  • A standard service agreement with variable name, tax ID, scope and amount.
  • Proposals and membership terms that change only a few fields per customer.
  • Reuse of legal clauses (confidentiality, termination, jurisdiction) across different templates.

Tips, limits & best practices

  • Line breaks in the body (Markdown): a single line break inside a paragraph becomes a space โ€” feel free to write in short lines. To force a new line, end the line with two spaces or a backslash (\). A blank line separates paragraphs; for a visible empty line, use a line containing only  . The public signing page, the dashboard previews (draft, model and theme) and the PDF read the body the same way, with the same rule.
  • Document structure: headings (#, ##, ###), numbered lists (numbering starts at the number you write) and bullet lists, lists inside lists, quotes (>), horizontal rules (---), links and tables look the same on screen and in the PDF. A table uses its first row as the header; :--, :-: and --: in the separator row align the column left, center or right; use <br> to break a line inside a cell. In the PDF the table header repeats on every page and a row is never cut between two pages.
  • Characters in the PDF: accents and punctuation common in Portuguese, English and Spanish (ยท โ€ข โ€“ โ€” โ€œ โ€ โ€˜ โ€™ โ€ฆ ยบ ยช ยง ยฐ ยฎ โ„ข โ‚ฌ) print correctly in every theme font. A character the chosen font lacks is printed automatically in the Inter font embedded in the PDF (arrows, stars, math symbols). What no font has โ€” emojis, for example โ€” prints as โ–ก and is recorded; the PDF is always generated.
  • Give variables clear names so automatic and manual filling is obvious.
  • Check that each {{ variable }} has been replaced before sending โ€” empty variables can leave gaps in the document.
  • Centralize common clauses in the library to keep consistency and ease updates.
  • Always review the generated contract: auto-fill speeds things up, but the check is your responsibility.

Troubleshooting

  • A variable wasn't filled in: the source data may be empty (e.g., a contact with no tax ID). Populate the source or edit it manually.
  • The text came out with literal {{ }}: check the spelling of the variable in the template.
  • The uploaded model lost its formatting: adjust the formatting in the editor after the upload.

See also