π« Send AI pre-op reminders with Google Calendar, Gmail, Sheets, Slack and GPT-4o
β‘ 146 views Β· π« Ticket Management & Triage
Description
π Description
This workflow automates end-to-end pre-surgery checklist reminders and confirmation tracking for healthcare operations teams. It ensures patients receive timely preparation instructions, can confirm completion with a single click, and allows staff to monitor confirmation status in real timeβwithout manual coordination. Every day at 9:00 AM, the workflow fetches surgery events from Google Calendar, extracts patient details from event descriptions, and generates a unique confirmation link for each patient. An AI assistant then creates a personalized, patient-friendly pre-op checklist email (subject + styled HTML body) that includes surgery details and a confirmation button. When a patient clicks the confirmation link, a webhook captures the confirmation, updates Google Sheets as the source of truth, and records the timestamp. A separate periodic scheduler scans the sheet for patients who have not confirmed within the expected window. If confirmation is missing, the assigned nurse or owner is alerted in Slack with full patient and surgery context for immediate follow-up. This creates a closed-loop system: reminder β confirmation capture β tracking β escalation.
βοΈ What This Workflow Does (Step-by-Step)
βΆοΈ Daily 9:00 AM Trigger Starts the pre-op reminder cycle automatically each morning. π Fetch Todayβs Surgery Events (Google Calendar) Pulls calendar events and filters only surgery-related entries. π§Ύ Extract Patient Details from Event Description Parses patient name, email, phone, ID, procedure, and surgery time. π Generate Unique Confirmation Link Creates a secure confirmUrl per patient with tracking parameters. βοΈ AI Email Generation (Subject + HTML Body) Uses Azure OpenAI (gpt-4o) to generate a calm, professional checklist email with: Surgery details Basic preparation checklist Green confirmation button linked to confirmUrl π€ Send Pre-Op Reminder via Gmail Delivers the styled HTML email directly to the patient. β Confirmation Webhook (GET /confirm) Captures patient clicks, parses query parameters, and marks the checklist as confirmed. π§Ύ Upsert Confirmation Status (Google Sheets) Stores and updates patient confirmation records as the operational source of truth. β³ Periodic Confirmation Check Runs on a schedule to scan all patient rows for missing confirmations. π¨ Slack Alert for Missing Confirmations Notifies the nurse or owner with full patient context when confirmation is not received in time.
π§© Prerequisites
β’ Google Calendar OAuth2 β’ Gmail OAuth2 β’ Azure OpenAI (gpt-4o) credentials β’ Google Sheets OAuth2 β’ Slack API credentials β’ Publicly accessible webhook URL for confirmation tracking
π‘ Key Benefits
β Automated pre-op reminders at a fixed daily time β Personalized AI-generated patient emails β One-click confirmation tracking β Google Sheets audit trail for operations β Proactive Slack alerts for missing confirmations β Reduced manual follow-ups and missed preparations
π₯ Perfect For
- Hospitals and surgical centers
- Clinic operations teams
- Care coordinators
- Day-surgery facilities
- Healthcare admin automation systems
π Nodes Used
Google Sheets, Slack, Webhook, Google Calendar, Gmail, Schedule Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File