Handle WhatsApp support chats with OpenRouter, Pinecone, and Gemini
Ready for 3.0What this workflow does
This AI workflow has 44 nodes and runs on WhatsApp events (messages) (plus 2 other triggers). Along the way it connects WhatsApp Business Cloud, OpenRouter Chat Model, HTTP Request and Pinecone Vector Store and 1 more. It also calls host.docker.internal:3001 over HTTP.
How it runs
Trigger: On WhatsApp events (messages) (plus 2 other triggers).
- Route by Event (Switch): routes items into 3 branches
- Fetch Messages (HTTP Request): calls an HTTP API
- Has Media? (If): checks a condition and branches into true / false
- Store Read (HTTP Request): calls host.docker.internal:3001 (POST)
- Store Sent (HTTP Request): calls host.docker.internal:3001 (POST)
- Store Delivered (HTTP Request): calls host.docker.internal:3001 (POST)
- Contact Lookup (HTTP Request): calls an HTTP API
- Summarize (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter Model
- Route By Media Type (Switch): routes items into 4 branches
- Send Text (WhatsApp Business Cloud): send
…plus 25 more steps. See the full node list below.
Services it uses
HTTP calls to: host.docker.internal:3001
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 (15)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Http Request Tool
n8n-nodes-base.httpRequestTool - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
Quick overview This template implements a WhatsApp support suite that logs inbound events to a dashboard API, routes conversations through an OpenRouter-powered AI agent with Pinecone RAG and memory, exposes a webhook for human outbound replies, and provides…