A short-form video content business
AI video engine, from persona to finished video
I worked on an engine that creates AI personas and makes 20-second talking-head videos of them. It went from an empty repo to production in eleven days.
- Industry
- Media
- My role
- Full-stack engineer: architecture, video pipeline, workflows and infrastructure
- Years
- 2026
- Status
- In production since 2026 Checked 15 Nov 2026
- Videos built from four 5s clips
- 20s
The problem
Short-form video takes a lot of people’s time. Someone writes the idea, makes the visuals and edits the clip.
Every video needs that whole chain again, so more output means more hires.
The client wanted most of that chain to run on its own: a short brief goes in, and a finished video comes out.
What I worked on
I worked on the engine as it went from an empty repo to a live production system in eleven days.
It creates an AI persona, writes a script for it and makes a 20-second talking-head video.
AI image models give you a different face each time you ask for the same character. I fixed that by making one main portrait per persona and producing every later image as an edit of it, so the persona looks like the same person everywhere.
Video models only make short clips and remember nothing between them. Each video is four 5-second clips, and each clip starts from the last frame of the one before, so the pose, outfit and lighting carry across the cuts.
Every video clip is a paid model call, so I split the pipeline into steps that each save their result. If the fourth clip fails, the retry starts at the fourth clip and never pays again for the script or the first three.
Retries are set per step. Video clips get two attempts and cheap text steps get four.
How it works
- Persona builder: writes a character sheet for each persona and makes the one main portrait that every later image is edited from.
- Video pipeline: writes the script, makes four 5-second clips chained frame to frame, checks the lip sync and joins them into one 20-second video.
- Operator dashboard: shows every run step by step, plus a chat with Claude that can create personas and make videos and variations, with approve and reject buttons in the chat.
- Workflow engine: every step runs on Temporal, which keeps each job’s progress through crashes and long waits.
Under the hood
- The first plan ran the workflows on n8n with BullMQ queues. I wrote a design record for moving to Temporal instead.
- The reasons in that record: on Temporal the workflows are code, with typed inputs and outputs, retries, schedules, sleeps that can last days, and signals.
- The other option on the table was eight separate services. I checked that split against six common reasons for running separate services, and it met only one.
- So the system stays one codebase split into modules, and a second design record says why.
Where it is now
The engine went into production in 2026.
After launch I added separate logins with each user’s data kept apart, a way to add your own instructions to a video when you approve it, and video fixes for framing, lip sync and hands. I kept shipping changes later in 2026.
What I’d tell a founder in the same spot
If every step of a pipeline costs money, save the result of each step and retry only the step that failed. Set the retry count for each step based on what it costs and what a repeat would break, not one number for the whole system.
How it fits together
- 1. A person Operator asks for a video in the chat
- 2. AI AI writes the script for the persona
- 3. A person Operator approves it, adding instructions if needed
- 4. AI AI makes four 5-second clips, each from the last frame
- 5. Code Code joins the clips into one 20-second video
Built with
- Python
- FastAPI
- Temporal
- TypeScript
- React
- Postgres
- FFmpeg
- Claude