Skip to main content
Genie Documents lets you produce professionally written documents directly from the knowledge base attached to a Genie. You choose a template, select the source documents to draw from, and receive a structured, print-ready result in seconds. All generated content is grounded strictly in the source material you provide — no facts are invented. The output is structured as an ordered list of sections, each with a heading and body, ready to render or export.

Generate document

Produces a structured document from one or more knowledge-base documents using a Smart template. Only documents you own (or public documents) can be used as sources.
string
required
Must be "genie-documents"
string
required
Must be "generate"
object
required
boolean
Whether the request succeeded.
object

Save document

Persists a generated document as a permanent knowledge-base record linked to the specified Genie. Use this after generate to store the result so it can be managed, published, and surfaced on the Genie’s Help Hub. New documents are created as private (is_public: false) and are not pushed to the Genie’s knowledge base automatically. Publishing is a separate action through the knowledge-base update path. Pass id to update an existing branded document. Omit id to create a new one.
string
required
Must be "genie-documents"
string
required
Must be "save"
object
required
object
The saved document row.
boolean
true when a new document was created; false when an existing document was updated.
Section headings that end with ? are automatically extracted and stored as indexed questions. These questions appear on the Genie’s Help Hub question band when the document is published.

Auto-provision Genie Page pack

Builds or refreshes the Genie’s day-one Genie Page pack — an FAQ sheet ("faq") and an overview ("one-pager") — from its knowledge base into a private review draft. Generation never changes published documents or their files; documents the owner has edited are proposed for explicit review too. Nothing goes live until the draft is approved.
string
required
Must be "genie-documents"
string
required
Must be "auto-provision"
object
required
boolean
Whether the request succeeded.
object
Skips are not errors — the call still succeeds. If no template produced content, no draft is written. If another run is already in progress for the Genie, the response is { "skipped": "in-progress" } (a string rather than an array) and the running job picks up the latest knowledge changes in a follow-up pass. A generation or storage failure for either template fails the whole call with INTERNAL_ERROR, the error message names the failing template and cause, and no draft is written.

Templates


Error codes