Skip to content
All work

Generative AI Web App

AI Pitch Deck Generator

Full-stack AI app that turns a few sentences about a startup idea into a 5 to 8 slide pitch deck, written by one AI agent, approved by another and drawn as whiteboard-style slides.

Overview

What the product does

Describe a startup idea in a few sentences and get back a structured pitch deck covering the slides investors expect: problem, solution, market, business model and the ask. A generator agent writes the deck, an independent reviewer agent checks it, and each slide is drawn as a whiteboard-style image that can be presented right in the browser.

Problem

The problem it solves

Founders spend days turning a rough idea into a pitch deck: structuring the story, writing each slide and finding visuals. Generic AI chat tools produce walls of text that still have to be reorganised, checked and designed by hand.

My role

What I contributed

Solo developer: design, frontend, backend, the multi-agent AI pipeline, background jobs and the database.

Solution

How the system was designed

One paragraph in, a complete deck out. A Next.js Server Action validates the idea and saves a pending deck, then a durable Inngest workflow runs the pipeline step by step: the OpenAI Agents SDK generates the deck as schema-checked JSON, a reviewer agent approves or blocks it, gpt-image-2 draws each slide and ImageKit hosts the images, and the finished deck is saved to PostgreSQL on Neon through Prisma.

Architecture

System architecture

ClientApplicationServicesDataExternalHTTPSVerifyEventRunQueriesSaveUploadGenerateDrawBrowserDeck workspaceNext.jsUI · Server ActionsBetter AuthSessionsInngestDurable stepsAgents SDKGenerator · ReviewerPostgreSQLNeon · PrismaImageKitSlide imagesOpenAIGPT-5.5 · gpt-image-2

Key features

What it does in practice

Challenges

The interesting engineering problems

  • Making AI output dependable

    Problem
    LLMs don't always follow instructions, so a deck could arrive malformed or simply not good enough to show.
    Approach
    Enforced a Zod schema on the agent's output and added a second reviewer agent as an output guardrail, so a deck only reaches the user after passing both the schema check and the review.
  • Long-running AI work in a web app

    Problem
    Generating the text plus several images takes minutes, far longer than a normal HTTP request can wait.
    Approach
    Moved the work into Inngest's durable steps. The UI responds straight away and polls for progress, each step retries on its own so one failed image doesn't restart the deck, and unrecoverable errors such as rejected ideas or invalid API keys fail straight away.
  • Keeping AI costs bounded

    Problem
    Every generation makes several paid model calls, and weak or repeated requests waste them.
    Approach
    An input guardrail rejects ideas that are too short before any model call, concurrency and throttle limits cap usage, and a placeholder-image mode keeps development free.
  • Defending against prompt injection

    Problem
    The user's idea goes straight into the prompts, so it could try to instruct the reviewer to approve anything.
    Approach
    The reviewer treats the idea as material to grade, never as instructions, and blocks the deck if it can't reach a verdict.
  • Connecting Prisma 8 to Neon

    Problem
    Neon's PgBouncer pooler rejects the session settings that Prisma 8 sends, so pooled connection strings failed.
    Approach
    Built a helper that switches pooled URLs to Neon's direct endpoint and pools the connections inside the server process instead.

Technology

The stack behind it

  • Next.jsReact Framework
  • OpenAI Agents SDKMulti-Agent Workflows
  • OpenAILLMs & Embeddings
  • InngestDurable Background Jobs
  • PostgreSQLRelational Database
  • NeonServerless Postgres
  • Prisma ORMType-Safe ORM
  • Better AuthAuthentication
  • ZodSchema Validation
  • ImageKitImage Hosting & CDN
  • ReactFrontend UI
  • TypeScriptType Safety
  • Tailwind CSSStyling System
  • Shadcn UIComponent Library