Automation library · Scheduling

AI-powered Telegram business assistant with OpenAI and Google

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

LargeCalls a model: OpenAIRetrieval

45 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 3Model 10Logic 7Service 25

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2CalculatorTool CalculatorModel
  3. 3SerpAPITool Serp ApiModel
  4. 4WikipediaTool WikipediaModel
  5. 5Google DriveGoogle Drive ToolService
  6. 6GmailGmail ToolService
  7. 7Create EventGoogle Calendar ToolService
  8. 8main_messageTelegram triggerStarts it
  9. 9Window Buffer MemoryMemory Buffer WindowModel
  10. 10Hacker NewsHacker News ToolService
  11. 11get inboxGmail ToolService
  12. 12Update Company InformationGoogle Docs ToolService
  13. 13Get Company InfoGoogle Docs ToolService
  14. 14Delete EventGoogle Calendar ToolService
  15. 15Get all eventsGoogle Calendar ToolService
  16. 16calendar summarySchedule triggerStarts it
  17. 17Email SummarySchedule triggerStarts it
  18. 18delete_emailGmail ToolService
  19. 19Create FileGoogle Drive ToolService
  20. 20Update FileGoogle Drive ToolService
  21. 21Read Google DocsGoogle Docs ToolService
  22. 22get my tasksMonday Com ToolService
  23. 23create taskMonday Com ToolService
  24. 24scrape pageHttp Request ToolService
  25. 25update itemMonday Com ToolService
  26. 26get board columnsMonday Com ToolService
  27. 27Send Whats AppHttp Request ToolService
  28. 28Business Assistant AgentAgentModel
  29. 29SwitchSwitchLogic
  30. 30Edit FieldsSetLogic
  31. 31Edit Fields1SetLogic
  32. 32TelegramTelegramService
  33. 33Telegram1TelegramService
  34. 34button textSetLogic
  35. 35Message from other peopleTelegramService
  36. 36get_audioTelegramService
  37. 37send audio?FilterLogic
  38. 38Generate buttonsOpen AiModel
  39. 39OpenAIOpen AiModel
  40. 40text for audioOpen AiModel
  41. 41IfIfLogic
  42. 42MergeMergeLogic
  43. 43create audioOpen AiModel
  44. 44HTTP RequestHttp RequestService
  45. 45Telegram2TelegramService

How it's built

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