WhatsApp group chat with your vector database — no Facebook Business required
Needs changesWhat this workflow does
This AI workflow has 16 nodes and runs on Google Drive events (specific file) (plus 1 other trigger). Along the way it connects Embeddings OpenAI, OpenAI Chat Model, Pinecone Vector Store and Google Drive.
How it runs
Trigger: On Google Drive events (specific file) (plus 1 other trigger).
- Download the file from Google Drive (Google Drive): download
- Check for individual or group messages (If): checks a condition and branches into true / false
- Index Pinecone Vector Store (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Set max chunks to send to model (Edit Fields (Set)): sets 1 field: chunks
- Get top chunks matching query (Pinecone Vector Store): searches the Pinecone vector store, with embeddings: Embeddings OpenAI
- Prepare chunks (Code): runs custom JavaScript code
- Question & Answer (AI Agent): runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
- Respond to Whatsapp Webhook (Respond to Webhook): sends the response back to the webhook caller
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 Question & Answer (v1.8): 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) Question & Answer (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (14)
- Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Google Drive
n8n-nodes-base.googleDrive - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger
From the author
Enable smart, real-time answers in your WhatsApp groups using a custom webhook, Pinecone vector database, and no Facebook Business setup. > 🟡 Note: This template uses a custom WhatsApp webhook. It does not use the official WhatsApp Business API. --- 👥…