Skip to main content
Ask for “a cover page, table of contents and page numbers” in style (or in the prompt sentence) with format: "docx". Doconda adds them to the Word file and its PDF at every quality level, quality: "fast" included.

Generate the report

  1. Store your API key in DOCONDA_API_KEY and install the SDK: pip install doconda or npm install @doconda/sdk.
  2. Pass your content in Markdown (or a sentence in prompt) and the style.
  3. Check style_applied and download the Word file.
You should see True True True Confidential in Python (true true true Confidential in TypeScript).

What you get back

  • An editable Word file with the cover page, a table of contents built from your headings, and page numbers, plus its PDF.
  • style_applied: the style the file has, including cover_page, table_of_contents, page_numbers, header and footer.
  • Word styles: the look lives on Normal, Heading 1…, so sections you add later follow the same design.

Your text or Doconda’s

The style in a prompt sentence is applied too, so you don’t need style when you write from a prompt. Behavior to be aware of:
  • The header and footer are plain text, up to 200 characters each (“footer: Confidential”).
  • Copying a template file’s cover and header needs a prompt and standard or best; see copy the design of a file.

FAQ

Yes, at every level, when you create from a prompt: describe the chart and where its data comes from. See quality levels.
Yes: “landscape”, “2 cm margins” (1 to 5 cm). See Style.
Yes, with format: "pdf". The cover, table of contents and page numbers are the same.
For everything you can ask for in style, see Style.