Automation library · Scheduling

Manage Google Calendar and Gmail from Telegram with Claude

Started by an incoming Telegram message, and works across Gmail, Google Calendar and Telegram. It puts OpenAI and OpenRouter behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 27 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI, OpenRouterRetrieval

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

The flow

Starts it 1Model 5Logic 6Service 15

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

  1. 1OpenRouter Chat Model1Lm Chat Open RouterModel
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3createEventGoogle Calendar ToolService
  4. 4GetManyEventsGoogle Calendar ToolService
  5. 5GetEventGoogle Calendar ToolService
  6. 6DeleteEventGoogle Calendar ToolService
  7. 7AvailabilityGoogle Calendar ToolService
  8. 8UpdateEventGoogle Calendar ToolService
  9. 9Telegram TriggerTelegram triggerStarts it
  10. 10sendMessageGmail ToolService
  11. 11getEmailsGmail ToolService
  12. 12getEmailGmail ToolService
  13. 13replyEmailGmail ToolService
  14. 14deleteEmailGmail ToolService
  15. 15MainAgentAgentModel
  16. 16IfIfLogic
  17. 17Send a text messageTelegramService
  18. 18Send a text message1TelegramService
  19. 19SwitchSwitchLogic
  20. 20Get AudioTelegramService
  21. 21Edit FieldsSetLogic
  22. 22Telegram2TelegramService
  23. 23OpenAIOpen AiModel
  24. 24MergeMergeLogic
  25. 25Analyze imageOpen AiModel
  26. 26InputSetLogic
  27. 27fieldsSetLogic

How it's built

Starts on
An incoming Telegram message
Steps
27, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Calendar, Telegram
Model
OpenAI, OpenRouter
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar and Telegram accounts, and a key for OpenAI and OpenRouter. 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 OpenAI and OpenRouter. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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