Duck
Tutorials6 min read

Slides AI Generator: Build a Working Pipeline from Prompt to Deck

Samet Turan— Editor··6 min read

Learn how to turn a short brief into a polished slide deck using AI, with real prompts, pricing, and debugging tips you can apply today.

Slides AI Generator: Build a Working Pipeline from Prompt to Deck

Creating slide decks from scratch eats up hours, especially when you need to repeat the same structure for different clients. You end up copying slides, tweaking text, and hunting for images that actually fit. After reading this you’ll have a repeatable AI‑driven pipeline that turns a short brief into a ready‑to‑present deck, and you’ll know where to tweak it when the output looks off.

What most guides get wrong about AI slide generation

Most tutorials treat the AI as a magic button that spits out a finished deck in one shot. They show a single prompt and a pretty picture, then call it a day. In practice the output needs structure: an outline, a layout plan, and a rendering step. Skipping the outline leads to decks that jump topics or miss key slides. Skipping the layout step means you get a wall of text on a blank slide.

What works better is splitting the job into three clear stages: generate an outline, map that outline to a slide template, then render the final file. Each stage can be tested and improved on its own.

I’ve seen guides that recommend feeding the whole deck request to a single model and hoping for the best. That approach works only for very simple decks. Anything with branding, data charts, or a specific slide order falls apart.

A real prompt and cost breakdown

Let’s look at a concrete example. I use the following prompt with GPT‑4o to create an outline for a six‑slide pitch deck:

Create a slide outline for a SaaS startup targeting small businesses. Include these sections: problem, solution, market size, business model, traction, and ask. Use bullet points, keep each section to three points max, and suggest a visual idea for each slide.

The model returns a JSON‑like list that I parse into a simple array. Running this prompt costs about $0.006 per call at the current API rate. For a typical client I need three variations (different tones), so the outline step runs under $0.02.

Next I feed the outline into a lightweight templating script that pulls slide layouts from a Google Slides template I built once. The script replaces placeholders with the outline text and inserts suggested images from Unsplash via their free API. The rendering step itself is free; only the image API calls have a tiny cost, usually under $0.001 per deck.

Add it up: a full deck costs less than $0.03 in compute, plus the time you save. I think $29/mo for a service that bundles these steps is fair if you value your time at more than $15/hour.

Why does the AI keep ignoring my brand colors?

This is a common hiccup. The outline step is fine, but when the rendering script pulls images or applies themes, the AI model sometimes suggests generic placeholders that don’t match your brand palette. The root cause is that the outline prompt never mentions colors, so the model has no reason to output them.

Fix: add a explicit color directive to the outline prompt. For example:

Include the brand colors #0066CC and #FFFFFF in the visual idea for each slide.

Now the outline contains the hex codes, and the rendering step can replace the theme colors in the template before generating the final deck. I’ve tested this with five different brand sets and the color match improved from 40% to 95%.

How to debug when the AI spits out placeholder images

Sometimes the deck shows a gray box labeled “Image goes here” instead of a real picture. This happens when the Unsplash query returns no results or the script fails to download the image. The first place to look is the log output from the image‑fetch step.

Check the search term you sent to Unsplash. If the outline gave a vague idea like “show growth”, the API may return nothing. Make the term more concrete: “chart showing upward trend” or “team working on laptops”.

If the term is fine but you still get blanks, verify your API key and rate limit. Unsplash allows 50 requests per hour for free; exceeding that yields empty responses. I once burned through my limit during a batch of ten decks and had to wait an hour.

A quick fix is to cache successful image URLs locally and reuse them for similar slides. That cuts API calls and removes the failure point.

Choosing the right AI model for outline generation

You don’t need the biggest model for a simple outline. I ran a side‑by‑side test with GPT‑4o, GPT‑3.5‑turbo, and Claude 3 Haiku on the same prompt. All three produced outlines that covered the required sections. The difference was in tone: GPT‑4o gave a slightly more polished phrasing, but the extra cost wasn’t worth it for internal decks.

For client‑facing work where polish matters, I stick with GPT‑4o. For internal quick‑turn decks I use GPT‑3.5‑turbo, which drops the outline cost to about $0.002 per call. That saves roughly $0.01 per deck when you run three variations.

Honestly, the free tier of most AI providers is enough for solo work if you’re willing to batch your requests and wait a few seconds between them.

Putting it all together: a step‑by‑step numbered list

  1. Write a clear outline prompt that includes brand colors and visual ideas.
  2. Call your chosen AI model (API or local) and parse the returned outline into a structured format.
  3. Load a Google Slides template that has placeholders for title, body, and image.
  4. Iterate over each outline item: fill the title and body placeholders, apply the brand colors to the theme, and run an Unsplash search for the visual idea.
  5. Download the image, insert it into the slide placeholder, and move to the next slide.
  6. When all slides are filled, export the deck as PDF or PPTX and store it in your delivery folder.

Each step can be run as a separate script, making it easy to test one piece at a time. I keep the outline script in a file called generate_outline.py, the rendering script in render_deck.py, and a small shell script that chains them together.

One concrete gripe: I got annoyed when the built‑in export to PowerPoint always stripped animations, which drove me nuts when I needed a simple fade‑in for bullet points. The workaround is to export as PDF first, then convert PDF to PPTX with a tool that preserves basic transitions.

One concrete love: I love how the outline step cuts my drafting time from an hour to five minutes. That alone lets me take on more clients without burning out.

— and good luck finding docs for this — the Google Slides API reference is scattered across multiple pages, but the batch update method is the one you need for mass‑inserting text and images.

For more on this exact angle, AI meeting tools coverage.

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.