Presentations Creation (.pptx)
Use the server function create_document({ format: "pptx", title, spec }) to generate a PowerPoint slide deck.
How to fill the spec
Structure First: Plan a cohesive slide deck story:
- Dedicated title slide
- Content slides with punchy slide titles and concise subtitles
- 3-5 bullet points per slide (
bullets: string[]) - Speaker notes (
speakerNotes: string) for presenter guidance - Optional image URL (
imageUrl: string)
Concise Text: Keep slide copy tight, punchy, and impactful.
Arabic & RTL Handling:
- For Arabic presentations, set
rtl: trueat the root spec or per slide. - Text boxes, titles, and layout columns will automatically align to the right with Arabic typography.
- For Arabic presentations, set
Example Call
{
"format": "pptx",
"title": "AI Product Launch Strategy",
"spec": {
"rtl": false,
"theme": { "primaryColor": "1E3A8A", "textColor": "1F2937" },
"slides": [
{
"title": "Market Opportunity",
"subtitle": "Addressing core user bottlenecks",
"bullets": [
"Enterprise adoption of generative AI increased by 140%",
"Key unmet need: deterministic document generation",
"Competitive advantage: local data sovereignty"
],
"speakerNotes": "Emphasize market expansion and customer retention data."
}
]
}
}