Automation library · Content

Summarize YouTube videos with Gemini and Telegram

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to Gemini. 20 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

20 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Model 2Logic 9Service 7

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

  1. 1On New MessageTelegram triggerStarts it
  2. 2Gemini FlashLm Chat Google GeminiModel
  3. 3On ErrorError triggerStarts it
  4. 4Filter: YouTube URL?IfLogic
  5. 5Generate TLDRChain LlmModel
  6. 6Format Error LogCodeLogic
  7. 7Send "Processing..."TelegramService
  8. 8Send "Invalid URL"TelegramService
  9. 9Merge: Data + SummaryMergeLogic
  10. 10Alert AdminTelegramService
  11. 11Set: Video ID & ConfigSetLogic
  12. 12Send Video InfoTelegramService
  13. 13Split & Format HTMLCodeLogic
  14. 14Decodo Youtube Transcript ScrapperHttp RequestService
  15. 15Decodo Youtube Metadata ScrapperHttp RequestService
  16. 16Loop: Message BatchesSplit In BatchesLogic
  17. 17Extract TranscriptCodeLogic
  18. 18Parse MetadataCodeLogic
  19. 19Send Summary PartTelegramService
  20. 20Wait: Rate LimiterWaitLogic

How it's built

Starts on
An incoming Telegram message
Steps
20, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Telegram
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for Gemini. 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

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 20 steps before you point it at anything that matters.