Why I use a structured workflow
Creating a YouTube Short with AI is not just a matter of asking a model to "make a video." A useful short has to communicate one idea quickly, maintain a consistent visual direction, and fit naturally into a short amount of time.
I therefore treat the process as a pipeline. The topic is first converted into a short script, the script is divided into scenes, each scene receives visual instructions, and the individual assets are finally assembled into the finished video.
This separation is important because it makes each stage easier to review and improve instead of trying to generate the entire video in one step.
1. Start with one clear idea
The first step is deciding what the viewer should understand after watching the Short. I avoid starting with a broad subject such as "databases" or "artificial intelligence." Those topics are too large for a short-form video.
Instead, I reduce the topic to one specific observation, problem, technique, or surprising fact.
For example:
- Why random UUIDs can affect database insert performance.
- Why connection pools can become too large.
- Why an index can sometimes make a query slower.
- Why adding more application servers does not always increase throughput.
The narrower the idea, the easier it is for the model to produce a focused script and for the viewer to understand the takeaway.
2. Generate the script before generating visuals
One of the mistakes I found with AI video generation is trying to generate visuals before the narrative is finalized. The visuals then become disconnected from the explanation.
I generate the narrative structure first. The output needs to contain a strong opening, a small number of meaningful beats, and a clear conclusion.
A prompt I use as a starting point looks like this:
Create a 30-45 second YouTube Short about [TOPIC].
The audience is software developers.
The Short should explain one specific idea clearly
without assuming the viewer already knows the answer.
Return the following JSON structure:
{
"hook": "...",
"scenes": [
{
"id": "scene_1",
"durationSeconds": 5,
"narration": "...",
"visualType": "...",
"visualInstructions": "..."
}
],
"ending": "..."
}
Requirements:
- Start with a strong hook.
- Explain one core idea only.
- Use short spoken sentences.
- Avoid unnecessary introductions.
- Each scene should communicate one visual idea.
- Keep the narration natural when spoken aloud.
- End with a concise takeaway.
- Do not introduce claims that are not supported by the topic.The important part is not the exact wording of the prompt. It is the structure. By defining the output format, I can pass the generated result directly into the next stages of the pipeline.
3. Design the scenes around the narration
After generating the script, I split it into visual scenes. I generally avoid creating a new scene for every sentence. Instead, related sentences can share the same visual when changing the scene would not add anything meaningful.
Each scene should answer a simple question:
What should the viewer see while they hear this part of the explanation?
This prevents the common problem where the narration explains one concept while the screen shows something unrelated.
For example, if the narration explains a database index becoming larger as a table grows, the visual should show the relationship between the table, index, and increasing amount of data rather than displaying a generic "database" image.
4. Make visual instructions specific
Generic visual instructions usually produce generic results. I therefore describe the subject, action, environment, composition, and visual style when generating assets.
Instead of:
Show a database getting slower.I prefer something closer to:
Show a clean technical visualization of a database table
growing from a small number of rows to millions of rows.
Highlight the primary-key index becoming increasingly fragmented
as new rows are inserted at random positions.
Use a dark developer-tool aesthetic, clear database elements,
minimal background detail, and strong visual hierarchy.
The composition must work in a vertical 9:16 video.The second description gives the generation model much more information about what the scene is supposed to communicate.
5. Keep the visual language consistent
A Short can contain individually good images and still look inconsistent when they are combined. Different colors, camera styles, characters, backgrounds, and compositions can make the final video feel like a collection of unrelated assets.
I therefore define a visual direction before generating the scenes. The same style, aspect ratio, color treatment, typography rules, and general composition are reused throughout the Short.
This becomes particularly important when using image generation for technical topics because diagrams, code, interfaces, and abstract concepts need to remain visually understandable across multiple scenes.
6. Treat captions as part of the layout
Captions are not simply text that can be added after the video is generated. They occupy physical space on a vertical screen and compete with the visual content.
I keep caption lines short, limit the number of lines displayed at once, and reserve a predictable region of the screen for them.
This is especially important for generated technical content because long terms such as database names, API calls, and code snippets can easily overflow the available width.
I also prefer generating the voice-over first and deriving the captions from the actual narration rather than writing a separate caption script. This keeps the spoken audio and displayed text synchronized.
7. Generate voice-over separately
I treat narration as another production stage rather than asking a video model to solve everything at once.
The generated script is converted into voice-over audio, and the resulting duration is then used when calculating the timing of the scenes.
This gives the rendering pipeline a concrete timeline instead of relying entirely on estimated scene durations.
8. Render only after validating the assets
Before rendering the final video, I validate the generated assets. This includes checking that every scene has an asset, the aspect ratio is correct, the narration exists, and the expected duration is reasonable.
I also check for problems that are difficult to fix after the final render, such as text extending outside the safe area, missing images, incorrect scene ordering, or audio that is longer than the video.
9. The complete pipeline
The workflow eventually becomes a repeatable pipeline rather than a collection of manual steps:
Topic
↓
Script generation
↓
Scene breakdown
↓
Visual instructions
↓
Image / video generation
↓
Voice-over generation
↓
Caption generation
↓
Asset validation
↓
Video rendering
↓
Final ShortOnce the pipeline is structured this way, changing one stage does not require rebuilding the entire process. For example, I can replace the image generation model without changing the script generation or rendering logic.
What I learned
The biggest lesson is that better AI video generation is not necessarily about writing a longer prompt. It is about giving each stage enough structure to do one job well.
A single prompt asking an AI model to create an entire finished video gives you very little control. A structured pipeline gives you control over the narrative, visuals, timing, audio, captions, and final rendering independently.
That also makes failures easier to diagnose. If a Short looks bad, I can determine whether the problem came from the script, scene description, generated asset, voice-over timing, caption layout, or rendering stage.
The prompt is only the beginning
The most useful prompts I've created are not necessarily the ones that produce the best output on the first attempt. They are the ones that produce structured output that can be evaluated, corrected, and passed to the next stage of the workflow.
That's the approach I use when building AI-powered content generation systems: start with a clear objective, make the output predictable, inspect the result, and iterate.