Skip to main content

Any LLM

For models without native structured output support, use SYSTEM_PROMPT to instruct the model to return JSON in the correct format.

What SYSTEM_PROMPT contains

The prompt instructs the LLM to:
  1. Output a JSON object with title and blocks
  2. Use the correct block types (heading, paragraph, code, list, quote, table, image, divider)
  3. Include proper metadata (e.g., level for headings, language for code blocks)
  4. Use markdown formatting within text content

Manual documents

You can also skip the LLM entirely and build documents programmatically: