Automation library · Scheduling

Post-surgery patient triage & follow-up system with Gemini

Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets and Telegram. It hands the judgement calls to Gemini. 36 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 2Model 14Logic 5Service 15

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Telegram TriggerTelegram triggerStarts it
  3. 3Google Gemini Chat ModelLm Chat Google GeminiModel
  4. 4Google Gemini Chat Model1Lm Chat Google GeminiModel
  5. 5Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  6. 6Google Gemini Chat Model2Lm Chat Google GeminiModel
  7. 7Get row(s) in sheet in Google Sheets1Google Sheets ToolService
  8. 8Google Gemini Chat Model3Lm Chat Google GeminiModel
  9. 9Get row(s) in sheet in Google Sheets2Google Sheets ToolService
  10. 10Get row(s) in sheet in Google Sheets3Google Sheets ToolService
  11. 11Google Gemini Chat Model4Lm Chat Google GeminiModel
  12. 12Google Gemini Chat Model5Lm Chat Google GeminiModel
  13. 13Get row(s) in sheet in Google Sheets4Google Sheets ToolService
  14. 14Send a message in GmailGmail ToolService
  15. 15HTTP RequestHttp Request ToolService
  16. 16Google Gemini Chat Model6Lm Chat Google GeminiModel
  17. 17Create an event in Google CalendarGoogle Calendar ToolService
  18. 18Send a text message in TelegramTelegram ToolService
  19. 19Get row(s) in sheetGoogle SheetsService
  20. 20Edit FieldsSetLogic
  21. 21AI AgentAgentModel
  22. 22AI Agent1AgentModel
  23. 23AI Agent2AgentModel
  24. 24AI Agent3AgentModel
  25. 25AI Agent4AgentModel
  26. 26AI Agent5AgentModel
  27. 27AI Agent6AgentModel
  28. 28CodeCodeLogic
  29. 29Send a text message4TelegramService
  30. 30Send a text message2TelegramService
  31. 31Send a text message3TelegramService
  32. 32Code1CodeLogic
  33. 33Send a text messageTelegramService
  34. 34IfIfLogic
  35. 35SwitchSwitchLogic
  36. 36feedback msgTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
36, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Calendar, Google Sheets, Telegram
Model
Gemini

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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 36 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 36 steps before you point it at anything that matters.