# Create daily historical AI videos with Gemini and Telegram: n8n workflow

> Started by a clock, and works across Telegram and YouTube. It hands the judgement calls to Gemini.

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

# Create daily historical AI videos with Gemini and Telegram

Started by a clock, and works across Telegram and YouTube. It hands the judgement calls to Gemini. 23 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

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

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

**3** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 10 Service 10

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

- 1 **Schedule (Daily at 1 AM)** Schedule trigger *Starts it*
- 2 **Gemini Language Model** Lm Chat Google Gemini *Model*
- 3 **Initialize Workflow State** Code *Logic*
- 4 **Generate Cinematic Script with AI** Agent *Model*
- 5 **Check Retry Limit** If *Logic*
- 6 **Submit to fal.ai** Http Request *Service*
- 7 **Send Stop Message** Telegram *Service*
- 8 **Fetch Historical Events** Http Request *Service*
- 9 **Check Video Generation Status** Http Request *Service*
- 10 **Select Random Historical Event** Code *Logic*
- 11 **Is Generation Complete?** If *Logic*
- 12 **Get Generated Video** Http Request *Service*
- 13 **Wait 30 Seconds Before Retry** Wait *Logic*
- 14 **Extract Video Metadata** Code *Logic*
- 15 **Download Video File** Http Request *Service*
- 16 **Prepare Approval Message** Code *Logic*
- 17 **Send Video for Approval** Telegram *Service*
- 18 **Wait for User Approval** Telegram *Service*
- 19 **Check User Approval** If *Logic*
- 20 **Upload to YouTube** You Tube *Service*
- 21 **Increment Retry Counter** Code *Logic*
- 22 **Upload Confirmation Message** Code *Logic*
- 23 **Send Upload Confirmation** Telegram *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 23, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram, YouTube
- **Model:** Gemini

## Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

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

How long does it take to set up?

Take your time. At 23 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 23 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-daily-historical-ai-videos-with-gemini-and-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.

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

## Workflows like it

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

- [**Analyze articles with Telegram and Groq** 23 steps · calls a model · Telegram](https://millionrounds.com/workflow/analyze-articles-with-telegram-and-groq)
- [**Automated POV video creation with YouTube** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automated-pov-video-creation-with-youtube)
- [**End-to-end YouTube video automation with OpenAI** 23 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/end-to-end-youtube-video-automation-with-openai)
- [**Faceless video with OpenAI and Google Drive** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/faceless-video-with-openai-and-google-drive)
- [**Generate UGC videos from product images with Gemini and VEO3** 23 steps · calls a model · Telegram](https://millionrounds.com/workflow/generate-ugc-videos-from-product-images-with-gemini-and-veo3)
- [**Publish Google Drive videos to Instagram, TikTok, and YouTube** 23 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/publish-google-drive-videos-to-instagram-tiktok-and-youtube)
