AI that chats with customers directly on WhatsApp: answering questions and taking orders automatically.
All 2 case studies in this section follow in full.
WhatsApp Voice & Business Agent with n8n
An AI-powered WhatsApp assistant that understands voice notes, text messages, and photos, then answers customer questions using product information stored in Supabase.
Section: n8n Automations, AI Agents for WhatsApp
Overview
This project is a WhatsApp business assistant for an online store. Customers can send a voice note, text message, or product photo and receive an answer based on the storeβs product database. The system uses n8n to process incoming messages, OpenAI to understand different input types, and Supabase to retrieve product information. When a customer sends a voice note, the assistant can respond with a voice message. Conversation memory also helps maintain context across messages from the same customer.
The business problem
Online stores receive repeated questions about product availability, prices, and delivery. Customers may ask these questions through text, voice notes, or photos, making them difficult for simple chatbots to handle. Manual replies take time, while inaccurate answers about prices or stock can reduce customer trust.
How It Works
- Receive WhatsApp Messages: The WhatsApp Business Cloud API receives customer messages, including text, voice notes, and photos.
- Identify Message Type: n8n checks the incoming message and routes it to the correct processing path.
- Process Voice and Images: OpenAI transcribes voice notes and analyzes product photos. Text messages are passed through directly.
- Prepare the Message: n8n converts each input into a common text format and associates it with the customer's phone number.
- Retrieve Product Information: The AI agent uses the Supabase product database to find relevant information before preparing an answer. Conversation memory helps it maintain context.
- Send the Response: Text messages receive text replies. When the customer sends a voice note, the answer is converted into speech and returned as a WhatsApp voice message.
The Result
The completed workflow brings voice, text, and image-based customer enquiries into one WhatsApp assistant. It retrieves product information from Supabase before answering, supports both text and voice replies, and maintains conversation context for each customer.
Workflow Delivery Metrics
| Metric | Result |
|---|
| n8n nodes after cleanup | 21 |
| Supported input types | 3 |
| Reply formats | 2 |
| AI models used | 4 |
| Main agent workflows | 1 |
| Workflow defects fixed | 2 |
Note: These figures describe the delivered workflow. Live customer response time, answer accuracy, and sales conversion have not yet been measured.
Tech Stack
- n8n: Connects the services and manages the message-processing workflow.
- WhatsApp Business Cloud API: Receives customer messages, downloads media, and sends replies.
- OpenAI: Transcribes voice notes, analyzes images, generates answers, and converts replies into speech.
- Supabase: Stores product information and provides a searchable knowledge source for the AI agent.
- Shopify: Relevant to the planned extension for product and order-related functionality; order lookup and replacement-order creation are not part of the current workflow.
Where This Pattern Applies
- E-commerce Stores: Answer product questions about prices, availability, and product details.
- Retail Businesses: Help customers identify products through photos and ask questions through voice or text.
- Customer Support Teams: Handle common enquiries and pass complex issues to human support.
- Online Service Providers: Provide customers with a WhatsApp-based assistant for frequently asked questions.
This pattern is useful for businesses that receive customer enquiries through WhatsApp and want to automate responses while keeping answers connected to reliable business data.
Page Β· Plain text
AI-Powered Whatsapp message Assistant
An AI-powered WhatsApp assistant that automates customer support through text, voice, and image understanding, delivering instant, knowledge-based responses 24/7.
Section: n8n Automations, AI Agents, AI Agents for WhatsApp, AI Agents for Ecommerce
01.Project Overview
The AI-Powered WhatsApp Message Assistant is an intelligent customer support solution built with n8n, OpenAI, WhatsApp, and Supabase. It automates customer conversations by understanding text, voice messages, and images, then generating relevant responses based on business knowledge.
Using AI-powered processing and semantic search, the assistant delivers consistent, context-aware support around the clock, reducing repetitive manual work and allowing human agents to focus on more complex customer inquiries.
02. The Problem: WhatsApp Customer Support Didnβt Scale
Before automation, customer support over WhatsApp was entirely manual and increasingly difficult to manage.
Staff had to respond to every message individually, including repetitive questions about products, prices, availability, and store policies. Voice messages required manual listening and interpretation, while image-based questions, such as product photos, needed human review. Responses varied depending on the staff member, and support was unavailable outside business hours.
For a small business receiving 80β120 WhatsApp messages per day, this resulted in:
- High Manual Workload: 4β6 hours per day spent answering routine questions.
- Delayed Responses: Longer waiting times during peak hours.
- Missed Inquiries: Customer messages going unanswered outside working hours.
- Staff Dependency: Heavy reliance on trained employees with product knowledge.
- Inconsistent Support: Different responses depending on who handled the conversation.
Core Challenge: WhatsApp was the main customer communication channel, but human-only support could not keep up with demand without increasing headcount.
03. Results After Automation
After deploying the WhatsApp AI Business Assistant:
- 70β85% of incoming queries were handled automatically.
- Customers received instant replies, including outside business hours.
- Voice messages were transcribed and answered automatically.
- AI understood image-based queries involving products and issues.
- Responses became more consistent, accurate, and aligned with business policies.
- Human agents focused on complex or exceptional conversations.
Time and Workload Impact
Before Automation
- Approximately 3β4 minutes per WhatsApp message.
- Around 100 messages per day required approximately 5β6 hours of support time.
After Automation
- Human involvement was limited to approximately 15β30 messages per day.
- Manual support time decreased to around 1β1.5 hours per day.
Estimated Time Savings
- 3β4 hours saved per day.
- 90β120 hours saved per month.
This allowed the business to scale WhatsApp support without hiring additional staff.
04. The Solution: An AI Assistant Inside WhatsApp
The system acts as a virtual support agent directly within WhatsApp.
- Understands text, voice messages, and images.
- Maintains conversation context.
- Retrieves relevant business knowledge instantly.
- Generates natural, context-aware responses.
- Supports text or voice replies when appropriate.
Customers receive fast, helpful support without needing to change how they communicate with the business.
05. How the System Works
- Customer Message: Customers contact the business through WhatsApp.
- Message Understanding: AI identifies the message type and intent.
- Knowledge Retrieval: Relevant business information is retrieved using semantic search.
- Response Generation: AI generates a context-aware answer based on the available information.
- WhatsApp Reply: The response is delivered automatically to the customer.
The workflow processes messages automatically within seconds.
06. Business Value
- Reduced Manual Workload: Automates repetitive customer support tasks.
- Faster Responses: Helps customers receive timely answers.
- Consistent Communication: Maintains more uniform, policy-aligned responses.
- Multilingual Support: Handles conversations in different languages.
- 24/7 Availability: Supports customers beyond regular business hours.
- Seamless Experience: Customers continue using WhatsApp as usual.
07. Reliability and Safety
- Business-Grounded Answers: Uses available business knowledge to guide responses.
- Graceful Fallbacks: Handles unclear information without relying on unsupported answers.
- Data Boundaries: Does not process payments or sensitive data.
- Human Escalation: Complex cases can be directed to human agents when escalation is configured.
These measures help maintain reliable, consistent, and responsible customer support.
08. How to Replicate the System
The solution uses the WhatsApp Cloud API, n8n, OpenAI, and Supabase Vector Store.
Step 1: Set Up WhatsApp Cloud API
Configure the WhatsApp Business account, phone number ID, and webhook events for incoming messages.
Ensure the integration supports receiving text, voice, and image messages and sending text or audio replies.
Step 2: Create the WhatsApp Webhook in n8n
- Create a Webhook Trigger node in n8n.
- Copy the generated webhook URL.
- Add the URL to the Meta WhatsApp Webhooks configuration.
This connects incoming WhatsApp messages to the automation workflow.
Step 3: Import the n8n Workflow
Create a new workflow in n8n and import the provided file:
AI-Powered WhatsApp Assistant.json
Step 4: Connect AI and Data Services
OpenAI
- Add the OpenAI API key.
- Configure the chat model, audio transcription, image analysis, and text-to-speech capabilities.
Supabase Vector Store
- Add the Supabase project URL and API key.
- Verify that the vector table contains products, FAQs, policies, and business information.
This enables retrieval-augmented generation (RAG) for business-grounded responses.
Step 5: Configure Message Routing
Open the Switch node and verify the routing rules:
- Text: Text message β AI Agent
- Voice: Voice message β Transcription β AI Agent
- Image: Image message β Image Analysis β AI Agent
This separates message-processing paths according to the input type.
Step 6: Test the Workflow
Send test messages through WhatsApp, including:
- A text question, such as a product inquiry.
- A voice message.
- An image, such as a product photo.
Verify correct intent detection, relevant answers from business knowledge, successful WhatsApp replies, and voice responses when triggered.
Step 7: Activate the Workflow
Switch the n8n workflow to Active after testing and validating the integrations.
The assistant can then respond to customer messages automatically through WhatsApp.
09. Final Outcome
With the WhatsApp AI Business Assistant deployed:
- Customer support became faster and more reliable.
- Staff could focus on higher-value conversations.
- Customers received timely, relevant assistance.
- Support could scale with business growth without proportionally increasing manual workload.
The system transformed WhatsApp from a manual support burden into an always-on, AI-powered customer assistant.
Page Β· Plain text