Case study / 08 · AI · LLM pipeline
An LLM pipeline that researches, writes and produces video on its own
I built a multi-stage pipeline on LLM APIs that handles research, script generation and video production for a YouTube content workflow, and runs without anyone watching it.
Problem
Getting an LLM to produce one good answer is easy. Getting a chain of LLM steps to produce usable output every time, with nobody checking each step, is not. One bad step early on quietly ruins everything after it.
Approach
- Prompts designed per stage. Research, scripting and production each get their own prompt and their own expected output, instead of one giant prompt doing everything.
- Validate before moving on. Every stage's output is checked before the next stage starts, so bad output is caught where it happens.
- Orchestration. The stages run as one workflow with clear hand-offs between them.
- Failure recovery. When a step fails, the pipeline recovers on its own instead of stopping and waiting for a person.
Result
- The full research-to-video workflow runs unattended.
- Bad output is caught at the stage that produced it, not at the end.
Where this shows up in product work
The same habits carry over to AI features inside apps: streaming LLM responses in React and React Native screens, agents that call tools and MCP servers, and output checks before anything reaches a user. Day to day I work with Claude Code, Codex, Cursor and GitHub Copilot, and the review and test bar stays the same as for code I write by hand. More on that in how I engineer with AI.