Triage telehealth appointments with GPT-4o-mini, Telegram, Google Calendar

Go to Workflow
1 views
Built by Rahul Joshi Rahul Joshi
Created on June 24, 2026

Description

Quick overview
This workflow collects telehealth appointment details via an n8n Form, uses OpenAI (GPT-4o-mini) to score no-show risk, then sends Telegram reminders and confirmations and updates Google Calendar based on the patient’s response, with Slack alerts on workflow errors.

How it works
Receives a new appointment submission from an n8n Form with patient, appointment, and Telegram chat details.
Sends the appointment data to OpenAI (GPT-4o-mini) to generate a 0–100 no-show risk score and explanation.
Routes the flow based on the risk score, sending a single friendly Telegram reminder for low-risk patients.
For high-risk patients, sends escalating Telegram reminders and a final message that waits for a confirmation or cancellation reply.
If the patient cancels, creates a new “rescheduled” time slot in Google Calendar and sends the patient a Telegram reschedule acknowledgement.
If the patient confirms, updates the existing Google Calendar event to note the confirmation and sends a Telegram confirmation message.
If any step fails, posts an error notification to a Slack channel.

Setup
Add credentials for OpenAI (Chat), Telegram Bot, Google Calendar OAuth2, and Slack OAuth2 used for error notifications.
Update the n8n Form path/fields as needed and ensure patients provide a valid Telegram Chat ID for messaging.
Replace the placeholder Google Calendar ID (for example, "[email protected]") and ensure your events have the correct Event ID available to update when confirming.
Review and adjust the high-risk threshold (default score ≥ 70) and the wait duration for patient replies to match your operational process.
Set the Slack channel target for error alerts and verify your workspace allows the app to post messages.

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Calendar
n8n-nodes-base.googleCalendar
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Slack
n8n-nodes-base.slack
Telegram
n8n-nodes-base.telegram