Any LLM
For models without native structured output support, useSYSTEM_PROMPT to instruct the model to return JSON in the correct format.
What SYSTEM_PROMPT contains
The prompt instructs the LLM to:- Output a JSON object with
titleandblocks - Use the correct block types (
heading,paragraph,code,list,quote,table,image,divider) - Include proper metadata (e.g.,
levelfor headings,languagefor code blocks) - Use markdown formatting within text content