Automation library · Scheduling

Personal AI assistant with OpenRouter and Gmail

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

LargeCalls a model: OpenRouterRetrieval

29 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 1Model 10Logic 2Service 16

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2ThinkTool ThinkModel
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Open Ai model 1Lm Chat Open RouterModel
  5. 5Open AI chatLm Chat Open RouterModel
  6. 6Get ConactsGoogle Sheets ToolService
  7. 7Add or Update ContactsGoogle Sheets ToolService
  8. 8Open AI BrainLm Chat Open RouterModel
  9. 9Send EmailGmail ToolService
  10. 10Get EmailsGmail ToolService
  11. 11Email ReplyGmail ToolService
  12. 12Create DraftGmail ToolService
  13. 13Get LabelsGmail ToolService
  14. 14Label EmailsGmail ToolService
  15. 15OpenRouter Chat ModelLm Chat Open RouterModel
  16. 16Create Event with AttendeeGoogle Calendar ToolService
  17. 17Create an EventGoogle Calendar ToolService
  18. 18Get EventsGoogle Calendar ToolService
  19. 19Delete EventGoogle Calendar ToolService
  20. 20Update EventGoogle Calendar ToolService
  21. 21Text/AudioSwitchLogic
  22. 22AI AgentAgentModel
  23. 23Conatct AgentAgent ToolModel
  24. 24Email AgentAgent ToolModel
  25. 25Calender AgentAgent ToolModel
  26. 26Get a fileTelegramService
  27. 27Edit FieldsSetLogic
  28. 28Send a text messageTelegramService
  29. 29Transcribe audio or videoEleven LabsService

How it's built

Starts on
An incoming Telegram message
Steps
29, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Calendar, Google Sheets, Telegram
Model
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, Google Sheets and Telegram accounts, and a key for 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 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 29 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 29 steps before you point it at anything that matters.