Skip to content
Book a call

Claude Code Animated Youtube Automation: Build a Brief-to-Preview Workflow

Build claude code animated youtube automation from an approved brief to a validated Remotion preview with scene data, checks, and human review.

Written by
Arindam Sikder
Published
November 22, 2026
Reading time
8 min read (1516 words)
  • youtube automation
  • claude code
  • ai automation
  • video production
  • workflow integration
Claude Code Animated Youtube Automation: Build a Brief-to-Preview Workflow

Claude Code animated YouTube automation can turn an approved brief into a script, structured scene data, and a rendered preview when you pair Claude Code with a video renderer such as Remotion. This guide walks through a small text-animation workflow you can run locally, check before rendering, and review before any upload.

Table of Contents

Set up a small, reviewable project

Choose one repeatable video format

Start with a format your coach, agency, or content team can describe consistently: for example, an opening, three teaching points, and a closing question. Keep the first version text-only. That makes it easier to spot timing, scene-order, and legibility problems before adding voice, footage, or publishing integrations.

Use Claude Code to work with the project files and commands; use Remotion to build and render the animation. Their roles are different: see the Claude Code overview and Remotion documentation. Create a Remotion project using its starter instructions, then open that project in Claude Code. A practical starting structure is:

  • src/scenes.json: approved scene content and timing.
  • src/Video.tsx: reusable scene animation.
  • src/Root.tsx: composition dimensions, frame rate, and total duration.
  • scripts/validate-scenes.mjs: checks that scene data is usable.
  • jobs/example/: the brief, approved script, and any job-specific assets.

Keep the brief and approved script as source material, not as a place for the model to invent missing evidence. Decide who owns the content approval, who maintains the code and render command, and who reviews the output. One person can hold more than one role, but the approval step should be explicit.

Convert an approved brief into scene data

Worked example: preparing for a discovery call

Suppose a coach supplies a brief asking for a short explainer with an opening, three preparation steps, and a closing question. The following data is illustrative: it demonstrates the format, not verified business advice. Each scene has visible text, narration, and a duration in seconds.

{

"fps": 30,

"scenes": [

{"id":"open","text":"Prepare before the call","narration":"A useful discovery call starts with preparation.","seconds":4},

{"id":"goal","text":"1. Set one goal","narration":"Decide what you need to learn from the conversation.","seconds":5},

{"id":"questions","text":"2. Write your questions","narration":"List the questions you need answered.","seconds":5},

{"id":"context","text":"3. Gather context","narration":"Review the information you already have.","seconds":5},

{"id":"close","text":"What do you need to learn?","narration":"What is the most important question for your next call?","seconds":4}

]

}

Ask Claude Code to draft this file from the brief, while separating drafting from approval. For example: “Read the approved brief. Draft a script and scenes.json with an id, visible text, narration, and duration in seconds for every scene. Use only the supplied claims; flag gaps instead of guessing. Do not publish. Run the validator and report errors.” A human should approve the script and scene copy before rendering.

Keep the schema narrow. A small, stable set of fields is easier to validate and animate than a flexible format with optional styling and asset instructions. Add fields only when a real production need arises.

Animate the scenes and register a composition

Use one component for each repeated scene pattern

In src/Video.tsx, place each text scene in a Remotion Sequence. The example uses a short fade-in and calculates each scene’s start frame from the durations before it. It assumes the project supports JSON imports; if TypeScript reports an import error, enable JSON module resolution in the project configuration or move the data into a TypeScript module.

import {AbsoluteFill, Sequence, useCurrentFrame, useVideoConfig} from 'remotion';

import data from './scenes.json';

export const Main = () => {

const {fps} = useVideoConfig();

return <AbsoluteFill style={{backgroundColor:'#101828', color:'white', fontFamily:'Arial'}}>

{data.scenes.map((scene, index) => {

const from = data.scenes.slice(0, index).reduce((sum, item) => sum + item.seconds * fps, 0);

return <Sequence key={scene.id} from={from} durationInFrames={scene.seconds * fps}>

<Scene text={scene.text} />

</Sequence>;

})}

</AbsoluteFill>;

};

const Scene = ({text}: {text: string}) => {

const frame = useCurrentFrame();

return <AbsoluteFill style={{justifyContent:'center', alignItems:'center', padding:80}}>

<div style={{fontSize:72, opacity:Math.min(1, frame / 12), textAlign:'center'}}>{text}</div>

</AbsoluteFill>;

};

In src/Root.tsx, set the composition length from the scene durations so the video ends after the final scene:

import {Composition} from 'remotion';

import data from './scenes.json';

import {Main} from './Video';

const frames = data.scenes.reduce((sum, scene) => sum + scene.seconds * data.fps, 0);

