← Back to Customization Cookbook Scenario: You have a workingDocumentation Index
Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
Use this file to discover all available pages before exploring further.
your-hpi section. Customer A wants telegraphic. Customer B wants narrative. Customer C wants narrative plus every line prefixed with a department code. The base content rules should stay shared — only the writing/format diverges.
What you do:
- Keep
your-hpias the canonical base. Don’t change it for the variants. - Create variant sections via
POST /documents/sectionswithinheritFromId: <your-section-id>and override only the diverging fields (e.g.writingStylePrompt,itemFormat,outputSchema). - Compose customer-specific templates that reference the appropriate variant for each customer.
- Route the request to the correct customer template based on tenant/customer context in your product.
POST /documents/sections — variant inheriting from your own canonical section
your-hpi (better contentPrompt, refined outputSchema) propagate to every customer variant for every field they didn’t override. You don’t have to update three sections — you update one, and the inheriting variants track.
Caveat: Watch the outputSchema override rule — providing an outputSchema on an inheriting section fully replaces the parent schema; it is not a partial merge. If a variant overrides the schema, parent schema improvements stop propagating to that variant’s schema. See Create a Section — override semantics.
Previous: Recipe 5 — Your own sections & templates + end-user runtime overrides · Next: Recipe 7 — The full stack