Automation library ยท Scheduling

Triage and schedule healthcare appointments with Azure OpenAI

Started by another system calling it, and works across Gmail and Google Sheets. It hands the judgement calls to Azure OpenAI. 19 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: Azure OpenAI

19 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Model 4Logic 5Service 7

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

  1. 1๐Ÿ”” Patient Lead WebhookWebhookStarts it
  2. 2๐Ÿง  Azure OpenAI โ€“ Triage ModelLm Chat Azure Open AiModel
  3. 3๐Ÿ“Š New Patient Row TriggerGoogle Sheets triggerStarts it
  4. 4๐Ÿง  Azure OpenAI โ€“ Assignment ModelLm Chat Azure Open AiModel
  5. 5๐Ÿ“‹ Fetch Doctor List from SheetGoogle Sheets ToolService
  6. 6โฐ Hourly Feedback Schedule TriggerSchedule triggerStarts it
  7. 7๐Ÿ—‚๏ธ Format Patient DataSetLogic
  8. 8๐Ÿค– AI Triage AgentAgentModel
  9. 9๐Ÿค– AI Doctor Assignment AgentAgentModel
  10. 10๐Ÿ“‹ Fetch All Appointments for FeedbackGoogle SheetsService
  11. 11โš™๏ธ Normalize Triage OutputCodeLogic
  12. 12โš™๏ธ Normalize Assignment OutputCodeLogic
  13. 13๐Ÿ”€ Filter Completed VisitsIfLogic
  14. 14๐Ÿ“ Save Triage to Patient Forms SheetGoogle SheetsService
  15. 15๐Ÿ“ Save Assignment to Appointments SheetGoogle SheetsService
  16. 16๐Ÿ“ง Send Feedback Email to PatientGmailService
  17. 17๐Ÿ“‹ Fetch Appointments for Doctor EmailGoogle SheetsService
  18. 18โš™๏ธ Build Doctor Schedule Email HTMLCodeLogic
  19. 19๐Ÿ“ง Send Schedule Email to DoctorGmailService

How it's built

Starts on
Another system calling it
Steps
19, with 1 branch
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
Model
Azure OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Azure OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls Azure OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 steps before you point it at anything that matters.