Triage appointment requests with OpenAI, Supabase, Gmail, and webhooks
Ready for 3.0What this workflow does
This AI workflow has 40 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Supabase, Supabase Vector Store and Embeddings OpenAI and 2 more.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Parse Request (Edit Fields (Set)): sets 3 fields: customer, message, bookingId
- Get Email Message (Gmail): get
- Validate Request (If): checks a condition and branches into true / false
- Parse Email Reply (Edit Fields (Set)): sets or maps fields
- Set Validation Error (Edit Fields (Set)): sets 2 fields: status, reason
- Set Valid Status (Edit Fields (Set)): sets 1 field: status
- Find Original Request (Supabase): get many
- Return (Respond to Webhook): sends the response back to the webhook caller
- Create Request Record (Supabase): uses Supabase
- Request Found? (If): checks a condition and branches into true / false
…plus 26 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Supabase templates (149) · Other Supabase + Gmail templates (69)
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 (14)
- Respond to Webhook
n8n-nodes-base.respondToWebhook - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - HTTP Request
n8n-nodes-base.httpRequest - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Supabase
n8n-nodes-base.supabase - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Aggregate
n8n-nodes-base.aggregate - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger
From the author
Quick Overview This workflow accepts customer requests via a webhook or email, logs them in Supabase, uses OpenAI to classify intent, and then either checks/cancels bookings via an HTTP API or answers general questions from a Supabase knowledge base before…