Generate professional documents from DOCX templates with automatic variable substitution, PDF conversion, and AI-powered content. Upload, process, and organise documents within each matter's file system.
DOCX templates with merge fields for automated document generation
Document templates are DOCX files (Microsoft Word format) that contain variable placeholders. When you generate a document from a matter, the system processes the template, replaces all variables with actual matter data, and produces a finished document ready for download or attachment.
Document templates are configured per matter type under Settings → Matter Types → [Your Type] → Document Templates. Each template has:
DOCX Format
Templates use standard Microsoft Word format. Create and edit them in Word, Google Docs, or any DOCX-compatible editor.
Variable Substitution
Placeholders like ${field.Name} are replaced with actual matter data at generation time.
AI Content
Use {ai: prompt} placeholders to have AI generate contextual content within the document.
PDF Output
Optionally convert generated documents to PDF for client-ready correspondence.
All available placeholder variables for document templates
Variables in document templates use the ${...} syntax.
The system processes the template and replaces each variable with the corresponding value from the matter.
Field variables
| Variable | Description | Example output |
|---|---|---|
${field.Application No} |
Value of the "Application No" field | 2026123456 |
${field.Filing Date} |
Formatted date field value | 15 January 2026 |
${field.Title} |
Value of any custom field (use the exact field name) | Widget Fastener Assembly |
${field.Number of Claims} |
Numeric field value | 24 |
Role variables
| Variable | Description | Example output |
|---|---|---|
${role.Applicant.display_name} |
Applicant's display name | Acme Corporation Pty Ltd |
${role.Applicant.email} |
Applicant's email address | john@acmecorp.com.au |
${role.Applicant.address} |
Applicant's full postal address | Level 12, 100 Collins St, Melbourne VIC 3000 |
${role.Applicant.phone} |
Applicant's phone number | +61 3 9876 5432 |
${role.Inventor.display_name} |
Inventor's display name | Dr Sarah Chen |
${role.Attorney.display_name} |
Attorney's display name | James Smith |
Matter variables
| Variable | Description | Example output |
|---|---|---|
${matter_id} |
Org-scoped matter ID | M-42 |
${title} |
Matter title | Widget Fastener Assembly |
${today} |
Current date at generation time | 20 April 2026 |
Empty variables
If a field has no value or a role has no contact assigned, the variable is replaced with an empty string. This means the placeholder disappears cleanly from the generated document rather than showing raw variable syntax.Step-by-step guide to building a template
Document templates are standard Word files with variable placeholders typed directly into the text. No special Word features (like mail merge fields) are needed — just type the variable syntax as regular text.
Open a new or existing Word document
Type the variable placeholders
${...} format. For example:
${today}
${role.Applicant.display_name}
${role.Applicant.address}
Dear ${role.Applicant.display_name},
Re: Application No. ${field.Application No} — ${field.Title}
Ensure variables are in a single formatting run
Save as DOCX
Formatting within variables
Do not apply partial formatting within a variable. For example, do not bold just the word "field" in${field.Name}. The entire variable must have consistent formatting, or the system may not
recognise it as a single placeholder.
One-click document creation from any matter page
Once you have uploaded document templates to a matter type, you can generate documents from any matter of that type.
Open the matter
Go to the Documents section
Click Generate Document
Download or use the generated file
Automated document generation
Documents can also be generated automatically via automations. Use thegenerate_document action
in an automation to produce documents when a trigger fires — for example, generate a filing confirmation
letter when the step changes to "Filed". See the Automations guide.
Deliver polished, non-editable documents to clients
When Convert to PDF is enabled on a document template, the generated DOCX is automatically converted to PDF format. The PDF is saved to the matter's files instead of (or in addition to) the DOCX.
PDF conversion is recommended for:
Keep DOCX output for:
Conversion quality
The PDF conversion engine preserves formatting, fonts, tables, and images from the DOCX template. Complex layouts with nested tables or unusual fonts should be tested to ensure the PDF output matches expectations.Let AI generate contextual content within your templates
In addition to standard variable placeholders, document templates can include AI placeholders that instruct the AI to generate content based on the matter's context. AI placeholders use the syntax:
When the document is generated, the AI reads the matter's data (fields, roles, step, recent emails, and knowledge base) and produces content according to the instructions in the placeholder.
AI placeholder examples
Examination report summary
{ai: Summarise the objections raised in the most recent examination report for this matter. List each objection with a brief description and the relevant claims affected.}
Patentability opinion
{ai: Draft a brief patentability opinion based on the search report findings for this matter. Address novelty and inventive step considerations.}
Filing strategy recommendation
{ai: Based on the matter's priority date and current step, recommend national phase filing jurisdictions and explain the strategic considerations for each.}
Review AI-generated content
AI-generated content should always be reviewed before the document is sent to a client or filed with a patent office. The AI uses the matter's context and knowledge base to produce relevant content, but it cannot replace professional judgement on legal matters.Unresolved placeholders
If an AI placeholder cannot be resolved (e.g., insufficient context in the matter), it is stripped from the generated document rather than appearing as raw placeholder text. Always check the output to ensure all expected content was generated.The /upload page for batch document processing
The document upload processing page (/upload) provides a dedicated interface for uploading and processing documents in bulk. This is useful when you receive a batch of official documents (examination reports, certificates, office actions) that need to be filed to their respective matters.
The upload processing page supports:
Processing incoming IP Australia correspondence
Let's build a complete document template for a "Letter to Applicant — Examination Report" that a patent attorney would use to report an examination report to their client.
Create the Word document
Add the letter header
${today}
${role.Applicant.display_name}
${role.Applicant.address}
By email: ${role.Applicant.email}
Add the subject line and salutation
Dear ${role.Applicant.display_name},
Re: Australian Patent Application No. ${field.Application No}
${field.Title}
Add the letter body
We refer to the above application filed on ${field.Filing Date}.
We have received an examination report from IP Australia dated ${field.Examination Report Date}. A copy of the report is enclosed for your records.
The deadline for responding to this report is ${field.Acceptance Deadline}.
{ai: Summarise the key objections raised in the examination report and provide a brief recommendation for each, suitable for a corporate patent applicant.}
We recommend scheduling a conference to discuss the response strategy in detail. Please let us know your availability.
Upload to Cadence IP
Letter to Applicant - Examination Report - ${field.Application No}.
Enable Convert to PDF for a polished client-facing document.
Test with a real matter
After uploading the template, generate a document from a test matter to verify all variables resolve correctly and the AI placeholder produces useful content. Check the formatting, especially around variables that may produce longer or shorter text than expected.