Skip to main content

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

Workflow preview

Workflow preview
100%
Coordinate patient care and alerts with EHR/FHIR, GPT-4, Twilio, Gmail and Slack preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 a...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

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

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 teams, care coordinators, and patient engagement specialists, it solves the challenge of manual patient follow-up, missed appointments, and fragmented communication across care teams. The system triggers on scheduled intervals and real-time clinical events, ingesting data from EHR systems, appointment schedulers, and lab result feeds. Patient records flow through validation and risk stratification layers using AI models that identify high-risk patients, predict no-show probability, and recommend intervention timing. The workflow applies clinical protocols for appointment reminders, medication adherence checks, and post-discharge follow-ups. Critical cases automatically route to care coordinators via Slack alerts, while routine communications deploy via SMS, email, and patient portal notifications. All interactions log to secure databases for compliance documentation. This eliminates manual outreach coordination, reduces no-shows by 40%, and ensures HIPAA-compliant patient engagement at scale.

Setup Steps

  1. Configure EHR/FHIR API credentialsfor patient data access
  2. Set up webhook endpoints for real-time clinical event notifications
  3. Add OpenAI API key for patient risk stratification and communication personalization
  4. Configure Twilio credentials for SMS and voice call delivery
  5. Set Gmail OAuth or SMTP credentials for email appointment reminders
  6. Connect Slack workspace and define care coordination alert channels

Prerequisites

Active EHR system with FHIR API access or HL7 integration capability.

Use Cases

Automated appointment reminder campaigns reducing no-shows.

Customization

Modify risk scoring models for specialty-specific patient populations.

Benefits

Reduces patient no-show rates by 40% through timely, personalized reminders.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule: Poll APIs Every 2 Minutes

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Webhook: Real-Time Event Ingestion

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 3 - Workflow Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Fetch Flight & Weather Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 5 - Validate & Normalize Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Check Idempotency & Deduplication

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Is Duplicate Event?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 8 - AI Agent: Disruption Prediction & Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 9 - OpenAI GPT-4

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 10 - Structured Output: Disruption Analysis

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - Apply Operational Rules Engine

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Route by Severity & Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 13 - Store: Critical Events DB

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 14 - Store: High Priority Events DB

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 15 - Store: Medium Priority Events DB

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 16 - Store: Low Priority Events DB

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 17 - Alert: OCC Slack Channel

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 18 - Email: Ground Staff Notification

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 19 - SMS: Customer Service Alert

Type / Role
n8n-nodes-base.twilio - twilio
Config choices
Version 1

Block 20 - Prepare Passenger Notification Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Requires Rebooking?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 22 - Trigger Rebooking Workflow

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Merge All Notification Paths

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 24 - Generate Dashboard Metrics

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Showing the first 24 of 33 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Coordinate patient care and alerts with EHR/FHIR, GPT-4, Twilio, Gmail and Slack
Complexity advanced
Nodes 33
Categories Engineering, AI Summarization
Author Cheng Siong Chin
Published 15 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12734/12734.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

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

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 a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.