# Manage clinic appointments and prescriptions with Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets, Slack and one other.

Source: https://millionrounds.com/workflow/manage-clinic-appointments-and-prescriptions-with-telegram (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)

# Manage clinic appointments and prescriptions with Telegram

Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets, Slack and one other. 24 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmanage-clinic-appointments-and-prescriptions-with-telegram)

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

**1** Branch: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 5 Logic 5 Service 14

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

- 1 **📨 Telegram – Patient Sends Confirm** Telegram trigger *Starts it*
- 2 **⏰ Hourly Reminder Check** Schedule trigger *Starts it*
- 3 **📥 Patient Books Appointment** Webhook *Starts it*
- 4 **💊 Prescription Webhook** Webhook *Starts it*
- 5 **On Workflow Error** Error trigger *Starts it*
- 6 **⚙️ Extract Booking ID from Message** Code *Logic*
- 7 **📋 Read Booked Appointments** Google Sheets *Service*
- 8 **⚙️ Prepare Booking Data** Code *Logic*
- 9 **⚙️ Extract Prescription Data** Code *Logic*
- 10 **Slack – Post Workflow Error Alert** Slack *Service*
- 11 **🔀 Valid Booking ID?** If *Logic*
- 12 **🔍 Filter – Due for Reminder** Code *Logic*
- 13 **📊 Append to Google Sheets** Google Sheets *Service*
- 14 **📊 Update Sheet – Prescription Sent** Google Sheets *Service*
- 15 **📊 Update Status to Confirmed** Google Sheets *Service*
- 16 **📲 Telegram – Invalid ID Reply** Telegram *Service*
- 17 **📲 Telegram – Send Reminder** Telegram *Service*
- 18 **📲 Telegram – Booking Confirmed** Telegram *Service*
- 19 **📧 Gmail – Send Prescription** Gmail *Service*
- 20 **📅 Create Google Calendar Event** Google Calendar *Service*
- 21 **📲 Telegram – Confirm to Patient** Telegram *Service*
- 22 **📲 Telegram – Medicine Order to Patient** Telegram *Service*
- 23 **📋 Read Appointment Row** Google Sheets *Service*
- 24 **📲 Telegram – Notify Doctor** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 24, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Calendar, Google Sheets, Slack, Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar, Google Sheets, Slack and Telegram accounts. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 24 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 24 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%2Fmanage-clinic-appointments-and-prescriptions-with-telegram)
- **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)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

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

- [**Plant care reminder with OpenWeather and Sheets** 24 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/plant-care-reminder-with-openweather-and-sheets)
- [**AI Timesheet Generator with Gmail and Calendar** 24 steps · calls a model · GitHub, Gmail](https://millionrounds.com/workflow/ai-timesheet-generator-with-gmail-and-calendar)
- [**Agent personnel with OpenAI and Gmail** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/agent-personnel-with-openai-and-gmail)
- [**Automate meeting summaries from Fireflies transcripts** 24 steps · calls a model · Gmail](https://millionrounds.com/workflow/automate-meeting-summaries-from-fireflies-transcripts)
- [**Automate tenant rent collection with Sheets and Gmail** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-tenant-rent-collection-with-sheets-and-gmail)
- [**Deploy a Google Gemini AI assistant on WhatsApp with Gmail** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/deploy-a-google-gemini-ai-assistant-on-whatsapp-with-gmail)
