Automation library · Content

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.

LargeCalls a model: Gemini

23 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 2Logic 10Service 10

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

  1. 1Schedule (Daily at 1 AM)Schedule triggerStarts it
  2. 2Gemini Language ModelLm Chat Google GeminiModel
  3. 3Initialize Workflow StateCodeLogic
  4. 4Generate Cinematic Script with AIAgentModel
  5. 5Check Retry LimitIfLogic
  6. 6Submit to fal.aiHttp RequestService
  7. 7Send Stop MessageTelegramService
  8. 8Fetch Historical EventsHttp RequestService
  9. 9Check Video Generation StatusHttp RequestService
  10. 10Select Random Historical EventCodeLogic
  11. 11Is Generation Complete?IfLogic
  12. 12Get Generated VideoHttp RequestService
  13. 13Wait 30 Seconds Before RetryWaitLogic
  14. 14Extract Video MetadataCodeLogic
  15. 15Download Video FileHttp RequestService
  16. 16Prepare Approval MessageCodeLogic
  17. 17Send Video for ApprovalTelegramService
  18. 18Wait for User ApprovalTelegramService
  19. 19Check User ApprovalIfLogic
  20. 20Upload to YouTubeYou TubeService
  21. 21Increment Retry CounterCodeLogic
  22. 22Upload Confirmation MessageCodeLogic
  23. 23Send Upload ConfirmationTelegramService

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.