# AI UGC ad generator - product to viral video pipeline: n8n workflow

> Started by another system calling it, and works across Airtable and Telegram. It hands the judgement calls to Gemini and OpenRouter.

Source: https://millionrounds.com/workflow/ai-ugc-ad-generator-product-to-viral-video-pipeline (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [CRM](https://millionrounds.com/workflows?category=CRM#library)

# AI UGC ad generator - product to viral video pipeline

Started by another system calling it, and works across Airtable and Telegram. It hands the judgement calls to Gemini and OpenRouter. 33 steps, 3 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-ugc-ad-generator-product-to-viral-video-pipeline)

**33 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 7 Logic 12 Service 13

The steps in the order they run, from what starts it.

- 1 **Image Webhook** Webhook *Starts it*
- 2 **AI Brain** Lm Chat Open Router *Model*
- 3 **Get Data** Airtable *Service*
- 4 **Video Prompts** Agent *Model*
- 5 **Scenes** Output Parser Structured *Model*
- 6 **Image Prompt** Agent *Model*
- 7 **Output data** Output Parser Structured *Model*
- 8 **Send photo** Telegram *Service*
- 9 **Split Out** Split Out *Logic*
- 10 **Image Details** Set *Logic*
- 11 **Get a file** Telegram *Service*
- 12 **Video Details** Set *Logic*
- 13 **Generate Image** Http Request *Service*
- 14 **Analyze image** Google Gemini *Model*
- 15 **Create Videos** Http Request *Service*
- 16 **Wait** Wait *Logic*
- 17 **Demo prompt** Google Gemini *Model*
- 18 **2 mins** Wait *Logic*
- 19 **Get Image** Http Request *Service*
- 20 **Check Status** Http Request *Service*
- 21 **Success?** Switch *Logic*
- 22 **status** Switch *Logic*
- 23 **Video Processing** Airtable *Service*
- 24 **Get Video** Http Request *Service*
- 25 **No Operation, do nothing** No Op *Logic*
- 26 **Aggregate** Aggregate *Logic*
- 27 **Merge** Http Request *Service*
- 28 **25** Wait *Logic*
- 29 **Fetch Status** Http Request *Service*
- 30 **Done?** Switch *Logic*
- 31 **Get results** Http Request *Service*
- 32 **Map details** Set *Logic*
- 33 **Done** Airtable *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 33, with 3 branches, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable, Telegram
- **Model:** Gemini, OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Airtable and Telegram accounts, and a key for Gemini and OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls Gemini and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 33 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 33 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-ugc-ad-generator-product-to-viral-video-pipeline)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also crm, with the same services where possible, closest in size first.

- [**AI-powered sales assistant with Airtable CRM and Gmail** 34 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/ai-powered-sales-assistant-with-airtable-crm-and-gmail)
- [**Sync HubSpot with Outlook** 35 steps · Airtable, Google Sheets](https://millionrounds.com/workflow/sync-hubspot-with-outlook)
- [**Telegram AI bot-to-human handoff for sales calls with OpenAI** 30 steps · calls a model · Redis, Telegram](https://millionrounds.com/workflow/telegram-ai-bot-to-human-handoff-for-sales-calls-with-openai)
- [**Create weekly sales summaries and Airtable reports with Gmail** 30 steps · Airtable, Discord](https://millionrounds.com/workflow/create-weekly-sales-summaries-and-airtable-reports-with-gmai)
- [**Creator sponsorship and brand deals CRM with OpenAI and Gmail** 29 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/creator-sponsorship-and-brand-deals-crm-with-openai-and-gmai)
- [**Automate outbound AI sales calls with Airtable and Vapi AI** 26 steps · Airtable](https://millionrounds.com/workflow/automate-outbound-ai-sales-calls-with-airtable-and-vapi-ai)
