All protocolsAI animated explainer
protocol/ai-video@1.0v1.012 steps · 8 gates · 4 client decisionsAI animated explainer
Turn a story or brief into a finished narrative film that is scripted, cast, voiced and previewed, then approved before any paid motion is generated.
When to use
Use when a product needs a story told with recurring characters, rooms and dialogue: an explainer, a founder story or a long-form ad from thirty seconds to several minutes. The method keeps every approved line, face and prop fixed while the film is revised, so a review changes only what the client asked to change.
Pipeline
Inputs
What the work needs before it starts. Every required input is in hand before step one.
| Name | Type | Required | Description |
|---|---|---|---|
story_brief | text | Required | The story, concept or rough script: the beats, the characters, the lines that matter and how the last card should read. |
product_truth | facts | Required | Product facts, the offer and any claims that may appear on screen, each with its source. |
brand_kit | assets | Required | Wordmark, colours, type and the caption highlight colour. |
references | images | Optional | Photos of real products and props that must appear, and any screen that should show a real page. |
music | audio + rights basis | Optional | A track to score the film, which moment of the song should land on which moment of the story, and the basis for using it. |
placement | enum | Optional | The primary aspect ratio. 9:16 by default; 4:5 and 1:1 are cut from the finished master. |
target_length | duration | Optional | Target length and pace. Plans assume about 2.2 spoken words per second. |
Outputs
| Name | Type | Description |
|---|---|---|
script | document | Every line with written delivery direction, and every trim or addition listed. |
world_bible | PDF + media | Cast turnarounds, one set frame per camera angle, prop sheets, the screens as HTML plates and the authored end card. |
preview | MP4 | A still-image preview with recorded voice, sound, music and graphics, identified by render id, size and checksum. |
final_master | MP4 | The finished film with motion and lip sync at the primary placement. |
placement_cuts | MP4[] | 4:5 and 1:1 cuts of the approved master for feed placements. |
qa_report | JSON | The twelve-check structural QA report that must pass before delivery. |
Steps
Step 1: Intake with defaults
OperatorRead the brief, then ask every open question in one message: a voice per character matched to age, pace and length, which screens appear, which props to bind, brand chrome, the end card, the music and its rights, and the placement. Each question carries a proposed default.
- Artifact
- Intake record with confirmed defaults
Step 2: Script
AgentWrite every line with delivery direction (emotion, emphasis, pauses), keep one sentence per line, and plan the length at about 2.2 words per second.
- Artifact
- Script with delivery direction
GateScript approval· decided by Client
The client approves the script, including every trim and addition, before any picture or voice is made.
Step 3: World bible
AgentGenerate cast turnarounds, one gold set frame per camera angle and a sheet for each recurring prop. Author every screen and the end card as HTML plates, never as generated pictures, and assemble one review book.
- Tool
world-bible.ts · screen-plates.mjs- Artifact
- World bible review book
GateWorld approval· decided by Client
The client approves the cast, sets, props, screens and end card in the review book. Nothing approved is re-invented later.
Step 4: Sequence plan and stage
AgentBreak the script into sequences of 5 to 15 seconds with one start frame each. Bind every approved asset by media id and SHA-256, then stage, plan and check the storyboard.
- Tool
film-run.py stage · plan · check · approve- Artifact
- Staged manifest and approved storyboard
GateStoryboard check· decided by System
The manifest validates with zero errors and the storyboard check shows no blocking finding that was not expected.
Step 5: Voice
AgentCast each speaker from the voice library, record whole scene takes with the written delivery, then cut the picture to the voice so no shot is timed to an estimate.
- Tool
film-run.py voice · fit- Artifact
- Recorded takes and a fitted timeline
GateClean takes· decided by System
No line is clipped or missing words. A flat take on a line directed at high intensity is re-directed and re-recorded.
Step 6: Stills and contact sheets
AgentMake each start frame with its bound references and look at every one beside its first line: the face matches the line, the speaker is in frame, and every screen and prop is the bound one.
- Tool
film-run.py visuals · sheet- Artifact
- Start frames and contact sheets
GateStill integrity· decided by System
A prop or world-rule mismatch blocks motion. The still is remade or the client accepts it; the flag is never argued away.
Step 7: Sound, music, graphics and layers
AgentPlace interface sounds from a fixed sound kit, align and shape the music to the story's turn, place graphics by the words said, and lay the brand gradient and wordmark over the film. The end card is an authored last picture held for at least eight seconds.
- Tool
film-run.py sound · cues · music · shape · graphics · layers- Artifact
- Complete audio program and overlays
Step 8: Preview and self-audit
AgentRender the preview, run the self-audit, watch it once at full length, and deliver it with its render id, length, open findings and the motion cost that approval would release.
- Tool
film-run.py preview · audit- Artifact
- Preview MP4 and delivery note
GatePreview and spend approval· decided by Client
Only the client approves, requests changes to or revokes a preview, and the self-audit must pass first. Client approval of that exact preview is what releases paid motion, lip sync and final rendering; no spend happens before it.
Step 9: Revision loop
OperatorCatalogue every note, and everything the client praised, then fix any gap in the engine before touching the film. The same film is revised in place: only the named shots get new stills and only changed lines are re-recorded. A new preview returns to the client.
- Tool
film-run.py snapshot · revise · keep-voice · carry- Artifact
- Feedback catalogue and revised preview
Step 10: Motion canary
AgentGenerate motion on three representative shots and prove lip sync on one visible speaker before the remaining shots are bought.
- Tool
agent.mjs motion.preview · motion.start · lipsync.start- Artifact
- Canary clips with lip sync
GateCanary check· decided by Operator
The canary shots hold identity, product geometry and lip sync before any further shot is generated.
Step 11: Production waves
AgentGenerate the remaining shots in waves and review each take on its frames. A failed take gets at most one corrective take with a materially different input before the strategy changes.
- Tool
agent.mjs motion.start · lipsync.start- Artifact
- A bound clip for every shot
Step 12: Final render and QA
AgentRender the final master and the 4:5 and 1:1 cuts, answer all twelve structural QA checks, and deliver only on a clean report.
- Tool
agent.mjs render.start · validate_qa_report.py- Artifact
- Final master, placement cuts and QA report
GateFinal approval· decided by Client
The client approves the finished film before it is published or used in any ad.
Gates
A gate must pass before the next step starts. Filled gates are the client's decisions; nothing is spent, published or sent before them.
| Gate | Decided by | Rule |
|---|---|---|
| Script approval | Client | The client approves the script, including every trim and addition, before any picture or voice is made. |
| World approval | Client | The client approves the cast, sets, props, screens and end card in the review book. Nothing approved is re-invented later. |
| Storyboard check | System | The manifest validates with zero errors and the storyboard check shows no blocking finding that was not expected. |
| Clean takes | System | No line is clipped or missing words. A flat take on a line directed at high intensity is re-directed and re-recorded. |
| Still integrity | System | A prop or world-rule mismatch blocks motion. The still is remade or the client accepts it; the flag is never argued away. |
| Preview and spend approval | Client | Only the client approves, requests changes to or revokes a preview, and the self-audit must pass first. Client approval of that exact preview is what releases paid motion, lip sync and final rendering; no spend happens before it. |
| Canary check | Operator | The canary shots hold identity, product geometry and lip sync before any further shot is generated. |
| Final approval | Client | The client approves the finished film before it is published or used in any ad. |
Failure modes
| Symptom | Prevention |
|---|---|
| Words are cut off at the end of lines | Lines are cut on the recording's own word timings. A clipped or incomplete line has no recording until it is re-recorded. |
| The whole film sounds flat | Every line carries written delivery direction, and a flat take on a line directed at high intensity is flagged and re-recorded. |
| A product or prop changes between rooms | Recurring props are bound to their set and checked on every still. A mismatch blocks motion. |
| A notification sounds like a horn, or a second melody plays under the score | Interface sounds come from a fixed kit, never a prompt, and musical prompts under the score are refused when the plan is staged. |
| The music peaks at the wrong moment | The track is aligned to the story's turn and shaped with a volume envelope, then re-shaped after every timing change. |
| A revision quietly rebuilds the whole film | Revisions run in place on the same film. Only named shots get new stills and only changed lines are re-recorded. |
| The film runs about forty percent longer than planned | Directed delivery is slower than plain reading. Plan at about 2.2 words per second and state the new length at every delivery. |
Operator commands
Run by our operators and coding agents inside our own tooling. These are workflow commands, not public API endpoints. Every paid, publishing or sending command runs only after the client's approval.
Operator commandPre-flight: screens and world bible
node scripts/video/screen-plates.mjs --dir <plates-dir> --check
npx tsx scripts/video/world-bible.ts --job <world-bible.json> --out <dir> --dry-run
node scripts/video/world-bible-pdf.mjs --book <book.json> --out <review-book.pdf>Operator commandRun the film to a preview
python3 scripts/video/film-run.py <job.json> stage
python3 scripts/video/film-run.py <job.json> plan
python3 scripts/video/film-run.py <job.json> check
python3 scripts/video/film-run.py <job.json> approve
python3 scripts/video/film-run.py <job.json> voice
python3 scripts/video/film-run.py <job.json> fit
python3 scripts/video/film-run.py <job.json> visuals
python3 scripts/video/film-run.py <job.json> sheet
python3 scripts/video/film-run.py <job.json> sound # then cues, music, shape, graphics, layers
python3 scripts/video/film-run.py <job.json> preview
python3 scripts/video/film-run.py <job.json> audit # must exit 0 before the preview is sentOperator commandRevise the same film in place
python3 scripts/video/film-run.py <job.json> snapshot
python3 scripts/video/film-run.py <job.json> stage
python3 scripts/video/film-run.py <job.json> revise
python3 scripts/video/film-run.py <job.json> keep-voice
python3 scripts/video/film-run.py <job.json> carry
python3 scripts/video/film-run.py <job.json> voice # records only new and changed linesOperator commandMotion, only after the client approves the preview
node scripts/adbuy/agent.mjs motion.preview --json <scope.json>
node scripts/adbuy/agent.mjs motion.start --json <confirmed-scope.json>
node scripts/adbuy/agent.mjs render.start --json <final.json>