Coordinate patient care and alerts with EHR/FHIR, GPT-4, Twilio, Gmail and Slack
Ready for 3.0What 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).
- Workflow Configuration (Edit Fields (Set)): sets 10 fields: flightApiUrl, weatherApiUrl, telemetryApiUrl…
- Validate & Normalize Data (Code): runs custom JavaScript code
- Fetch Flight & Weather Data (HTTP Request): calls an HTTP API
- Check Idempotency & Deduplication (Code): runs custom JavaScript code
- Rate Limit Handler (Wait): waits 0.5 seconds
- Is Duplicate Event? (If): checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: OpenAI GPT-; output parser: Structured Output: Disruption Analysis
- Apply Operational Rules Engine (Code): runs custom JavaScript code
- Route by Severity & Type (Switch): routes items into 4 branches
- Store: Critical Events DB (Postgres): uses Postgres
…plus 12 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + PostgreSQL templates (191) · Other PostgreSQL + Slack templates (109)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (17)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Postgres
n8n-nodes-base.postgres - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Twilio
n8n-nodes-base.twilio - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - Wait
n8n-nodes-base.wait
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…