Automation library · Scheduling

Turn Telegram voice messages into Gmail emails

Started by an incoming Telegram message, and works across Gmail, Google Calendar and Telegram. It hands the judgement calls to a local model. 32 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: a local model

32 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 10Logic 11Service 10

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Ollama Chat ModelLm Chat OllamaModel
  3. 3Ollama ModelLm OllamaModel
  4. 4Ollama Chat Model1Lm Chat OllamaModel
  5. 5Ollama Chat Model2Lm Chat OllamaModel
  6. 6Ollama Chat Model3Lm Chat OllamaModel
  7. 7Get a fileTelegramService
  8. 8AI AgentAgentModel
  9. 9Text ClassifierText ClassifierModel
  10. 10AI Agent1AgentModel
  11. 11AI Agent2AgentModel
  12. 12AI Agent3AgentModel
  13. 13Wisper APIHttp RequestService
  14. 14Code in JavaScript1CodeLogic
  15. 15Send a text messageTelegramService
  16. 16Send message and wait for response1TelegramService
  17. 17Code in JavaScript3CodeLogic
  18. 18Send message and wait for responseTelegramService
  19. 19No Operation, do nothingNo OpLogic
  20. 20If1IfLogic
  21. 21Send message and wait for response2TelegramService
  22. 22IfIfLogic
  23. 23Code in JavaScriptCodeLogic
  24. 24No Operation, do nothing3No OpLogic
  25. 25If3IfLogic
  26. 26Send a messageGmailService
  27. 27Create an eventGoogle CalendarService
  28. 28No Operation, do nothing5No OpLogic
  29. 29Send a text message1TelegramService
  30. 30Send a text message2TelegramService
  31. 31No Operation, do nothing2No OpLogic
  32. 32No Operation, do nothing4No OpLogic

How it's built

Starts on
An incoming Telegram message
Steps
32, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Calendar, Telegram
Model
a local model

Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 32 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 32 steps before you point it at anything that matters.