Handle WhatsApp sales inquiries with OpenAI, Pinecone, Google Calendar, and Slack
Needs changesWhat this workflow does
This AI workflow has 16 nodes and runs on WhatsApp events (plus 1 other trigger). Along the way it connects WhatsApp Business Cloud, OpenAI Chat Model, Pinecone Vector Store and Embeddings OpenAI and 2 more.
How it runs
Trigger: On WhatsApp events (plus 1 other trigger).
- Is Text Message? (If): checks a condition and branches into true / false
- Notify Ops (Slack): uses Slack
- Sales Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 3 tools (Book Appointment (Tool), Check Availability (Tool), Product Catalog (RAG Tool)); memory: Session Memory
- Parse Handoff Flag (Code): runs custom JavaScript code
- Needs Human? (If): checks a condition and branches into true / false
- Route to Human (Slack): uses Slack
- Reply on WhatsApp (WhatsApp Business Cloud): send
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 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) 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 (13)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow handles inbound WhatsApp Business messages with an OpenAI-powered sales agent that uses Pinecone RAG for product answers and Google Calendar tools for scheduling, then either replies on WhatsApp or hands the conversation to Slack,…