# Create & share AI videos with Telegram and Gemini: n8n workflow

> Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram.

Source: https://millionrounds.com/workflow/create-and-share-ai-videos-with-telegram-and-gemini (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)

# Create & share AI videos with Telegram and Gemini

Started by an incoming Telegram message, and works across Google Drive, Google Sheets and Telegram. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 41 steps, 8 branches, 6 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcreate-and-share-ai-videos-with-telegram-and-gemini)

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

**8** Branches: places the flow splits

**6** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 5 Logic 16 Service 19

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Listen for incoming events** Telegram trigger *Starts it*
- 3 **Window Buffer Memory** Memory Buffer Window *Model*
- 4 **AI Agent** Agent *Model*
- 5 **Voice or Text** Set *Logic*
- 6 **Approved from user?** If *Logic*
- 7 **A Voice?** If *Logic*
- 8 **Parse AI Output** Code *Logic*
- 9 **Send questions or proposal to user** Telegram *Service*
- 10 **Get Voice File** Telegram *Service*
- 11 **Inform user about processing** Telegram *Service*
- 12 **Speech to Text** Open Ai *Model*
- 13 **Save Prompt & Post-Text** Google Sheets *Service*
- 14 **Generate a video** Google Gemini *Model*
- 15 **Upload video** Google Drive *Service*
- 16 **Download Video from Drive1** Google Drive *Service*
- 17 **Upload media1** Blotato *Service*
- 18 **Create post1** Blotato *Service*
- 19 **Create TikTok post** Blotato *Service*
- 20 **Create Facebook post** Blotato *Service*
- 21 **Wait1** Wait *Logic*
- 22 **Wait** Wait *Logic*
- 23 **Wait2** Wait *Logic*
- 24 **Get post1** Blotato *Service*
- 25 **Check Post Status** Blotato *Service*
- 26 **Get Facebook post** Blotato *Service*
- 27 **Published to Instagram?** If *Logic*
- 28 **Published to TikTok?** If *Logic*
- 29 **Published to Facebook?** If *Logic*
- 30 **Confirm publishing to Instagram** Telegram *Service*
- 31 **In Progress?1** If *Logic*
- 32 **Confirm publishing to Tiktok** Telegram *Service*
- 33 **In Progress?** If *Logic*
- 34 **Confirm publishing to Facebook** Telegram *Service*
- 35 **In Progress?2** If *Logic*
- 36 **Give Blotat more time** Wait *Logic*
- 37 **Send Instagram Error Message** Telegram *Service*
- 38 **Give Blotat other 5s:)** Wait *Logic*
- 39 **Send TikTok Error Message** Telegram *Service*
- 40 **Give Blotat other 5s:)2** Wait *Logic*
- 41 **Send Facebook Error Message** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 41, with 8 branches, 6 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets, Telegram
- **Model:** Gemini, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Google Drive, Google Sheets and Telegram accounts, and a key for Gemini and 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 Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 41 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 41 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%2Fcreate-and-share-ai-videos-with-telegram-and-gemini)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[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.

- [**Create and publish UGC social videos from Telegram with OpenAI** 41 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-and-publish-ugc-social-videos-from-telegram-with-open)
- [**Generate monthly SEO analytics reports with Search Console** 41 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/generate-monthly-seo-analytics-reports-with-search-console)
- [**Host a Telegram AI bot with a local model and Redis** 41 steps · calls a model · Redis, Telegram](https://millionrounds.com/workflow/host-a-telegram-ai-bot-with-a-local-model-and-redis)
- [**Verify Telegram channel subscriptions with Postgres** 41 steps · Google Drive, Postgres](https://millionrounds.com/workflow/verify-telegram-channel-subscriptions-with-postgres)
- [**Automatic Instagram content creation with OpenAI and Telegram** 42 steps · calls a model · Airtable, Telegram](https://millionrounds.com/workflow/automatic-instagram-content-creation-with-openai-and-telegra)
- [**Convert Reddit business pain points to LinkedIn posts** 40 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/convert-reddit-business-pain-points-to-linkedin-posts)
