Skip to main content
04 / Case Study _06

Video Ad Pipeline

AI-Generated Video Advertising

StatusActive — in development
Stack
n8nRunway MLClaude APIElevenLabsFFmpegNext.js 15S3
Overview

An end-to-end AI pipeline that transforms creative briefs into production-ready video advertisements. The pipeline ingests a text brief (product, audience, tone, duration), generates a script with scene breakdowns using Claude, produces video segments via Runway ML, synthesizes voiceover with ElevenLabs, composites everything with motion graphics and brand overlays using FFmpeg, and delivers review-ready assets to a Next.js dashboard. Campaign managers can review, request revisions, approve, and export in multiple formats. A single brief can generate multiple variants (different lengths, tones, CTAs) in one pipeline run.

Key Features

What Was Built

01

Brief Ingestion

structured intake form for product details, target audience, tone, duration, brand guidelines, and reference material. Claude generates a creative brief expansion with script and storyboard.

02

Script & Storyboard Generation

Claude produces scene-by-scene breakdown with visual direction, dialogue/voiceover text, on-screen text, and timing. Supports revision cycles before production.

03

Video Generation

Runway ML API for AI video generation per scene. Style transfer from reference material ensures brand consistency. Parallel generation of multiple scenes.

04

Voiceover Synthesis

ElevenLabs Professional voices with multilingual support. Automatic timing alignment with video segments. Multiple voice options per brief.

05

Composition Engine

FFmpeg pipeline for final assembly: video segments + voiceover + background music + motion graphics + brand overlays + lower thirds + end cards. Renders multiple formats (16:9, 9:16, 1:1).

06

Review Dashboard

Next.js app for campaign managers to review generated ads, provide scene-level feedback, request revisions, approve finals, and export in multiple formats and resolutions.

Architecture

How It's Built

01

n8n orchestration for multi-step pipeline with error handling and retries

02

Parallel scene generation for faster throughput

03

S3 asset storage with CloudFront CDN for review delivery

04

FFmpeg with custom filter graphs for professional composition

05

Webhook-based status updates to review dashboard

06

Queue-based architecture — briefs processed asynchronously with progress tracking

07

Multi-format rendering: landscape (16:9), portrait (9:16), square (1:1)

08

Version control for revisions — full history of generated variants

Tech Stack

Technical Stack

Layer
Technology
Orchestration
n8n (self-hosted on Railway)
AI / Script
Claude API — script generation, creative direction
Video Generation
Runway ML API (Gen-3 Alpha)
Voiceover
ElevenLabs Professional, multilingual
Composition
FFmpeg with custom filter graphs
Frontend
Next.js 15, React 19, TypeScript
Storage
AWS S3 + CloudFront CDN
Database
Supabase (PostgreSQL) — campaigns, briefs, assets
Queue
Redis + BullMQ for async job processing
Deployment
Vercel (dashboard), Railway (n8n + workers)
Outcomes

Results & Impact

01

Brief-to-ad pipeline runs in under 15 minutes for a 30-second spot

3-5

Multi-variant generation produces 3-5 ad variations per brief automatically

03

Multi-format rendering serves all major platforms (YouTube, Instagram, TikTok)

04

Review dashboard reduces approval cycle from days to hours

Tags
n8nRunway MLClaude APIElevenLabsFFmpegNext.js 15S3