AI-powered WhatsApp for text, audio, images and PDFs
Workflow Description
An intelligent automation that receives WhatsApp messages—text, audio, images, and PDFs—and processes them using an AI agent powered by OpenAI, maintaining conversation context through memory buffers for continuous, aware interactions.
How it works
- 1.Trigger on incoming WhatsApp messages in all formats
- 2.Extract content from files and transcribe audio to text
- 3.Process data through an OpenAI-backed AI agent
- 4.Maintain conversation history and short-term memory context
- 5.Send intelligent replies back to WhatsApp
Use cases
- Autonomous customer support responding to multi-format inquiries without human intervention
- Document processing that recognizes, extracts, and summarizes invoices, contracts, and files
- Contextual assistant that remembers previous exchanges and delivers relevant, coherent responses
Requirements
- Active OpenAI account with valid API key
- WhatsApp Business account or WhatsApp connection in n8n
- Sample PDFs, images, or voice messages for testing the pipeline
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