How-to Guide
Step-by-step walkthroughs for common template editing tasks. Follow these guides to accomplish specific goals quickly.
How to upload a template
- Navigate to the Templates section in your AdviceDocs dashboard.
- Click the "Upload Template" button.
- Select your .docx template file from your computer.
- Give your template a name and select the document type.
- Click "Upload" to save your template.
Templates must be in .docx format. PDF and other formats are not supported for template uploads.
How to add a field to your template
- Open your template .docx file in Microsoft Word or Google Docs.
- Place your cursor where you want the field to appear.
- Type the field syntax using double curly braces.
- Save and re-upload your template to AdviceDocs.
Example
Dear {{client_name}},
Your total portfolio value is {{total_value}}.How to test your template
- Upload your template to AdviceDocs.
- Generate a document using a test recording or sample data.
- Review the output to ensure fields are populated correctly.
- If a field shows the raw syntax (e.g.,
{{client_name}}), check for typos in the field name. - Iterate: edit your template, re-upload, and regenerate until satisfied.
Debugging tip
If a field is not rendering, check that the field name in your template exactly matches the data key. Field names are case-sensitive and must use the exact spelling and casing.
How to add a conditional section
- Identify the section of your template that should only appear under certain conditions.
- Wrap the section with
{{#if field_name}}and{{/if}}tags. - The section will only render when the field has a truthy value.
Example
{{#if has_insurance_recommendations}}
## Insurance Recommendations
{{#each insurance_recommendations}}
- {{description}}
{{/each}}
{{/if}}