Skip to main content
← Back to Guided Synthesis overview Use this for prototyping, one-off generations, or workflows where you don’t want to maintain stored sections. Define both the template instructions and each section’s full generation block inline. Sections and the wrapping template are created as auto-generated resources and immediately published — and like all auto-generated aggregates, are retained for 30 days only (see Auto-generated template aggregates — 30-day retention).
Each inline sections[] entry is a full SectionGeneration — same shape you’d POST /documents/sections with. Use the full outputSchema toolbox (string, number, boolean, array, object with fields) to constrain output. See Section Schemas for design patterns.

Mapping response output back to your inline sections

Your request supplies an ordered list of inline sections with no IDs of your own. The response assigns each a server-generated UUID and returns a sections array that preserves your request order. Use it to correlate rendered output back to your inline definitions. Each sections entry carries:
  • sectionId — the UUID to use as the key into stringDocument and structuredDocument.
  • heading — the resolved section title (after any overrides), ready to render.
For the request in the snippet above, the response looks like this:
Response (excerpt)
The first sections entry corresponds to your first inline section, the second to your second, and so on. Iterate sections in order, use sectionId to look up the rendered text in stringDocument / structuredDocument, and use heading as the display title.
If you need the full section configuration (prompts, schema, formatting rules) rather than just the heading, read the auto-generated aggregate with GET /documents/templates/{templateId}/versions/{templateVersionId}. That aggregate is subject to the 30-day retention window, so read it soon after generation or persist the configuration in your service.

When to use this path

Guided Synthesis overview

Shared concepts: input context, response shape, errors, 30-day retention.

Section Schemas

Schema patterns for the outputSchema shapes you’ll define inline.