Run an AI hospital triage and booking chatbot with Mistral and Supabase
Ready for 3.0What this workflow does
This AI workflow has 46 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Supabase, Mistral Cloud Chat Model and Gmail. It also calls api.mistral.ai over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Health Assistant Agent (AI Agent): runs an AI agent, with model: Mistral AI Model; 8 tools (Get All Patients Tool, Symptom Analysis Tool, Cancel Appointment Tool, Get Patient Details Tool…); memory: Conversation Memory
- Triage Agent (AI Agent): runs an AI agent, with model: Mistral Triage Model
- Set Task Parameters (Edit Fields (Set)): sets 2 fields: task, task
- Fetch Appointment History (Supabase): get many
- Fetch Upcoming Appointments (Supabase): get many
- Send Response to Chatbot (Respond to Webhook): sends the response back to the webhook caller
- Parse Triage Result Response (Code): runs custom JavaScript code
- Fetch Hospital Records (Supabase): get many
- Calculate No-Show Risk Scores (Code): runs custom JavaScript code
- Filter Next 3 Hour Appointments (Code): runs custom JavaScript code
…plus 20 more steps. See the full node list below.
Services it uses
HTTP calls to: api.mistral.ai
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.
Nodes used (17)
- Supabase Tool
n8n-nodes-base.supabaseTool - Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Respond to Webhook
n8n-nodes-base.respondToWebhook - Mistral Cloud Chat Model
@n8n/n8n-nodes-langchain.lmChatMistralCloud - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Supabase
n8n-nodes-base.supabase - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow powers an AI hospital chatbot using Mistral AI and Supabase to answer medical questions from a knowledge base, manage patients, doctors, and appointments, triage urgent messages with email escalation, and run daily automations for…