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.

Templates


Error codes