Automation library · CRM

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.

LargeCalls a model: Gemini, OpenRouter

33 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
3Loops or waits
2Services it connects to

The flow

Starts it 1Model 7Logic 12Service 13

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

  1. 1Image WebhookWebhookStarts it
  2. 2AI BrainLm Chat Open RouterModel
  3. 3Get DataAirtableService
  4. 4Video PromptsAgentModel
  5. 5ScenesOutput Parser StructuredModel
  6. 6Image PromptAgentModel
  7. 7Output dataOutput Parser StructuredModel
  8. 8Send photoTelegramService
  9. 9Split OutSplit OutLogic
  10. 10Image DetailsSetLogic
  11. 11Get a fileTelegramService
  12. 12Video DetailsSetLogic
  13. 13Generate ImageHttp RequestService
  14. 14Analyze imageGoogle GeminiModel
  15. 15Create VideosHttp RequestService
  16. 16WaitWaitLogic
  17. 17Demo promptGoogle GeminiModel
  18. 182 minsWaitLogic
  19. 19Get ImageHttp RequestService
  20. 20Check StatusHttp RequestService
  21. 21Success?SwitchLogic
  22. 22statusSwitchLogic
  23. 23Video ProcessingAirtableService
  24. 24Get VideoHttp RequestService
  25. 25No Operation, do nothingNo OpLogic
  26. 26AggregateAggregateLogic
  27. 27MergeHttp RequestService
  28. 2825WaitLogic
  29. 29Fetch StatusHttp RequestService
  30. 30Done?SwitchLogic
  31. 31Get resultsHttp RequestService
  32. 32Map detailsSetLogic
  33. 33DoneAirtableService

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.