# Auto-create and publish AI social videos with Telegram: n8n workflow

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

Source: https://millionrounds.com/workflow/auto-create-and-publish-ai-social-videos-with-telegram (Millionrounds; every figure on the page links to its filing or article)

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

# Auto-create and publish AI social videos with Telegram

Started by an incoming Telegram message, and works across Google Sheets and Telegram. It hands the judgement calls to OpenAI. 37 steps, 1 branch, 4 loops 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%2Fauto-create-and-publish-ai-social-videos-with-telegram)

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

**1** Branch: places the flow splits

**4** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 9 Service 24

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

- 1 **Trigger Telegram Prompt or Image** Telegram trigger *Starts it*
- 2 **Split Prompt or Image Input** Code *Logic*
- 3 **Condition Input Type (Image or Text)** If *Logic*
- 4 **Generate Video with blotato** Http Request *Service*
- 5 **Download Image from Telegram** Telegram *Service*
- 6 **Wait for blotato Video Rendering** Wait *Logic*
- 7 **Extract Image File URL** Http Request *Service*
- 8 **Get blotato Video URL** Http Request *Service*
- 9 **Upload Image to Cloudinary** Http Request *Service*
- 10 **Merge Video Data (Image or Prompt)** Set *Logic*
- 11 **Convert Image to Video** Http Request *Service*
- 12 **Generate Music with Piapi** Http Request *Service*
- 13 **Wait for Image-to-Video Rendering** Wait *Logic*
- 14 **Wait for Music Generation** Wait *Logic*
- 15 **Get Image-Based Video URL** Http Request *Service*
- 16 **Get Music File URL** Http Request *Service*
- 17 **Generate Script (GPT-4o-mini)** Open Ai *Model*
- 18 **Split Script** Code *Logic*
- 19 **Merge Video + Music** Http Request *Service*
- 20 **Wait for Fusion Completion** Wait *Logic*
- 21 **Get Final Video URL** Http Request *Service*
- 22 **Generate Social Caption (GPT-4)** Open Ai *Model*
- 23 **Generate SEO Title (GPT-4)** Open Ai *Model*
- 24 **Append Video Data to Google Sheet** Google Sheets *Service*
- 25 **Send Final Video to Telegram** Telegram *Service*
- 26 **Send Caption to Telegram** Telegram *Service*
- 27 **Assign Platform IDs for Blotato** Set *Logic*
- 28 **Upload Video to Blotato** Http Request *Service*
- 29 **Post to Instagram** Http Request *Service*
- 30 **Post to YouTube** Http Request *Service*
- 31 **Post to TikTok** Http Request *Service*
- 32 **Post to Facebook Page** Http Request *Service*
- 33 **Post to Threads** Http Request *Service*
- 34 **Post to Twitter (X)** Http Request *Service*
- 35 **Post to LinkedIn** Http Request *Service*
- 36 **Post to Bluesky** Http Request *Service*
- 37 **Post to Pinterest** Http Request *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 37, with 1 branch, 4 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Telegram accounts, 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 37 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 37 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%2Fauto-create-and-publish-ai-social-videos-with-telegram)
- **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.

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

## Workflows like it

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

- [**Automate RSS to Medium publishing with Groq and Gemini** 37 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/automate-rss-to-medium-publishing-with-groq-and-gemini)
- [**Automated content strategy with Google Trends and News** 37 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automated-content-strategy-with-google-trends-and-news)
- [**Create SEO-optimized WordPress blogs with Perplexity** 37 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/create-seo-optimized-wordpress-blogs-with-perplexity)
- [**WordPress SEO publisher with Anthropic AI and Google Docs** 37 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/wordpress-seo-publisher-with-anthropic-ai-and-google-docs)
- [**AI-powered restaurant newsletter creator with Mailchimp** 38 steps · calls a model · Gmail, Mailchimp](https://millionrounds.com/workflow/ai-powered-restaurant-newsletter-creator-with-mailchimp)
- [**Automate RSS content to blog posts with WordPress and LinkedIn** 36 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-rss-content-to-blog-posts-with-wordpress-and-linked)
