Skip to main content

Automate patient journey with GPT-4, Twilio & Slack notifications

Workflow preview

Workflow preview
100%
Automate patient journey with GPT-4, Twilio & Slack notifications 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 is a comprehensive, AI powered system that acts as a virtual patient assistant for clinics. It automates the entire patient journey from appointment confirmation to po...

Best for

  • Support Chatbot automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlecalendartrigger, n8n-nodes-base.openai, n8n-nodes-base.twilio, n8n-nodes-base.wait, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate patient journey with GPT-4, Twilio & Slack notifications
Workflow name
Automate patient journey with GPT-4, Twilio & Slack notifications

How It Works ⚙️

This workflow is a comprehensive, AI-powered system that acts as a virtual patient assistant for clinics. It automates the entire patient journey from appointment confirmation to post-procedure follow-up.

  1. Appointment Trigger: The workflow starts when a new event is created in your Google Calendar for a patient appointment.
  2. AI-Powered Education: The new appointment is sent to an OpenAI (GPT-4) node, which acts as a virtual clinic assistant. It instantly generates a personalized pre-procedure guide based on the appointment's details.
  3. Automated Communication: The workflow then uses Twilio to send this AI-generated guide directly to the patient via SMS or WhatsApp, ensuring they are well-prepared for their appointment.
  4. Post-Procedure Follow-up: After the appointment ends, a Wait node pauses the workflow for a set period. It then sends a personalized follow-up message—also generated by OpenAI—to the patient, encouraging them to provide feedback.
  5. Staff Notification: A Slack notification is sent to the team once a follow-up message has been dispatched, keeping everyone informed and ready to act on incoming feedback.

How to Set Up 🛠️

  1. Import the Workflow: Copy the provided workflow JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Google Calendar: Add your OAuth2 credential.
    • OpenAI: Add your API Key.
    • Twilio: Add your API credentials.
    • Slack: Add your Bot Token credential.
  3. Customize Workflow Nodes:
    • Node 1 (Google Calendar Trigger): Select your clinic's booking calendar.
    • Node 2 & 5 (OpenAI): You can customize the prompts to better match your clinic's tone and specific procedures.
    • Node 3 & 6 (Twilio): Replace YOUR_TWILIO_NUMBER with your Twilio number and ensure you can extract the patient's phone number from your calendar events (e.g., from the event description).
    • Node 7 (Slack): Replace YOUR_SLACK_CHANNEL_ID with the ID of your team's feedback or operations channel.
  4. Save & Activate: Once all settings and credentials are configured, save the workflow and click the "Inactive" toggle in the top-right corner to make it live.

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 - 1. Google Calendar Trigger

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

Block 2 - 2. OpenAI (Pre-Procedure Guide)

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

Block 3 - 3. Twilio (Send Guide)

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

Block 4 - 4. Wait (After Procedure)

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

Block 5 - 5. OpenAI (Follow-up Message)

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

Block 6 - 6. Twilio (Send Follow-up Message)

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

Block 7 - 7. Slack (Staff Notification)

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

3. Summary Table

Workflow Automate patient journey with GPT-4, Twilio & Slack notifications
Complexity intermediate
Nodes 9
Categories Support Chatbot, Multimodal AI
Author Marth
Published 27 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6517/6517.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 Automate patient journey with GPT-4, Twilio & Slack notifications do?

How It Works ️ This workflow is a comprehensive, AI powered system that acts as a virtual patient assistant for clinics. It automates the entire patient journey from appointment confirmation to po...

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 Support Chatbot, Multimodal AI use case.