Duck
Tutorials5 min read

Slide Generator AI: Build Your Own Deck Automation in 2026

Samet Turan— Editor··5 min read

Learn how to create a slide generator AI that turns prompts into polished decks, with real prompts, tool costs, and debugging tips for solo operators

Slide Generator AI

You spend hours copying bullet points into PowerPoint, then tweaking fonts and alignments, only to realize the deck still looks generic. After reading this, you’ll have a working slide generator AI that takes a plain‑text outline and outputs a polished PowerPoint file, ready to send or present.

How do you keep the AI from hallucinating slide titles?

One of the first things you’ll notice when you hook a language model to a slide generator is that it loves to invent titles that never existed in your outline. I ran a test with a simple three‑point outline and got back a deck with seven slides, two of them titled “Future Vision” and “Synergy Blueprint”. The fix is simple: give the model a strict JSON schema and ask it to return only the fields you need.

Here’s the prompt I use, broken into two parts. First, the system message sets the role and constraints. Second, the user message supplies the outline and asks for a JSON array of slide objects.


{
"system": "You are a slide planner. Output ONLY a JSON array where each object has "title" and "bullets" (array of strings). No extra text, no explanations.",
"user": "Outline: \n- Market size growing 12% YoY\n- Competitor A lacks mobile app\n- Our solution: real‑time analytics dashboard\nReturn JSON array."
}

When the model follows the schema, you get exactly what you asked for. If it still adds extra fields, you can strip them in a tiny post‑processing step with JavaScript or Python.

What most guides get wrong

Most tutorials treat the slide generator as a magic black box: feed it a prompt, get a PPTX, and call it a day. They skip the part where you have to map the AI’s output to actual slide placeholders. In Google Slides, for example, each layout has named placeholders like “TITLE” and “BODY”. If you just shove raw text into the first placeholder, you end up with misaligned text boxes and missing images.

The real work is in the transformation layer. You take the JSON from the model, match each slide to a layout, then populate the placeholders via the API. This step is where most DIY attempts break, and it’s also where you can add branding—like inserting your logo into the footer placeholder automatically.

Concrete named example: building the pipeline with Make, GPT-4, and Google Slides API

Let’s walk through a real‑world build that costs under $30 per month and runs on a free tier of Make.com(formerly Integromat). First, you create a scenario that triggers when a new row appears in a Google Sheet. The sheet holds your outline in column A.

Next, add an HTTP module that calls the OpenAI Chat Completions endpoint. Use the system and user messages from the earlier prompt, set temperature to 0.2 for consistency, and limit max tokens to 800. The response is parsed with a JSON module; if parsing fails, the scenario routes to an error handler that logs the raw output.

After you have the slide JSON, you iterate over each object. For each slide, you call the Google Slides API to duplicate a base template, then batch‑update the placeholders. The base template should have a master slide with your brand colors and a footer placeholder named “LOGO”. The update request looks like this:


{
"requests": [
{
"insertText": {
"objectId": "TITLE_placeholder_id",
"text": "{{slide.title}}"
}
},
{
"insertText": {
"objectId": "BODY_placeholder_id",
"text": "{{slide.bullets.join('\n')}}"
}
}
]
}

Finally, you export the slide deck as a PPTX using the Drive API’s export link and email it to yourself via Gmail. The whole scenario runs in under two minutes for a ten‑slide deck.

Pricing opinion: is $29/mo for the AI agent framework worth it?

I’ve tried three different agent frameworks: LangChain, LlamaIndex, and a lightweight custom wrapper I built in Python. The LangChain Plus plan runs $29/mo and gives you access to hosted agents, tracing, and a few premium connectors. For a solo operator who only needs a slide generator, I think $29/mo is fair—you get reliability without managing your own infrastructure.

On the other hand, the enterprise tier at $199/mo feels ridiculous for what you get: essentially the same core agents with a few extra UI widgets you’ll never use. If you’re bootstrapping, stick with the free tier of LangChain or roll your own wrapper; the performance difference is negligible for this use case.

How to debug when this breaks

When the slide generator spits out a blank deck or throws an API error, start by checking the logs of each module in your scenario. The most common failure points are:

  • The OpenAI call returns a non‑JSON response—usually because the model ignored the system message. Fix by tightening the prompt or lowering temperature further.
  • The Google Slides API returns error 403: “The caller does not have permission”. This happens when the service account lacks the Drive API scope. Re‑authenticate and add https://www.googleapis.com/auth/drive.file.
  • The JSON parser throws a syntax error because the model added a trailing comma. Insert a simple cleanup step that removes commas before closing brackets.

If the deck looks fine but the fonts are wrong, verify that the base template uses the correct master slide. A mismatch between the layout name in your update request and the actual layout ID will cause the API to silently ignore the request.

One trick I’ve found useful is to save the intermediate JSON to a Google Doc after each run. When something goes wrong, you can open the doc, see exactly what the model produced, and adjust the prompt without re‑running the whole scenario.

Who should actually use this blueprint

If you’re a freelancer who pitches weekly decks to clients, a solopreneur selling digital products, or a small agency owner tired of reinventing the wheel for every presentation, this workflow will save you hours each month. If you need highly customized animations or complex data charts that require manual tweaking, you’ll still want to finish the deck in PowerPoint after the AI generates the skeleton.

I’ve used this exact setup for the past six months to generate client pitch decks, webinar slides, and internal reports. The time saved per deck averages about 45 minutes, which adds up to roughly six hours a month—time I now spend on strategy instead of formatting.

If you want the deep cut on this, deeper coverage of AI agent platforms.

If you’d rather skip the build and deploy a working version in an afternoon, we’ve packaged this workflow as a blueprint at deepusecase.com/vault.

— The Colophon

One AI tool. Tested. Reviewed.
In your inbox every Sunday.

~3 minute read. Real outcomes from operators, not marketers.

Free. One email per Sunday. Unsubscribe in one click.