Recommendation
A recommendation field renders long-form, structured advice content at the placeholder location. It is one of the five rich content types in AdviceDocs. Unlike simple fields, the value is a list of structured blocks (headings, paragraphs, lists, tables) and is generated by a dedicated Stage 4 LLM step that reads the template’s advice summary and an example document.
How to write a recommendation placeholder
Write a regular {{ field_name }} placeholder. There is no special syntax. The field name doesn’t have to contain “recommendation” — the type is decided post-parse by an LLM that reads the field’s description.
{{ recommendation }}
{{ portfolio_recommendation }}
{{ insurance_recommendation }}The classifier reads the description, not the name
text.What renders at fill time
At document-fill time the placeholder is replaced with a sequence of structured blocks:
- Headings — section labels at h2 / h3 level.
- Paragraphs — multi-line prose with bold / italic runs.
- Lists — bulleted or numbered.
- Tables — structured comparisons.
The blocks come from a Stage 4 LLM that:
- Parses the linked example document into sections.
- Matches each item in the advice summary to the closest section.
- Generates new blocks per recommendation, adapted to the client’s data.
Configuration after upload
Recommendation fields don’t use the per-field configuration modal. Instead, open the gear icon next to the template name to launch the template-level generation settings. There you can:
- Pick an example document — a Setting file whose recommendation sections drive tone, structure, and section ordering for every recommendation in the template.
- Pick an advice summary instruction — the source of truth for what is being recommended.
These settings are template-wide; changing them updates how every recommendation field on the template is generated.
Common pitfalls
Vague descriptions stay as text
recommendation with no description (or a description like “the recommendation”) is too thin for the classifier. Write a description that explicitly asks for advice content — reference the advice summary, the recommendations being made, or the format you expect.Document references override classification
@ reference (e.g. @AdviceSummary), the field is treated as a non-dependent document anchor and will not be classified as a recommendation. Reword the description as a prose instruction to keep it in the rich content pipeline.Manual override is supported
is_field_type_manual = true and prevents the classifier from changing it later.Syntax to copy
{{ recommendation }}{{ portfolio_recommendation }}
{{ insurance_recommendation }}
{{ super_contribution_recommendation }}{% for rec in recommendations %}
{{ rec.recommendation }}
{% endfor %}