Intelligent WhatsApp responses powered by OpenAI agent
Workflow Description
Automates WhatsApp message handling using an AI agent backed by OpenAI, maintaining conversation memory and leveraging a vector store for document-based queries. Processes incoming messages through intelligent workflows with recursive text splitting and smart routing.
How it works
- 1.Receive incoming WhatsApp messages
- 2.Split and process documents through recursive character splitting
- 3.Search vector store for relevant information and context
- 4.Generate intelligent responses using OpenAI agent
- 5.Send automated replies back via WhatsApp
Use cases
- Automated customer support with context-aware responses
- Knowledge base Q&A where answers derive from uploaded documents
- Multi-conversation management with persistent memory across sessions
Requirements
- Active WhatsApp Business account or WhatsApp-connected phone number
- OpenAI API key with sufficient credits
- Documents or text files to populate the vector store for retrieval
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (28)
WhatsApp Trigger
Whats App Trigger
OpenAI Chat Model
OpenAI
Window Buffer Memory
Memory Buffer Window
Vector Store Tool
Tool Vector Store
Embeddings OpenAI
OpenAI
OpenAI Chat Model1
OpenAI
When clicking ‘Test workflow’
Manual Trigger
Embeddings OpenAI1
OpenAI
Default Data Loader
Document Default Data Loader
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Extract from File
Extract From File
get Product Brochure
HTTP Request
Reply To User
Whats App
Reply To User1
Whats App
Product Catalogue
Vector Store In Memory
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Create Product Catalogue
Vector Store In Memory
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Handle Message Types
Switch
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
AI Sales Agent
Agent