Automation library · Scheduling

Stacey – your Telegram AI assistant with Gemini and Google

Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets and Telegram. It puts Gemini and OpenAI 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: Gemini, OpenAIRetrieval

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 2Model 8Logic 3Service 16

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

  1. 1Content Creator AgentTool WorkflowModel
  2. 2TavilyTool Http RequestModel
  3. 3Telegram Trigger1Telegram triggerStarts it
  4. 4MCP ClientMcp Client ToolModel
  5. 5Create Event with AttendeeGoogle Calendar ToolService
  6. 6Create EventGoogle Calendar ToolService
  7. 7Get EventsGoogle Calendar ToolService
  8. 8Delete EventGoogle Calendar ToolService
  9. 9Update EventGoogle Calendar ToolService
  10. 10Send EmailGmail ToolService
  11. 11Get EmailsGmail ToolService
  12. 12Create DraftGmail ToolService
  13. 13Email ReplyGmail ToolService
  14. 14Get LabelsGmail ToolService
  15. 15Label EmailsGmail ToolService
  16. 16Mark UnreadGmail ToolService
  17. 17update contact dataGoogle Sheets ToolService
  18. 18search contact dataGoogle Sheets ToolService
  19. 19Gemini modelLm Chat Google GeminiModel
  20. 20User ContextMemory Buffer WindowModel
  21. 21Calculate MathsTool CalculatorModel
  22. 22MCP Server TriggerMcp triggerStarts it
  23. 23Switch inputSwitchLogic
  24. 24AI AgentAgentModel
  25. 25Download FileTelegramService
  26. 26Set 'Text'SetLogic
  27. 27response parserCodeLogic
  28. 28TranscribeOpen AiModel
  29. 29Response1TelegramService

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
Gemini, OpenAI
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 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. 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.