# Generate UGC promo videos with OpenAI and Sora 2: n8n workflow

> Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/generate-ugc-promo-videos-with-openai-and-sora-2 (Millionrounds; every figure on the page links to its filing or article)

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

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-ugc-promo-videos-with-openai-and-sora-2)

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

**1** Branch: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 3 Logic 9 Service 15

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Workflow Configuration** Set *Logic*
- 3 **Extract Photo and text** Set *Logic*
- 4 **Get Photo File from Telegram** Telegram *Service*
- 5 **Analyze Product Image (Vision API)** Open Ai *Model*
- 6 **Build Public Image URL** Http Request *Service*
- 7 **Generate UGC Script (OpenAI)** Open Ai *Model*
- 8 **Merge** Merge *Logic*
- 9 **Parse Script Response** Code *Logic*
- 10 **Submit to Sora 2 API** Http Request *Service*
- 11 **Extract Video Job ID** Code *Logic*
- 12 **Wait 15 Seconds** Wait *Logic*
- 13 **Check Video Status** Http Request *Service*
- 14 **Parse Status Response** Code *Logic*
- 15 **Check If Complete** If *Logic*
- 16 **Download Video File** Http Request *Service*
- 17 **Send Error Message** Telegram *Service*
- 18 **Send Video to Telegram** Telegram *Service*
- 19 **Generate Caption with GPT-4** Open Ai *Model*
- 20 **Upload Video to BLOTATO** Blotato *Service*
- 21 **Tiktok** Blotato *Service*
- 22 **Linkedin** Blotato *Service*
- 23 **Facebook** Blotato *Service*
- 24 **Instagram** Blotato *Service*
- 25 **Twitter (X)** Blotato *Service*
- 26 **Youtube** Blotato *Service*
- 27 **Merge1** Merge *Logic*
- 28 **Send a text message** Telegram *Service*

## 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.

## 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%2Fgenerate-ugc-promo-videos-with-openai-and-sora-2)
- **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.

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

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**Share Shopify New Products Across All Social Media Platforms** 29 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/share-shopify-new-products-across-all-social-media-platforms)
- [**Validate wholesale order emails against a Google Sheets price** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/validate-wholesale-order-emails-against-a-google-sheets-pric)
- [**Run a WooCommerce store assistant with Telegram and OpenRouter** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/run-a-woocommerce-store-assistant-with-telegram-and-openrout)
- [**Create WooCommerce products and WordPress posts** 24 steps · calls a model · Telegram, WooCommerce](https://millionrounds.com/workflow/create-woocommerce-products-and-wordpress-posts)
- [**Manage your WooCommerce store with OpenAI** 32 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/manage-your-woocommerce-store-with-openai)
- [**Process prescription orders and refills with Telegram** 32 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/process-prescription-orders-and-refills-with-telegram)
