Automation library · Scheduling

Ultimate AI assistant: Automate email, calendar, webSearch

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

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 1Model 9Logic 4Service 17

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Embeddings OpenAIEmbeddings Open AiModel
  3. 3Window Buffer MemoryMemory Buffer WindowModel
  4. 4ThinkTool ThinkModel
  5. 5Send EmailGmail ToolService
  6. 6Get EmailsGmail ToolService
  7. 7Create DraftGmail ToolService
  8. 8Email ReplyGmail ToolService
  9. 9Get LabelsGmail ToolService
  10. 10Label EmailsGmail ToolService
  11. 11Create Event with AttendeeGoogle Calendar ToolService
  12. 12Create EventGoogle Calendar ToolService
  13. 13Get EventsGoogle Calendar ToolService
  14. 14Delete EventGoogle Calendar ToolService
  15. 15Update EventGoogle Calendar ToolService
  16. 16Get ContactGoogle Sheets ToolService
  17. 17Add ContactGoogle Sheets ToolService
  18. 18Tavily WebSearchTool Http RequestModel
  19. 19Post to XTwitter ToolService
  20. 20Take notes in NotionNotion ToolService
  21. 21GPTLm Chat Open AiModel
  22. 22SwitchSwitchLogic
  23. 23Pinecone Vector StoreVector Store PineconeModel
  24. 24AI AgentAgentModel
  25. 25Edit Fields_TextSetLogic
  26. 26DownloadAudioTelegramService
  27. 27OpenAI1Open AiModel
  28. 28TelegramTelegramService
  29. 29OpenAIOpen AiModel
  30. 30Edit Fields_ImageSetLogic
  31. 31Edit Fields_AudioSetLogic

How it's built

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