Automation library · Scheduling

Telegram AI Personal Assistant with Gemini and Tools

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

LargeCalls a model: GeminiRetrieval

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

The flow

Starts it 1Model 8Service 13

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

  1. 1SerpAPITool Serp ApiModel
  2. 2Google SheetsGoogle Sheets ToolService
  3. 3Telegram TriggerTelegram triggerStarts it
  4. 4Simple MemoryMemory Buffer WindowModel
  5. 5ThinkTool ThinkModel
  6. 6Google Gemini Chat ModelLm Chat Google GeminiModel
  7. 7Get all eventGoogle Calendar ToolService
  8. 8Update eventGoogle Calendar ToolService
  9. 9Create Event with attendeeGoogle Calendar ToolService
  10. 10Create Event without attendeeGoogle Calendar ToolService
  11. 11Send EmailGmail ToolService
  12. 12Create DraftGmail ToolService
  13. 13Email ReplyGmail ToolService
  14. 14Get LabelsGmail ToolService
  15. 15Label EmailsGmail ToolService
  16. 16Mark UnreadGmail ToolService
  17. 17Window Buffer Memory2Memory Buffer WindowModel
  18. 18Google Gemini Chat Model4Lm Chat Google GeminiModel
  19. 19Gmail1Gmail ToolService
  20. 20Personal AI AgentAgentModel
  21. 21email_agentAgent ToolModel
  22. 22TelegramTelegramService

How it's built

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