export const Root = () => <Composition id="Main" component={Main} durationInFrames={frames} fps={data.fps} width={1920} height={1080} />;

Register Root using the starter’s existing entry point and Remotion’s registerRoot. Keep the starter’s file conventions where possible rather than creating a second entry point.

Validate inputs before rendering

Catch structural errors with a runnable check

A JSON file can parse successfully and still contain missing text, repeated IDs, or invalid durations. Save this as scripts/validate-scenes.mjs:

import fs from 'node:fs';

const data = JSON.parse(fs.readFileSync('src/scenes.json', 'utf8'));

const errors = [];

if (!Number.isInteger(data.fps) || data.fps < 1) errors.push('fps must be a positive integer');

if (!Array.isArray(data.scenes) || data.scenes.length === 0) errors.push('scenes must be a non-empty array');

const scenes = Array.isArray(data.scenes) ? data.scenes : [];

const ids = new Set();

for (const [i, scene] of scenes.entries()) {

if (typeof scene.id !== 'string' || !scene.id.trim() || ids.has(scene.id)) errors.push(`scene ${i}: missing or duplicate id`);

ids.add(scene.id);

if (typeof scene.text !== 'string' || !scene.text.trim()) errors.push(`scene ${i}: missing text`);

if (typeof scene.narration !== 'string' || !scene.narration.trim()) errors.push(`scene ${i}: missing narration`);

if (!Number.isInteger(scene.seconds) || scene.seconds < 1) errors.push(`scene ${i}: seconds must be a positive integer`);

}

if (errors.length) { console.error(errors.join('\n')); process.exitCode = 1; }

else console.log('Scene data is valid.');

Run node scripts/validate-scenes.mjs. The script uses Node’s file-reading API to load the JSON; its behavior is documented in the Node.js file system documentation. This check verifies structure, not whether claims are supported, wording is clear, or text fits on screen. Ask Claude Code to fix specific reported errors, then inspect the changed file rather than accepting a broad rewrite.

Render a preview and handle failures

Run the check before the render

From the project root, run node scripts/validate-scenes.mjs && npx remotion render src/index.ts Main preview.mp4. This command assumes the starter registers the composition from src/index.ts and names it Main; substitute the actual entry-point path if your starter differs. Remotion documents the rendering command and options in its render-media reference.

Watch the complete preview. Compare the scene order with the approved script, check that text is readable, and confirm that the narration matches the visible copy. When rendering fails, preserve the error output and ask Claude Code to identify the likely file or scene involved. Make one focused change at a time, rerun validation, then render again; changing the script and animation together makes it harder to isolate the cause.

  • Input: required fields are present and scene IDs are unique.
  • Editorial: wording follows the approved brief and supplied evidence.
  • Playback: the exported file opens and every scene displays as intended.
  • Release: a named reviewer approves the preview before a separate upload step.

Keep upload separate from rendering. If you later build an upload step, Google’s YouTube Data API guide describes an API upload flow; a successful render does not itself constitute publication approval.

Decide what to automate next

Use repeated failure patterns to choose the next change

Do not add integrations just because they are available. Track validation failures, render failures by cause, script corrections, and time from brief receipt to human approval. These measures indicate where the workflow is getting stuck; they do not establish that automation improves audience or channel performance.

Observed bottleneckImplementation choiceKeep a person responsible for
Briefs arrive with missing contextStandardize required brief fields before drafting.Deciding whether the brief is complete enough to use.
Scene files repeatedly fail checksRun the validator whenever scene data changes.Reviewing claims and editorial quality.
Text needs repeated layout fixesImprove the reusable scene component or create a template for that format.Checking readability in the actual render.
Approved videos stall before publicationDocument the upload handoff and its owner separately.Making the final publication decision.

If you set numeric limits for review queues, retries, or scene duration, label them as illustrative starting policies, not universal benchmarks. Adjust a limit when workflow records show it is causing avoidable delays or letting repeated errors pass; investigate the cause before simply allowing more retries.

For teams that need custom connections between content steps and business tools, Social Surge Media builds and maintains tailored automation workflows with human approval steps; see its custom AI automation services. Teams considering a self-hosted setup can also review the Agentic OS for agencies.

Do this first: create the Remotion starter project, add the sample scene file and validator, then render one approved brief to preview.mp4. Keep the workflow manual at the approval points until you can identify who owns each check and what happens when it fails. For help designing a tailored workflow, learn more about Social Surge Media.

Authored with NotFair SEO

Free checklist

The AI Automation Readiness Checklist

The 15 checks we run before installing an OS in any business.

Related articles

Want to automate this for your business?

Contact Social Surge Media today for a practical, custom automation plan designed around your operations.

A 30-minute call to map where work gets dropped and what to automate first.