ProjectBuild an Agentic Content Studio: the explanation · Start here · part 1 of 22
Part 1 · Start here

Build an Agentic Content Studio: the explanation

3 min read·

A working content studio, Slidesmith Studio, taken apart in illustrated modules. A user describes a topic, picks a LinkedIn carousel or 16:9 slides and a template, and three AI agents (research, content strategist, designer) write a structured deck spec in the user's brand. Code renders it, measures every slide in a headless browser, sends slides that overflow back to the designer, and exports PDF, PNG, ZIP or a single HTML file. The user never sees HTML: they click any text to edit it, switch template or format instantly, or ask the AI to redo one slide. Everything runs on an open-weight model, qwen3.8:27b, on the user's own Mac through Ollama, or on a hosted copy of the same model in the cloud.

Who it is for: anyone who knows a little Python and wants to understand, rebuild or extend a real agentic application with a web front end, from beginners to working engineers. Each module says what to read first.

How each module is laid out

SectionAnswers
Where this fitsthe same system map in every module, with this module's parts highlighted
What it doesthe idea in one picture, then each production practice at a glance: what, why, how, when, where
Use cases and examplesthe same practice in this studio and in other industries
How it worksthe mechanism step by step, one figure per step, with real values
Code tourthe real files, short excerpts, every line explained, concept boxes for new ideas, and a "what happens when" trace
Design decisionswhat was chosen, the alternatives and why, with measured numbers, and when to choose differently
What can go wrongfailures and attacks, how the code handles each, and the test that proves it
Try it yourselfexact commands and what you should see
Check yourself, Key termsa short quiz and a glossary

Figures use one colour language: blue is our system, amber is a model or anything uncertain, green is correct or safe, red is failure or attack, grey is background.

Modules

#ModuleMain code
0Project overview: a guided tour of the running appscreenshots of the real app, no code
1The problem with making carousels by handresearch/, prototype/
2The solution: one prompt, three agents, one specai/pipeline.py, render/renderer.ts
3Choosing the model and the infrastructureresearch/spike_llm.py, ai/llm.py, core/config.py
4High-level designmain.py, nginx.conf.template, docker-compose.yml
5Low-level design: data, deck spec, API and eventsmodels/, alembic/, schemas/deck.py, the SSE protocol
6Sign-in, sessions and brand onboardingcore/security.py, api/routes/auth.py, services/brand.py, pages/Onboarding.tsx
7The deck spec and the templatesschemas/deck.py, render/renderer.ts, render/brand.ts, slides.css
8The agent pipeline with LangGraphai/pipeline.py, ai/context.py
9The research agent and web searchai/agents/research.py, ai/search.py
10The strategist, the designer and JSON repairai/prompts.py, ai/agents/strategist.py, ai/agents/designer.py, ai/jsonfix.py
11Render, measure and repair in Chromiumrender/chromium.py, render/measure.ts, pages/RenderPage.tsx
12Editing, redo and the editorpages/Editor.tsx, render/editing.ts, render/deckReducer.ts
13Background jobs and live progressai/jobs.py, api/routes/jobs.py, lib/useJob.ts
14Ideas, dashboard and insightsai/ideas.py, services/insights.py, pages/Ideas.tsx, pages/Insights.tsx
15Exports: PDF, PNG, ZIP and HTMLrender/export.py, api/routes/render.py
16Security: sessions, uploads, SSRF and XSSmain.py (CSRF), core/ratelimit.py, services/files.py, render/chromium.py, security.test.ts
17Evaluating the agentsevals/
18The studio front endfrontend/src
19Containers and the local stackbackend/Dockerfile, frontend/Dockerfile, docker-compose.yml
20Deploying to Google Cloud with CI/CDdeploy/, .github/workflows/