Document platform

Document templates

Publish reusable document templates as fixed versions and record exactly which template version and inputs produced each document.

Templates and template versions

A template is the record you edit: its name, description and whether it is archived. Publishing it creates a template version, which never changes. Documents are always generated from a published template version, so editing the template later does not change documents you already generated.

RecordCan change?Holds
TemplateYesName, description, archived state
Template versionNoThe source document version, the variable schema, clause references and generation settings
Generated document versionNoThe generated PDF or DOCX and its hash

Variables

  • Declare each variable's type: string, date, decimal or money, boolean, enum, object, array, table or repeating section.
  • Generation is refused when a required variable is missing or a template contains executable content.
  • Identifiers keep their leading zeros, and decimal and money values are calculated exactly, without floating-point rounding.
  • Each generated document records the template version and the inputs it was generated from.