When you type a topic into DeckAI and hit "Generate," a lot happens behind the scenes. Your idea passes through a multi-stage AI pipeline that researches, plans, and generates each slide — all in real time. This post explains how it works.
The Pipeline: 4 Stages
DeckAI uses an AI orchestration graph — a state machine where each node is a specialized AI agent. The orchestrator decides what to do next based on context and your input.
┌─────────────┐
│ Your Topic │
└──────┬──────┘
│
▼
┌──────────────┐ "What should I do next?"
│ ORCHESTRATOR │◄──── Decides the next step
└──────┬───────┘ based on conversation phase
│
├──────────────────┬──────────────────┐
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ RESEARCHER │ │ PLANNER │ │ GENERATOR │
│ │ │ │ │ │
│ Web search │ │ Slide-by- │ │ AI diagram │
│ via Exa API │ │ slide plan │ │ generation │
│ for real │ │ with titles, │ │ for each │
│ data & │ │ content, │ │ slide in │
│ statistics │ │ & visual │ │ parallel │
│ │ │ guidance │ │ │
└──────┬───────┘ └──────┬───────┘ └──────┬───────┘
│ │ │
▼ ▼ ▼
You review You review & Slides appear
& approve edit the plan one by one
research before any in real time
results image is madeThis isn't a simple "prompt → image" pipeline. At every stage, the system pauses for your input. You can refine the research, restructure the plan, and regenerate individual slides — all without starting over.
Stage 1: The Orchestrator
The orchestrator is the "brain" of the system. It reads your message, considers the current phase (chatting, researching, planning, generating), and decides which agent to activate next.
How it decides
- • New topic? → Start with web research
- • Research reviewed? → Move to planning
- • Plan approved? → Start generating slides
- • "Regenerate slide 3"? → Regenerate just that slide
- • General question? → Chat normally
The orchestrator uses structured output parsing — it doesn't just generate text, it produces a machine-readable decision with an action field (research, plan, generate, regenerate, chat) so the system always knows exactly what to do next.
Stage 2: Research
Before planning any slides, DeckAI searches the web for real data. Your topic is translated into an optimized English search query, then sent to the Exa API — a neural search engine designed for AI workflows.
What the researcher does
- Translates your topic into an English search query (even if you wrote in Korean, Japanese, etc.)
- Fetches up to 5 relevant results with full text content
- Presents a summary and asks: "Want more research, or shall we proceed?"
- If you ask for more, it searches again and accumulates all results
This means every slide can be backed by real statistics, market data, and up-to-date information — not just the AI model's training data.
Stage 3: The Planner
The planner is where DeckAI's consulting DNA shows. It follows the Pyramid Principle — a framework used by top strategy firms — to structure your deck:
One main message for the entire deck
Slide titles read in sequence = the complete story
Mutually Exclusive, Collectively Exhaustive content
Situation → Complication → Resolution narrative
For each slide, the planner outputs a structured plan:
// Example: what the planner generates per slide
{
"title": "Global AI Market Reaches $190B",
"head_message": "The market is growing at 35% CAGR",
"content": [
"Enterprise AI adoption up 2.4x since 2024",
"Healthcare & Finance lead with 42% of spend",
"Asia-Pacific fastest growing at 41% CAGR"
],
"image_prompt": {
"layout": "horizontal bar chart with 3 segments",
"visual_elements": ["bar chart with regions"],
"emphasis": "Asia-Pacific growth highlighted"
},
"speaker_notes": "In this slide, we examine..."
}The plan is fully editable — you can reorder slides, change titles, modify bullets, and adjust visual directions before a single image is generated. This is the key insight: planning and generation are separate steps, so you never waste compute on slides you don't want.
Stage 4: Slide Generation
Once you approve the plan, the generator creates each slide's visual content. Here's where it gets interesting — DeckAI doesn't just generate a static image per slide.
The Design System
Before any slide is generated, the planner creates a unified design system for the entire deck — primary color, accent color, container style, arrow style, chart palette, and typography. Every slide image is generated with this same design system injected into its prompt, ensuring visual consistency across the whole presentation.
// The design system prompt (simplified)
=== DESIGN SYSTEM (MUST follow for ALL slides) === Primary color: #1B3A5C Accent color: #E8632B Background: #FFFFFF Container style: rounded rectangles with thin borders Chart palette: #1B3A5C, #E8632B, #5BA4CF, #F2A359 Typography: clean sans-serif, dark text on light bg Mood: professional, analytical, clean IMPORTANT: Use ONLY these colors and styles. Do NOT invent new palettes.
Diagram-Only Mode
DeckAI uses a hybrid approach: the AI generates only the diagram/visualization content, while titles, headers, footers, and page numbers are real PPTX text elements rendered by the template system. This means:
- →Text elements are editable in PowerPoint
- →Diagrams are AI-generated data visualizations
- →Templates control the layout and branding
Parallel Generation
Slides are generated concurrently — up to 5 at a time. As each slide completes, it streams to your browser via Server-Sent Events (SSE). A 10-slide deck finishes in the time it takes to generate 2-3 slides sequentially.
What the generator prompt looks like (simplified)
The Cover Slide
The cover slide (slide 1) is treated differently. The planner generates only a title and subtitle — no content bullets, no diagram. The cover's visual appearance is entirely controlled by your template's cover frame configuration: background color, gradient, or image.
This is why the cover always looks consistent with your template choice, while content slides get unique AI-generated diagrams.
Why Every Slide Looks Different
A common problem with AI-generated presentations is visual monotony — every slide looks the same. DeckAI solves this at two levels:
Planner-Level Diversity
The planner is explicitly instructed to assign different diagram types per slide — flow, matrix, pillars, timeline, funnel, pyramid, Venn, etc. It can't repeat layouts.
Generator-Level Context
Each slide's generation prompt includes its position in the deck ("slide 3 of 8") and the suggested layout from the plan, preventing the image model from defaulting to the same diagram type.
The Template System
The final PPTX file is assembled by combining the AI-generated diagram images with a template frame. Each template defines:
- →Text elements — title, header message, footer, page number, author/date (real editable PPTX text boxes)
- →Diagram area — position and size of the AI-generated visualization
- →Border lines — top and bottom decorative borders with configurable colors
- →Speaker notes — presentation script and reference data per slide
You choose from presets (McKinsey, BCG, Bain) or create your own template with the My Templates editor — adjusting every element's position, font, size, and color.
Why This Architecture?
Most AI slide tools take a "prompt → image" approach: you describe what you want, and the AI generates a full slide image. This is fast, but you can't edit anything afterward.
DeckAI's multi-stage pipeline with separate planning and generation steps gives you:
Control
Review and edit the plan before any image is generated. Change slide order, titles, and content without wasting compute.
Consistency
A shared design system ensures every slide uses the same colors, fonts, and visual language — like a real consulting deck.
Editability
Text elements are real PPTX text boxes, not baked into images. Open in PowerPoint and edit titles, content, and notes.
Speed
Parallel generation with SSE streaming. See slides appear in real time — no waiting for the whole deck to finish.
Try It Yourself
The best way to understand how DeckAI works is to try it. The free tier includes 5 slides per month — enough to experience the full Research → Plan → Generate pipeline.
Head to deckai.ai/chat and describe the presentation you need. Watch the pipeline work in real time.
See the pipeline in action
Create your first AI-powered presentation in under 2 minutes.
Start Creating→