Reply to WhatsApp sales leads with OpenAI, Supabase, and Slack alerts
Needs changesWhat this workflow does
This AI workflow has 20 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Supabase, WhatsApp Business Cloud, OpenAI Chat Model and Slack.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Respond Verify Token (Respond to Webhook): sends the response back to the webhook caller
- Client Config (Edit Fields (Set)): sets 10 fields: business_name, phone_number_id, slack_channel_id…
- Normalize WhatsApp Data (Code): runs custom JavaScript code
- Check Duplicate Message (Supabase): get many
- Is New Message? (If): checks a condition and branches into true / false
- Check Customer (Supabase): get many
- Customer Exists? (If): checks a condition and branches into true / false
- Get Customer History (Supabase): get many
- Create Customer (Supabase): uses Supabase
- Get Product Information (Supabase): get many
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Sales Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Sales Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Supabase
n8n-nodes-base.supabase - If
n8n-nodes-base.if - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow receives WhatsApp Cloud API messages, uses OpenAI to generate grounded sales replies, logs and scores each lead in Supabase, and notifies your team in Slack when a lead is hot or needs a human. How it works 1. Receives WhatsApp…