# Post-surgery patient triage & follow-up system with Gemini: n8n workflow

> Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets and Telegram. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/post-surgery-patient-triage-and-follow-up-system-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# 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.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpost-surgery-patient-triage-and-follow-up-system-with-gemini)

**36 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 2 Model 14 Logic 5 Service 15

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Telegram Trigger** Telegram trigger *Starts it*
- 3 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 4 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 5 **Get row(s) in sheet in Google Sheets** Google Sheets Tool *Service*
- 6 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 7 **Get row(s) in sheet in Google Sheets1** Google Sheets Tool *Service*
- 8 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 9 **Get row(s) in sheet in Google Sheets2** Google Sheets Tool *Service*
- 10 **Get row(s) in sheet in Google Sheets3** Google Sheets Tool *Service*
- 11 **Google Gemini Chat Model4** Lm Chat Google Gemini *Model*
- 12 **Google Gemini Chat Model5** Lm Chat Google Gemini *Model*
- 13 **Get row(s) in sheet in Google Sheets4** Google Sheets Tool *Service*
- 14 **Send a message in Gmail** Gmail Tool *Service*
- 15 **HTTP Request** Http Request Tool *Service*
- 16 **Google Gemini Chat Model6** Lm Chat Google Gemini *Model*
- 17 **Create an event in Google Calendar** Google Calendar Tool *Service*
- 18 **Send a text message in Telegram** Telegram Tool *Service*
- 19 **Get row(s) in sheet** Google Sheets *Service*
- 20 **Edit Fields** Set *Logic*
- 21 **AI Agent** Agent *Model*
- 22 **AI Agent1** Agent *Model*
- 23 **AI Agent2** Agent *Model*
- 24 **AI Agent3** Agent *Model*
- 25 **AI Agent4** Agent *Model*
- 26 **AI Agent5** Agent *Model*
- 27 **AI Agent6** Agent *Model*
- 28 **Code** Code *Logic*
- 29 **Send a text message4** Telegram *Service*
- 30 **Send a text message2** Telegram *Service*
- 31 **Send a text message3** Telegram *Service*
- 32 **Code1** Code *Logic*
- 33 **Send a text message** Telegram *Service*
- 34 **If** If *Logic*
- 35 **Switch** Switch *Logic*
- 36 **feedback msg** Telegram *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpost-surgery-patient-triage-and-follow-up-system-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**Summarize meetings and sync action items with Whisper** 36 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/summarize-meetings-and-sync-action-items-with-whisper-2)
- [**Summarize meetings and sync action items with Whisper** 36 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/summarize-meetings-and-sync-action-items-with-whisper)
- [**AI-Powered WhatsApp Chatbot: Complete Booking Assistant** 37 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-complete-booking-assistant)
- [**Doctor appointment management system with Gemini and WhatsApp** 35 steps · calls a model · Google Sheets, WhatsApp](https://millionrounds.com/workflow/doctor-appointment-management-system-with-gemini-and-whatsap)
- [**Send WhatsApp meeting briefs with Google Calendar and Gmail** 35 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/send-whatsapp-meeting-briefs-with-google-calendar-and-gmail)
- [**AI daily brief with OpenAI and Gmail** 38 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-daily-brief-with-openai-and-gmail)
