Templates / Coordinate patient care and alerts with EHR/FHIR, GPT-4, Twilio, Gmail and Slack

Coordinate patient care and alerts with EHR/FHIR, GPT-4, Twilio, Gmail and Slack

Ready for 3.0

by Cheng Siong Chin ✓ · 1,110 views · created 2026-01-15 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 26 nodes and runs on a schedule (every 2 minutes) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Postgres, Slack and Twilio.

How it runs

Trigger: On a schedule (every 2 minutes) (plus 1 other trigger).

  1. Workflow Configuration (Edit Fields (Set)): sets 10 fields: flightApiUrl, weatherApiUrl, telemetryApiUrl…
  2. Validate & Normalize Data (Code): runs custom JavaScript code
  3. Fetch Flight & Weather Data (HTTP Request): calls an HTTP API
  4. Check Idempotency & Deduplication (Code): runs custom JavaScript code
  5. Rate Limit Handler (Wait): waits 0.5 seconds
  6. Is Duplicate Event? (If): checks a condition and branches into true / false
  7. AI Agent: runs an AI agent, with model: OpenAI GPT-; output parser: Structured Output: Disruption Analysis
  8. Apply Operational Rules Engine (Code): runs custom JavaScript code
  9. Route by Severity & Type (Switch): routes items into 4 branches
  10. Store: Critical Events DB (Postgres): uses Postgres

…plus 12 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelPostgresSlackTwilio

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (17)

From the author

How It Works This workflow automates end-to-end patient care coordination by monitoring appointment schedules, clinical events, and care milestones while orchestrating personalized communications across multiple channels. Designed for healthcare operations…

Excerpt from Cheng Siong Chin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.