Skip to main content

Ads Factory: Generate Unlimited Length UGC AI Video Pipeline

Workflow preview

Workflow preview
100%
Ads Factory: Generate Unlimited Length UGC AI Video Pipeline preview
Open on n8n.io

1. Workflow Overview

UGC Ads Factory — Automated AI Video Pipeline This n8n workflow turns a script and character/setting description from Google Sheets into a complete stitched UGC style video ad, fully automated from...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.lmchatopenrouter, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stopanderror

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ghufran Barcha.

Original n8n.io source

1.1 Workflow description

Title
Ads Factory: Generate Unlimited Length UGC AI Video Pipeline
Workflow name
Ads Factory: Generate Unlimited Length UGC AI Video Pipeline

UGC Ads Factory — Automated AI Video Pipeline

This n8n workflow turns a script and character/setting description from Google Sheets into a complete stitched UGC-style video ad, fully automated from intake to final delivery.


Overview

The workflow runs a full production pipeline in four stages:

  1. Image Generation An AI agent creates a photorealistic selfie prompt from the character/setting description. The image is generated with Kie (Nano Banana), then uploaded to Google Drive and shared.

  2. Scene Scripting The generated image is analyzed by Claude-4o-mini for visual consistency. Claude Opus then converts the user script into structured 8-second scenes with consistent visuals and environment-aware motion prompts.

  3. Video Clip Generation Each scene is sent to Kie VEO3 for video generation. The workflow polls until each clip is complete, then uploads clips to Google Drive and updates status per scene.

  4. Video Stitching After all scene clips are completed, clips are sorted and merged into one final video using fal.ai FFmpeg. The stitched output is uploaded to Drive, and the final links are written back to Sheets.


Google Sheets Structure

This workflow uses two tabs in one spreadsheet:

  • Videos (campaign-level tracking) Main input/output tab with script, character description, aspect ratio, and global run status (CreateProcessingCompleted / Failed), plus final video links.

  • Video Data (scene-level tracking) One row per scene with scene script JSON, scene number, image URL, clip links, and per-scene status. This tab enables robust scene retries and progress visibility.


Triggers

  • Every 30 minutes: processes new rows in Videos where LAUNCH CREATION = Create
  • Every 15 minutes: reprocesses rows in Video Data where LAUNCH = Redo
  • Execute Workflow Trigger: allows orchestration from another workflow

Error Handling

  • API nodes retry on failure with a 5-second delay
  • Failed image or clip generations are written to Sheets with error details
  • Individual failed scenes can be retried by setting LAUNCH = Redo in Video Data
  • Final stitching runs only after verifying all required scenes are completed

External Services

  • Kie API — image generation (Nano Banana) and video generation (VEO3)
  • OpenRouter (Claude Opus) — prompt engineering and scene script generation
  • OpenAI (Claude-4o-mini) — image analysis for visual continuity
  • fal.ai — FFmpeg-based clip stitching
  • Google Drive — asset storage and share links
  • Google Sheets — input/output control plane and status tracking

Usage

  1. Add a row in Videos with script, character/setting description, and aspect ratio.
  2. Set LAUNCH CREATION to Create.
  3. Wait for the scheduled run (or trigger from another workflow).
  4. Track scene progress in Video Data.
  5. Retrieve final video links in Videos once status is Completed.

To retry failed scenes, set scene status to Redo in Video Data.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get Video Ideas

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 2 - HTTP Request12

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 3 - HTTP Request13

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 4 - Wait6

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 5 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Video Status Check

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 7 - Prompt Agent LLM

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 8 - Prompt Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 9 - Image Gen Error

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 10 - Script Agent LLM

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 11 - Scene Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 12 - Nano Banana Prompt Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 13 - Generate UGC Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 14 - Image Gen Response Check

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 15 - Workflow Configuration3

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Split Scenes

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 17 - Analyze UGC Image3

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 18 - Generate Scene Scripts3

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 19 - Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - videoInput

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - HTTP Request1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 22 - Wait 10s

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 23 - Image Poll Error

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 24 - Poll Image Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Showing the first 24 of 61 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Ads Factory: Generate Unlimited Length UGC AI Video Pipeline
Complexity advanced
Nodes 61
Categories Content Creation, Multimodal AI
Author Ghufran Barcha
Published 25 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14316/14316.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Ads Factory: Generate Unlimited Length UGC AI Video Pipeline do?

UGC Ads Factory — Automated AI Video Pipeline This n8n workflow turns a script and character/setting description from Google Sheets into a complete stitched UGC style video ad, fully automated from...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.