{{customer}}, and fills those placeholders with data. Template-free generation composes the
whole document from the content and a description of the style, and decides its structure itself.
Neither is better in general. A template gives very predictable results for documents that share one shape; composing
from content adapts to documents whose shape changes every time.
Why it matters for generated documents
- A template fixes the structure. If the content a model writes has more sections or tables than the template expects, it doesn’t fit.
- Without a template, the layout must adapt. A contract, a letter and a report need different structures, and the generator has to pick the right one.
- Templates cost upkeep. Every new document type needs its own template, and every design change touches all of them.
- There is a middle path. Copying the design of an existing file (fonts, colors, logo) while leaving the structure free keeps the brand without fixing the content.
Templates in Doconda
Doconda creates documents without a template, from a sentence or your Markdown, and adapts the layout to the kind of document: a contract gets a serif font, justified text and numbered clauses; a letter, no page numbers. To take the middle path, pass a reference file insources and say so in prompt (“with the design of our template”):
- A presentation is used as the template: the result starts from its slides.
- Any other file (Word, Excel, PDF, HTML or an image) lends its fonts, colors, margins, header and footer, logo and cover.
- Quality: it works at
standardandbest. Atfastthe document fails withdesign_needs_qualityand isn’t charged. Withquality: "auto", copying a design picks at leaststandard.
Related
Copy the design of a file
Use your template or brand file as the design.
Word styles vs direct formatting
Where a copied design is applied.
What is a document generation API
The two kinds of document API.
Doconda vs Docmosis
A template-based generator compared.