← Questions

Design an agent workflow that produces a feature-length video

0
SpaceXAISystem designLast asked Feb 2026

An AI system design interview question asked in SpaceXAI's technical phone screen, last asked Feb 2026. It tests agents, video generation and planning.

Design an agentic system that turns a short brief ("a one-hour sci-fi film about a lighthouse keeper on Mars") into a coherent, watchable one-hour movie. Today's video models produce clips of a few seconds to a minute, so the system must plan, generate and stitch hundreds of clips while keeping story, characters, look and sound consistent. Assume you can call text, image, video, voice and music models as tools.

Requirements

  • Functional: expand the brief into a story outline, script and shot list; generate each shot's video, dialogue audio and music; assemble an edited film with transitions and subtitles; let a person review and request changes at chosen points.
  • Functional: keep characters, locations, props and style consistent across every clip, and keep the plot coherent from start to end.
  • Non-functional: cost and GPU time bounded (an hour of film is thousands of generations and retries), resumable after failures, parallel where shots are independent, and every artifact traceable to the step that made it.

Clarifying questions

  • Who is the user, a creator who wants control at each stage or someone who wants a finished film from one prompt?
  • What quality bar: festival short, social content, a storyboard-quality draft?
  • What is the budget in money and wall-clock time?
  • Which models are available, and can any be fine-tuned (for example on a character's look)?
  • Are there content safety and copyright constraints on characters, voices and music?

What a strong answer covers

  • A hierarchical plan: brief to acts, scenes and shots, each level produced and checked by an agent before the next expands it, so mistakes are caught early and cheaply.
  • A shared "story bible" as the memory every agent reads: characters with reference images and voice settings, locations, style guide, continuity facts (who holds what, time of day), updated as scenes are written.
  • Consistency techniques: reference-image or identity conditioning per character, the last frame of a shot as the start of the next, fixed seeds and style prompts, and a continuity checker that compares clips against the bible.
  • Quality gates at each level: automated critics (vision-language models scoring prompt adherence, artifacts and continuity, reward models for aesthetics), regeneration with a retry budget, and human review where it matters most (outline, key scenes, final cut).
  • Orchestration: a DAG of tasks with parallel shot generation, a job queue, caching of finished artifacts, and checkpoints so a failure redoes only one shot.
  • Cost control: draft at low resolution, upscale only approved shots, and spend retries where critics disagree most.

Follow-ups

  • A character's face drifts after scene 20. How do you detect it and repair it without regenerating everything?
  • The viewer asks to change the ending after the film is done. What has to be regenerated?
  • How would you measure whether the film is good, and could those signals train a reward model?
  • How would you scale this to many users generating films at once on a shared GPU pool?

Where it's asked

What it tests

agents · video generation · planning

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing