# Triage and schedule healthcare appointments with Azure OpenAI: n8n workflow

> Started by another system calling it, and works across Gmail and Google Sheets. It hands the judgement calls to Azure OpenAI.

Source: https://millionrounds.com/workflow/triage-and-schedule-healthcare-appointments-with-azure-opena (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)

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

Medium Calls a model: Azure OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-and-schedule-healthcare-appointments-with-azure-opena)

**19 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Model 4 Logic 5 Service 7

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

- 1 **🔔 Patient Lead Webhook** Webhook *Starts it*
- 2 **🧠 Azure OpenAI – Triage Model** Lm Chat Azure Open Ai *Model*
- 3 **📊 New Patient Row Trigger** Google Sheets trigger *Starts it*
- 4 **🧠 Azure OpenAI – Assignment Model** Lm Chat Azure Open Ai *Model*
- 5 **📋 Fetch Doctor List from Sheet** Google Sheets Tool *Service*
- 6 **⏰ Hourly Feedback Schedule Trigger** Schedule trigger *Starts it*
- 7 **🗂️ Format Patient Data** Set *Logic*
- 8 **🤖 AI Triage Agent** Agent *Model*
- 9 **🤖 AI Doctor Assignment Agent** Agent *Model*
- 10 **📋 Fetch All Appointments for Feedback** Google Sheets *Service*
- 11 **⚙️ Normalize Triage Output** Code *Logic*
- 12 **⚙️ Normalize Assignment Output** Code *Logic*
- 13 **🔀 Filter Completed Visits** If *Logic*
- 14 **📝 Save Triage to Patient Forms Sheet** Google Sheets *Service*
- 15 **📝 Save Assignment to Appointments Sheet** Google Sheets *Service*
- 16 **📧 Send Feedback Email to Patient** Gmail *Service*
- 17 **📋 Fetch Appointments for Doctor Email** Google Sheets *Service*
- 18 **⚙️ Build Doctor Schedule Email HTML** Code *Logic*
- 19 **📧 Send Schedule Email to Doctor** Gmail *Service*

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

## 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%2Ftriage-and-schedule-healthcare-appointments-with-azure-opena)
- **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 Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

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

- [**AI Calling Agent with Retell AI and Google Calendar Scheduling** 19 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/ai-calling-agent-with-retell-ai-and-google-calendar-scheduli)
- [**Automate email triage & meeting scheduling with Gmail** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-email-triage-and-meeting-scheduling-with-gmail)
- [**Generate and schedule social media posts with OpenAI** 19 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/generate-and-schedule-social-media-posts-with-openai-2)
- [**Handle meeting no-shows with Gmail and Google Calendar** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/handle-meeting-no-shows-with-gmail-and-google-calendar)
- [**Organize school emails with Google Calendar and Drive** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/organize-school-emails-with-google-calendar-and-drive)
- [**Qualifying appointment requests with OpenAI and Gmail** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/qualifying-appointment-requests-with-openai-and-gmail)
