Automation library · E-commerce

Generate UGC promo videos with OpenAI and Sora 2

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI. 28 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

28 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 3Logic 9Service 15

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Workflow ConfigurationSetLogic
  3. 3Extract Photo and textSetLogic
  4. 4Get Photo File from TelegramTelegramService
  5. 5Analyze Product Image (Vision API)Open AiModel
  6. 6Build Public Image URLHttp RequestService
  7. 7Generate UGC Script (OpenAI)Open AiModel
  8. 8MergeMergeLogic
  9. 9Parse Script ResponseCodeLogic
  10. 10Submit to Sora 2 APIHttp RequestService
  11. 11Extract Video Job IDCodeLogic
  12. 12Wait 15 SecondsWaitLogic
  13. 13Check Video StatusHttp RequestService
  14. 14Parse Status ResponseCodeLogic
  15. 15Check If CompleteIfLogic
  16. 16Download Video FileHttp RequestService
  17. 17Send Error MessageTelegramService
  18. 18Send Video to TelegramTelegramService
  19. 19Generate Caption with GPT-4Open AiModel
  20. 20Upload Video to BLOTATOBlotatoService
  21. 21TiktokBlotatoService
  22. 22LinkedinBlotatoService
  23. 23FacebookBlotatoService
  24. 24InstagramBlotatoService
  25. 25Twitter (X)BlotatoService
  26. 26YoutubeBlotatoService
  27. 27Merge1MergeLogic
  28. 28Send a text messageTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
28, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 28 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 28 steps before you point it at anything that matters.