WhatsApp automation
Workflow Description
An intelligent WhatsApp automation system powered by an AI agent leveraging OpenAI. It receives messages, processes them through a language model, retrieves information from a vector database, and sends smart, contextual responses directly to users via WhatsApp.
How it works
- 1.Receive incoming messages through WhatsApp trigger
- 2.Process and split text using Text Splitter component
- 3.Convert information into embeddings and store in Vector Store
- 4.Call OpenAI API to generate intelligent context-aware responses
- 5.Access memory buffer to track previous conversation history
- 6.Send generated responses directly via WhatsApp
Use cases
- Automated customer support that responds to common inquiries instantly
- Document analysis and Q&A based on uploaded knowledge bases
Requirements
- Active WhatsApp Business account with API enabled
- OpenAI API key with appropriate permissions
- Source documents or data loaded into the Vector Store for context
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