Answer WhatsApp sales queries from text, voice, photos, and video with OpenAI and Gemini
Ready for 3.0What this workflow does
This AI workflow has 29 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Embeddings OpenAI, WhatsApp Business Cloud, OpenAI and Google Gemini and 2 more.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Knowledge Base Settings (Edit Fields (Set)): sets 4 fields: product_brochure_url, chunk_size, chunk_overlap…
- Configuration (Edit Fields (Set)): sets 10 fields: openai_model, vision_model, video_model…
- Download Product Brochure (HTTP Request): calls an HTTP API
- Route by Message Type (Switch): routes items into 4 branches
- Extract Brochure Text (Extract from File): extracts data from a file (pdf)
- Get Audio Media URL (WhatsApp Business Cloud): media url get
- Get Image Media URL (WhatsApp Business Cloud): media url get
- Get Video Media URL (WhatsApp Business Cloud): media url get
- Prepare Agent Input (Edit Fields (Set)): sets 4 fields: message_type, message_text, message_caption…
- Reply Unsupported Message (WhatsApp Business Cloud): send
…plus 9 more steps. See the full node list below.
Services it uses
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 (17)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore
From the author
Quick overview This workflow indexes a product brochure PDF into an in-memory vector store and then responds to incoming WhatsApp text, voice, image, and video messages using OpenAI and Google Gemini, with per-customer chat memory and retrieval-augmented…