Intelligent WhatsApp Assistant with AI Memory and Multiformat Support
Workflow Description
An automation that receives text, voice, images, and PDF files through WhatsApp, processes them with an AI agent equipped with contextual memory, and delivers intelligent responses. Handles format conversions and maintains conversation history for coherent replies.
How it works
- 1.Trigger: Receive incoming WhatsApp messages and files automatically
- 2.Extract text from audio, images, and PDF documents using file handlers
- 3.Pass processed content to OpenAI agent with persistent memory buffer
- 4.Generate intelligent response based on context and conversation history
- 5.Send reply back to user through WhatsApp
Use cases
- Automated customer support that understands multi-turn conversations
- Process document-heavy inquiries with image and PDF attachment handling
- Build a personal AI assistant that remembers previous interactions
Requirements
- Active OpenAI API key with sufficient quota and model access
- WhatsApp Business Account or configured WhatsApp connection in n8n
- Understanding of memory buffer configuration to maintain conversation 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 (32)
WhatsApp Trigger
Whats App Trigger
Download Image
HTTP Request
Analyze Image
OpenAI
Download Audio
HTTP Request
Transcribe Audio
OpenAI
OpenAI Chat Model
OpenAI
AI Agent1
Agent
Download File
HTTP Request
Extract from File
Extract From File
Simple Memory
Memory Buffer Window
Get File Url
Whats App
Only PDF File
If
Fix mimeType for Audio
Code
Send message
Whats App
Send audio
Whats App
Incorrect format
Whats App
Text
Set
Audio
Set
Image
Set
File
Set
Not supported
Whats App
Get Image Url
Whats App
Get Audio Url
Whats App
Generate Audio Response
OpenAI
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
From audio to audio?
If
Input type
Switch
Sticky Note5
Sticky Note