I Built an AI Video Pipeline: Script → Voiceover → Video in One Automated n8n Workflow
AI video creation is exploding. But most people are stuck doing it piecemeal — writing scripts by hand, recording voiceovers, then manually editing video clips. That’s hours of work per video.
I wanted a better way. So I built AI Shorts Factory — a fully automated three-stage pipeline that takes a topic, generates a script, turns it into a neural voiceover, and assembles a complete video with background images and subtitles — all inside a single n8n workflow.
The result? A 60-second short video ready to post in under 5 minutes. And it costs me $20 one-time — not $200/month like those SaaS tools.
Here’s exactly how the pipeline works, node by node.
Stage 1: AI Script Generation
The pipeline starts with a simple HTTP trigger node. I send it a topic — say, "How AI is changing marketing" — and the workflow immediately kicks off.
The GPT node (OpenAI’s Chat Completion API) receives a system prompt that’s been tuned for short-form video. It generates a 60-second script with hooks, key points, and a call to action. I’ve tested dozens of prompts, and this one consistently produces engaging, conversational scripts that keep viewers watching.
The output is clean JSON: script_text, duration_seconds, and key_topics. No fluff, no extra formatting.
Stage 2: Neural Voiceover Generation
Next, the script text flows into the ElevenLabs TTS node. I’ve wired it to use their most natural-sounding voice model — the one that actually sounds like a human, not a robot.
The node accepts the script text, selects the voice ID (I pre-configured five options), and returns an MP3 file. The audio quality is so good that viewers often comment asking if it’s a real person speaking.
I also add a duration check node here. If the voiceover exceeds 65 seconds, the workflow loops back to the GPT node to trim the script. This ensures every video hits that perfect 60-second sweet spot for Shorts and Reels.
Stage 3: Automated Video Assembly with FFmpeg
This is where the magic happens. The FFmpeg node is the backbone of the assembly.
First, the Unsplash node fetches 4-6 royalty-free background images based on keywords extracted from the script. I set a 3-second transition time per image.
Then the FFmpeg exec node runs a shell command that:
- Stitches images with crossfade transitions
- Overlays the voiceover audio track
- Adds a background music track (I use royalty-free tracks from my library)
- Burns in auto-generated subtitles using a custom font
- Renders the final 1080×1920 vertical video at 30fps
The entire process takes under 30 seconds on a modest VPS. The output is a polished, ready-to-upload MP4 file.
The n8n Workflow Advantage
What makes this pipeline truly special is n8n. It’s open-source, self-hosted, and Docker-ready. I run it on a $5/month VPS with no vendor lock-in.
The workflow is modular. I can:
- Swap in a different TTS engine (Google Cloud, Amazon Polly)
- Change the image source (Pexels, Pixabay)
- Add social media posting nodes (YouTube, TikTok, Instagram)
And since it’s a one-time purchase, I pay $20 and own it forever. Compare that to SaaS tools charging $50-200/month. Over a year, that’s $600 to $2,400 saved. And I get full source access — I can modify, extend, and customize every node.
Real Results: From Idea to Published Video in 5 Minutes
I’ve been running this pipeline for 3 months now. I publish one AI-generated short per day across YouTube Shorts, TikTok, and Instagram Reels.
Here’s the ROI:
- Time saved: 1 hour per video → 5 minutes = 92% reduction
- Cost: $20 one-time vs $200/month SaaS = $2,380 saved in year one
- Output: 90+ videos published with zero manual editing
The setup takes 5 minutes: import the JSON workflow, add your API keys for OpenAI, ElevenLabs, and Unsplash, then activate. That’s it.
Why This Matters for Creators
The AI content revolution is happening now. Creators who automate their production pipeline are pulling ahead while everyone else is still struggling with manual editing.
With AI Shorts Factory, you get a proven, production-ready system. No subscription, no hidden costs. Just a clean, modular n8n workflow that turns a topic into a finished video.
I built this because I was tired of paying monthly fees for tools that did half the job. Now I own the pipeline. And you can too.
Get AI Shorts Factory on Gumroad — $20 one-time, lifetime access + free updates
No recurring charges. Full source access. 5-minute setup. Start automating your AI shorts today.
🚀 Get AI Shorts Factory Now: https://8622430312019.gumroad.com/l/gujqfy — One-time $20. Lifetime access. Free updates.
Ali yilmaz dok
CEO of mindcorplab.com
Whatsapp:+905522720284
Telegram:@slylie
Best regards
Top comments (0)