It transforms a single text prompt into a fully scripted, visually rich video with AI-generated images and voiceovers, then distributes it across multiple social media platforms.
1. AI Script Generation: The workflow starts with a single command. A powerful Google Gemini AI model, acting as a "Content Brain," generates a complete, viral video script with a title, description, and multiple scenes.
2. Content Management in Airtable: The entire script is broken down and saved systematically into an Airtable base, which acts as the central Content Management System (CMS) for the video production pipeline.
3. AI Image Generation: The workflow loops through each scene in Airtable. It uses an AI agent to enhance the image prompts and sends them to an image generation API (like Pollinations.ai) to create a unique, high-quality image for each scene. These images are then automatically uploaded back into Airtable.
4. Automated Video Rendering: Once all images are ready, the workflow gathers the script text and the corresponding image URLs from Airtable and sends them to Creatomate. Creatomate uses a pre-defined template to assemble the final video, complete with AI-generated voiceovers for each scene.
5. Multi-Platform Publishing: After a brief wait for the video to render, the workflow retrieves the final video file and automatically publishes it across your connected social media channels, including YouTube and Instagram.
Before you start, please ensure you have the following accounts and assets ready:
1. n8n Instance & Required Nodes:
2. AI & Video Accounts:
3. Content & Social Media Accounts:
1.▶️ Trigger (Manual/Auto)
- Start workflow manually or via schedule.
2.🧠 Content Brain (Gemini + LangChain)
- Role-trained viral strategist prompt.
- Generates 6 scene scripts with:
- Hook → Retention → Value → CTA.
- Follows viral content rules (engagement triggers, curiosity gaps, shareable moments).
3.📑 Structured Output Parser
- Enforces JSON schema:
- video_id
- video_title
- description
- scenes[]
→ scene_number
, text
, image_prompt
4.📄 Airtable – Store Scenes
- Each scene stored with:
- Video ID, Title, Description
- Scene Number & Text
- Image Prompt & Generated Image link
5.🤖 AI Agent – Image Prompt Creator
- Transforms scene text →optimized image prompts using structured rules.
6.🎨 Pollination AI – Image Generation
- Generates vertical 9:16 visuals with parameters:
- Model: flux
- Resolution: 1080x1920
- Steps: 12
- Guidance Scale: 3.5
- Safety Checker: Enabled
- Options: seed=42
, nologo=true
7.📂 File Handling & Conversion
- Assigns filenames automatically (e.g., images_001.png
).
- Converts binary image → base64 for Airtable storage.
8.📤 Airtable Upload – Store Images
- Attaches generated visuals directly into Generated Image field.
9.⚡ Switch & Error Handling
- Branches for:
- ✅ Success → continue
- ❌ Failed → stop with error message
- ⏳ Processing → wait/retry
10.Social Media Upload
- In YouTube via YouTube API from official documentation
- In Instagram Via Upload Post API
1. AI Configuration:
2. Airtable Setup (Crucial):
3. Video Rendering Setup (Creatomate):
4. Social Media Connections:
5. Execute the Workflow:
For Custom Worflow Automation
Click here- Get Started