Quick Overview
This workflow runs daily and weekly to manage unscheduled dental treatment plans by reading patient and procedure data from Google Sheets, sending follow-up emails through Gmail, escalating long-unresponsive cases to the front desk, and emailing a weekly recovery summary to the practice owner.
How it works
- Runs every morning on a schedule and loads Patients and ProcedureLog data from Google Sheets.
- Identifies treatment plans that are still unscheduled and not marked as recovered, then decides whether to send the 1st/2nd/3rd reminder (after 3/14/30 days) or escalate to staff (after 45 days) based on the existing follow-up stage.
- Sends a detailed internal escalation email via Gmail to the front desk for cases that require a personal call.
- Updates the matching ProcedureLog row in Google Sheets to record that the plan is escalated so it is not contacted automatically again.
- Sends a generic patient reminder email via Gmail for cases due for the next step in the sequence.
- Updates the matching ProcedureLog row in Google Sheets to record the new follow-up stage and last contact date.
- Runs every Monday on a separate schedule, recomputes recovery and pipeline totals from ProcedureLog, and emails the weekly summary to the practice owner via Gmail.
Setup
- Connect Google Sheets OAuth2 credentials and update the spreadsheet ID and tab names (Patients and ProcedureLog) to match your Google Sheet.
- Connect Gmail OAuth2 credentials and set the recipient addresses for the front desk and owner summary emails.
- Ensure your ProcedureLog sheet includes the fields used for routing and state (for example ProcStatus, PipelineStatus, DaysUnscheduled, FollowUpStage, LastContactDate, ProcFee, and a row_number for updates).
- Ensure your Patients sheet includes the lookup fields used for outreach (for example PatNum, Email, WirelessPhone, Provider, FName, and LName).
- Adjust the schedule times and follow-up cadence thresholds (3/14/30/45 days) if you want different sending and escalation rules.