Vaibhav Nakrani
← WorkLog 01 / 11LLM agents

Explainer-video factory

AILA needed an explainer video for every skill in its exam-prep curriculum: about 8,500 topics and no animation team. I built the pipeline that made them.

Client
AILA (exam prep, Saudi Arabia)
Role
Senior AI Engineer. Designed, built and ran it
When
April – October 2026
Stack
Claude Agent SDK, Gemini on Vertex AI, Revideo, Kokoro TTS
8,452distinct videos shipped, 99.9% of the topic bank
375 hof finished video
$3.66per shipped video, failed attempts included
23 minmedian time from topic to finished video
How it works

Give it a topic from the school curriculum and it makes a short whiteboard video with a voice-over, two to three minutes long. No person works on the video along the way.

The steps are simple: plan the lesson, write and record the voice, draw the animation, check it, fix it, publish it. The drawing is written as code, so the computer always knows where every word and shape sits on the screen. That turns most of the checking into plain measuring. Is any text sitting on other text? Is anything off the edge? Is it readable? A model only looks at the picture when the measuring finds something odd.

Problems and fixes

An empty screen has no mistakes on it. A check that only looks for clashes will happily pass a board with nothing drawn. I added the opposite check: did everything that was planned actually show up? I also changed how sizes are measured, so text that doesn't fit its box gets caught.

Giving up too early. Each scene got a fixed number of tries. Many of the scenes that were thrown out were still getting better when the tries ran out. Now a scene that keeps improving gets a few more. The bar for passing stayed where it was.

Voice and picture out of step. The plan guessed how long each spoken line would take, and the guesses were off. Now the drawing follows the real recording, and each line starts only when the one before it has finished.

Topics went missing. A topic was ticked off when its video was planned, not when it was done. If the video failed later, the topic never came back. Now it is ticked off only when the video is finished, failed ones go back in the queue, and a report lists anything that was left out.

It had to work in Arabic later. Arabic reads right to left. So the drawing code never says left or right, only start and end, and it avoids symbols that have no Arabic form. A layout written that way can be mirrored for Arabic later.

One output
Fig. 1One video, start to finish as the pipeline produced it. Biology, 2:19.
Walkthrough

The five-minute version, in my own words.

Working on something like this? Message me on LinkedIn → or email nakranivaibhav14@gmail.com