Patient intake automation: reminders with AI risk flags (n8n)
At a glance
- Setup estimate
- 2–4 h (ESTIMATE)
- Tools
- Industries
- Healthcare & wellness
Problem
Intake forms arrive incomplete or late, and staff have no time to read them before the appointment
Who it's for
A starting point for patient intake automation at small outpatient clinics and private practices that book visits in Google Calendar and collect intake through a Google Form. The trigger: intake details arrive late or get read only when the patient is in the room, so you want forms sent before each visit and anything worrying flagged to the clinician in Slack.
Skip it if you can't put patient data through Google, Slack and Azure under the agreements your health-privacy rules require, or if you need a working reminder step out of the box: in the shared template the reminder email is a placeholder. It isn't a clinical triage tool and doesn't replace staff review.
Tools and what each does
- n8n Cron (hourly) + Google Calendar
- Every hour, lists events on the primary calendar.
- Gmail
- Meant to send each patient a pre-arrival intake email.
- Google Forms + Google Sheets Trigger
- Answers land in the form's response sheet; n8n polls it every minute.
- AI Agent with Azure OpenAI (gpt-4o-mini deployment)
- Reads name, date of birth, reason for visit, symptoms and allergies, and returns JSON: risk level (Low, Medium, High, Emergency), allergy and medication flags, key concerns, doctor preparation notes and a confidence score. The prompt forbids diagnosis or treatment advice.
- Code + Google Sheets
- Parses and tidies the JSON and writes it to a second tab, matched on patient name.
- IF + Slack
- Posts a 'High-Risk Patient Alert' with concerns and notes when the risk level is High.
Browse by tool: n8n, Google Calendar, Gmail, Google Sheets, Azure OpenAI, Slack
Steps
- Hourly, n8n reads your calendar and sends intake emails (once the email step is set up).
- The patient fills in the Google Form.
- Within a minute, the new response reaches the AI agent.
- The AI's JSON is checked, normalised and saved next to the patient's name.
- High-risk results trigger a Slack alert for the clinician.
Known problems in the source template
Found by reading the template's JSON, not by running it. Likely fails as shipped.
Problem: The intake email is a placeholder: it goes to [email protected] with subject 'hii' and body 'cdcd'. It runs for every calendar event returned each hour, with no date window and no record of who was already emailed.
Fix: Filter events to the next 24–48 hours, take the patient's email from the event, write a real message with the form link, and log sent reminders so each patient gets one.
Problem: Only a risk level of exactly 'High' sends a Slack alert. 'Emergency', the highest level the prompt defines, is likely never alerted.
Fix: Alert on High and Emergency (and on requires_immediate_attention), and send Emergency to a channel someone watches in real time.
Problem: Results are saved with 'append or update' matched on Name, so two patients with the same name overwrite each other's assessment.
Fix: Match on a unique value such as the form's timestamp plus email, or a patient ID.
Problem: The Slack channel is 'YOUR_SLACK_CHANNEL' and the sheet IDs are the author's.
Fix: Set your own channel and sheets.
Before you start
- A Google Form whose questions match the template's exact column headers (several include leading and trailing spaces).
- An Azure OpenAI resource with a gpt-4o-mini (or newer) deployment.
- Gmail, Google Calendar, Google Sheets and Slack connected to n8n.
- The agreements your privacy rules require with every service that will hold patient data (for HIPAA, business associate agreements).
- Setup estimate: 2–4 h (ESTIMATE).
What can go wrong
This sends health information to Azure OpenAI and stores it in Google Sheets, Gmail and Slack. In the US that likely requires HIPAA-compliant configurations and business associate agreements with each vendor; get compliance advice before using it with real patients. The AI risk level is not a clinical assessment and must not replace clinician triage, and emergencies must never depend on this flow. Needs an Azure OpenAI deployment (cost UNKNOWN).
- Silent failureIf the model wraps its JSON in a code fence or adds a sentence, the parser throws and that patient gets no saved assessment and no alert. Add an error branch that alerts staff to read the form themselves.
- LegalThis handles health information. In the US, HIPAA requires business associate agreements with services that handle protected health information on your behalf; check which Google, Slack and Microsoft plans offer one before using real patient data, and follow your local equivalent elsewhere.
- ReliabilityAn AI risk label isn't a clinical judgement. Patients who report emergency symptoms on a form need to be told to call emergency services, and staff should still read every form.
- ModelThe template runs gpt-4o-mini on Azure OpenAI, which retires models on its own schedule (OpenAI's own API removes gpt-4o-mini on Jan 14, 2027). Check Azure's model-retirements page for your deployment.
- ModelModel status not verified as of Oct 20 2026.
How to adapt it
- Send the form link in your booking confirmation instead of hourly reminders.
- Add the appointment time to the Slack alert so the clinician knows how soon it matters.
- Swap Google Forms for your practice-management system's intake if it can send webhooks.
- Keep the AI step but route all results to a daily summary for the clinician, not just High ones.
Sources we checked
- Source template: n8n.io workflow 13520 checked
- Template JSON via n8n templates API checked
- HHS: Business associates (HIPAA) checked
- Azure OpenAI model retirements checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.