Automation library ยท Scheduling

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

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

The flow

Starts it 5Logic 5Service 14

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

  1. 1๐Ÿ“จ Telegram โ€“ Patient Sends ConfirmTelegram triggerStarts it
  2. 2โฐ Hourly Reminder CheckSchedule triggerStarts it
  3. 3๐Ÿ“ฅ Patient Books AppointmentWebhookStarts it
  4. 4๐Ÿ’Š Prescription WebhookWebhookStarts it
  5. 5On Workflow ErrorError triggerStarts it
  6. 6โš™๏ธ Extract Booking ID from MessageCodeLogic
  7. 7๐Ÿ“‹ Read Booked AppointmentsGoogle SheetsService
  8. 8โš™๏ธ Prepare Booking DataCodeLogic
  9. 9โš™๏ธ Extract Prescription DataCodeLogic
  10. 10Slack โ€“ Post Workflow Error AlertSlackService
  11. 11๐Ÿ”€ Valid Booking ID?IfLogic
  12. 12๐Ÿ” Filter โ€“ Due for ReminderCodeLogic
  13. 13๐Ÿ“Š Append to Google SheetsGoogle SheetsService
  14. 14๐Ÿ“Š Update Sheet โ€“ Prescription SentGoogle SheetsService
  15. 15๐Ÿ“Š Update Status to ConfirmedGoogle SheetsService
  16. 16๐Ÿ“ฒ Telegram โ€“ Invalid ID ReplyTelegramService
  17. 17๐Ÿ“ฒ Telegram โ€“ Send ReminderTelegramService
  18. 18๐Ÿ“ฒ Telegram โ€“ Booking ConfirmedTelegramService
  19. 19๐Ÿ“ง Gmail โ€“ Send PrescriptionGmailService
  20. 20๐Ÿ“… Create Google Calendar EventGoogle CalendarService
  21. 21๐Ÿ“ฒ Telegram โ€“ Confirm to PatientTelegramService
  22. 22๐Ÿ“ฒ Telegram โ€“ Medicine Order to PatientTelegramService
  23. 23๐Ÿ“‹ Read Appointment RowGoogle SheetsService
  24. 24๐Ÿ“ฒ Telegram โ€“ Notify DoctorTelegramService

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.