Automation library · Documents and files

Transcribing Telegram voice messages with Whisper and Gemini

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to Gemini and OpenAI. 20 steps, 4 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini, OpenAI

20 stepsMedium: a working afternoon
4Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 2Logic 9Service 8

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

  1. 1Telegram Trigger1Telegram triggerStarts it
  2. 2Access CheckIfLogic
  3. 3Determining The Type Of DocumentSwitchLogic
  4. 4MSG - Access denied!TelegramService
  5. 5Assigning file_id For VoiceSetLogic
  6. 6Assigning file_id For AudioSetLogic
  7. 7MSG - No file!TelegramService
  8. 8Transcription Decision NodeIfLogic
  9. 9Get File GPTTelegramService
  10. 10MSG - File not recognizedTelegramService
  11. 11Transcription by OpenAiOpen AiModel
  12. 12MSG - Starting transcription. Please wait.TelegramService
  13. 13Assignment of variable TEXTSetLogic
  14. 14Get File GeminiTelegramService
  15. 15Checking the length of a messageIfLogic
  16. 16Transcription by GeminiGoogle GeminiModel
  17. 17MSG - OutputTelegramService
  18. 18Text DivisionCodeLogic
  19. 19Assignment of variable TEXT1SetLogic
  20. 20MSG - Output with chunkingTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
20, with 4 branches
Size
Medium: a working afternoon
Connects to
Telegram
Model
Gemini, OpenAI

Questions

What does it need to run?

An n8n account, plus your own Telegram account, 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. 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.