# AI Agents for WhatsApp

> AI that chats with customers directly on WhatsApp: answering questions and taking orders automatically.

Page: https://showcase.growlyze.cloud/tag/ai-whatsapp

2 case studies in full below.

# WhatsApp Voice & Business Agent with n8n

> Turning customer voice notes, photos and text messages on WhatsApp into instant, database-backed answers through an n8n workflow.

Section: n8n Automations, AI Agents for WhatsApp

Page: https://showcase.growlyze.cloud/case/whatsapp-voice-business-agent

## Overview

This project is a WhatsApp business assistant for an online store. Customers write, speak or send a photo, and the workflow replies on WhatsApp with facts taken from the store’s Supabase product database, answering by voice when the customer used voice. It runs on n8n cloud with OpenAI models and replaces manual answering of repetitive product questions.

### The business problem

Store owners answer the same questions all day: is this in stock, what does it cost, how long is delivery. Customers send these as voice notes, typed messages or screenshots of a product, so a simple keyword bot cannot read them. Slow replies lose sales, and a bot that guesses prices or stock damages trust.

### The solution

An n8n workflow receives every WhatsApp message and routes it by type. Voice notes are transcribed, photos are described by a vision model, and text goes straight through. All three are normalized into one message and passed to an AI agent that must look up facts in Supabase before answering. The reply goes back as text, or as a voice note when the customer sent audio. Memory keyed on the customer’s phone number keeps the conversation connected.

### Project snapshot

| Item | Detail |
| --- | --- |
| Platform | n8n cloud |
| Channel | WhatsApp Business Cloud API |
| Input types | Voice note, text, photo |
| AI models | OpenAI transcription, GPT-4o-mini vision, GPT-4.1-mini agent, OpenAI speech |
| Knowledge base | Supabase vector store, products table |
| Workflow size | 21 nodes after cleanup (22 in the first export) |

## How the System Works

Every message passes through six stages, from the customer’s WhatsApp message to the reply, in a single n8n workflow.

| Step | Process |
| --- | --- |
| 1. WhatsApp input | The customer sends a voice note, a text or a photo. The WhatsApp Trigger node receives it. |
| 2. Routing | A Switch node checks the message type and sends it down the audio, text or image path. |
| 3. Media handling | Voice notes and photos are downloaded through the WhatsApp media API. A voice note is transcribed and a photo is described by a vision model. |
| 4. Normalizing | Edit Fields nodes turn each path into the same two fields: the message text and the customer’s phone number as session id. |
| 5. AI agent | The agent looks up facts in the Supabase products table, thinks again, and writes a short reply. It remembers the conversation by phone number. |
| 6. Reply | If the customer sent audio, the reply is converted to speech and sent as a voice note. Otherwise it is sent as text. |

**The workflow in n8n**

Image: The top branch handles voice notes, the middle branch handles text, and the bottom branch handles photos. All three meet at the AI Agent, which has its model, memory, a Think tool and the Supabase Vector Store attached. (https://showcase.growlyze.cloud/case-content/whatsapp-voice-business-agent/image1.jpg)

**Supporting integrations**

- WhatsApp Business Cloud API: receives customer messages, downloads media and sends replies.
- OpenAI: transcribes audio, describes images, runs the agent (GPT-4.1-mini) and creates the spoken reply.
- Supabase: vector store over the products table, queried by the agent as a tool.
- n8n Simple Memory: keeps recent messages per customer phone number.

## Core Workflow Configuration

The workflow is built from a handful of node groups. Each one has a single job and passes the same two fields forward, so the agent never needs to know how the message arrived.

| Node group | Configuration |
| --- | --- |
| WhatsApp Trigger | Listens for message updates from the WhatsApp Business Cloud API. |
| Switch | Three rules: audio (by mime type), text (by message type) and image (by mime type). |
| Download media + HTTP Request | Gets the media URL from WhatsApp, then downloads the file with the WhatsApp credential. Used for both audio and images. |
| Transcribe a recording | OpenAI audio transcription of the downloaded voice note. |
| Analyze image | OpenAI vision (GPT-4o-mini) on the downloaded photo, returned as a text description. |
| Edit Fields (three) | Set userMessage (the text, transcript or image description) and sessionId (the customer’s phone number). |
| AI Agent | GPT-4.1-mini with a system prompt: short WhatsApp-style replies under 80 words, one emoji at most, never guess, answer only from the database, hand complex issues to human support. |
| Simple Memory | Window memory keyed on the customer’s phone number. |
| Supabase Vector Store | Retrieve-as-tool on the products table, with OpenAI embeddings. |
| Think | A reasoning tool the agent can use before answering. |
| If | Checks whether the original message was audio. |
| Generate audio + Send voice reply | Turns the answer into speech and sends it back as an audio message. |
| Send message | Sends the answer as a WhatsApp text message. |

## Product Experience

These three mockups show how the assistant is meant to feel on the customer’s phone, one for each input type. They are illustrative designs, not screenshots of live conversations. The status messages (“Transcribing…”, “Searching our catalog…”) and the Shopify order lookup and replacement order shown in scenarios 1 and 3 are not in the current workflow and belong to a planned extension.

### Scenario 1: voice input

Image: The customer sends a voice note. The workflow transcribes it, the agent finds the answer, and the reply comes back as a voice note because the customer used voice. (https://showcase.growlyze.cloud/case-content/whatsapp-voice-business-agent/image2.jpg)

### Scenario 2: text input

Image: A typed question goes straight to the agent, which checks the product data and answers in two or three short lines, with a follow-up question to move the sale forward. (https://showcase.growlyze.cloud/case-content/whatsapp-voice-business-agent/image3.png)

### Scenario 3: image input

Image: A photo is described by the vision model, and that description is handled as the customer’s message. In the current workflow the agent matches it against the product table. Order lookup and replacement orders are future work. (https://showcase.growlyze.cloud/case-content/whatsapp-voice-business-agent/image4.jpg)

## Results & Metrics

The workflow is built and cleaned up, and no live customer data has been measured yet. The figures below describe what was delivered. Response time, accuracy and conversion numbers should be added after a pilot with real conversations.

| Metric | Result |
| --- | --- |
| Production workflows | 1 main agent workflow |
| n8n nodes | 21 after cleanup |
| Input types supported | 3: voice note, text, photo |
| Reply formats | 2: text and voice note |
| AI models used | 4: transcription, vision, agent, speech |
| Knowledge source | Supabase products table, searched by the agent as a tool |
| Workflow defects fixed | 2 (placeholder Code node, wrong message type) |
| Live response time and accuracy | Not measured yet |

## Technical Challenges & Solutions

Reviewing the exported workflow turned up problems that would have stopped it from working in production.

### Voice reply could not be sent

**Challenge**

The voice path ended in a Code node that still held the placeholder YOUR_BASE64_STRING_HERE, and the send node used the document message type.

**Solution**

Removed the Code node, connected “Generate audio” directly to the send node, renamed it “Send voice reply”, and set its message type to audio with the customer’s number as recipient.

**Outcome**

The voice path is complete from the audio message to the voice reply.

### Credentials missing after import

**Challenge**

After importing the workflow into a new n8n account, every WhatsApp, OpenAI and Supabase node showed a warning.

**Solution**

Reselect the credentials on each flagged node. For presentations, a demo copy with sample output pinned on the main-path nodes can be used.

**Outcome**

The nodes can be run green once credentials are set. A demo copy was prepared for the voice path.

### AI answers must stay factual

**Challenge**

A sales assistant that invents prices or stock levels loses customer trust.

**Solution**

The system prompt requires the agent to retrieve facts from Supabase before answering, to ask when data is missing, and to hand complex issues to human support. Replies are capped at 80 words.

**Outcome**

Answers stay short and grounded in the product table.

### Secrets inside workflow files

**Challenge**

A related Shopify workflow contains an access token written directly into its HTTP nodes.

**Solution**

Rotate the token and move it into an n8n credential before sharing or publishing that workflow.

**Outcome**

Open item, to be done by the store owner.

## Key Takeaways & Future Development

### Key takeaways

- One agent for three input types: routing by message type and normalizing to the same two fields keeps the agent simple.
- Grounded answers: forcing a database lookup before every reply is what keeps the assistant safe to put in front of customers.
- Voice in, voice out: answering in the customer’s own format makes the assistant feel natural on WhatsApp.

### Future development

- Connect Shopify so the agent can check order status and create replacement orders, as shown in the mockups.
- Add progress messages such as “Transcribing your voice message” while longer steps run.
- Hand over to a human on WhatsApp, with the conversation passed to the support team.
- Run a pilot with real customers and record response time, answer accuracy and sales conversion.
- Move secrets such as the Shopify token into n8n credentials.

---

# AI-Powered Whatsapp message Assistant

> An AI assistant inside WhatsApp that understands text, voice and images and answers from your business knowledge, 24/7.

Section: n8n Automations, AI Agents, AI Agents for WhatsApp

Page: https://showcase.growlyze.cloud/case/ecom-agent-ai-powered-whatsapp-message-assistant

### 1. The Problem: WhatsApp Customer Support Didn’t Scale

Before this automation, customer support over WhatsApp was fully manual and increasingly difficult to manage:

Staff had to reply to every WhatsApp message manually

**Repetitive questions about**

- Products
- Prices
- Availability
- Store policies
- Voice messages required listening and interpretation
- Image-based questions (e.g. product photos) needed human review
- Responses depended on who was replying, causing inconsistency
- Support was unavailable outside business hours

For a small business receiving 80–120 WhatsApp messages per day, this meant:

- 4–6 hours/day spent answering routine questions
- Delayed replies during peak hours
- Missed inquiries outside working hours
- High dependency on trained staff with product knowledge

**Core challenge**

WhatsApp was the main customer channel, but human-only support could not keep up without increasing headcount.

### 2. Results After Automation

Once the WhatsApp AI Business Assistant was deployed:

- 70–85% of incoming queries were handled automatically
- Customers received instant replies, even outside business hours
- Voice messages were transcribed and answered automatically
- Image-based queries (products, issues) were understood by AI
- Answers were consistent, accurate, and policy-aligned
- Human agents only handled complex or edge-case conversations

**Time & Workload Impact**

**Before automation**

- ~3–4 minutes per WhatsApp message
- 100 messages/day = ~5–6 hours/day

**After automation**

- Human involvement only for ~15–30 messages/day
- Manual time reduced to ~1–1.5 hours/day

**Net 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.

### 3. The Solution: An AI Assistant Inside WhatsApp

The system acts as a virtual support agent that lives directly inside WhatsApp:

- Understands text, voice, and images
- Remembers conversation context
- Searches business knowledge instantly
- Responds naturally like a human agent
- Chooses whether to reply with text or voice

Customers never feel like they’re talking to a bot, just fast, helpful support.

### 4. How the System Works

- Customers message the business on WhatsApp
- AI understands the message type and intent
- Business knowledge is retrieved using semantic search
- A context-aware response is generated
- Reply is sent instantly via WhatsApp

All of this happens automatically in seconds.

### 5. Business Value

- Major reduction in repetitive support workload
- Faster response times improve customer satisfaction
- Consistent answers across all customers
- Supports multilingual conversations naturally
- Operates 24/7 without staff availability
- No changes required to customer behavior

### 6. Reliability & Safety

- Uses verified business knowledge only
- Falls back gracefully when information is unclear
- Never processes payments or sensitive data
- Human escalation can be added anytime

This ensures trust, safety, and accuracy at scale.

### 7. How to Replicate This System

Built using WhatsApp Cloud API + n8n + OpenAI + Supabase Vector Store.

**Set Up WhatsApp Cloud API**

**Configure**

- WhatsApp Business account
- Phone number ID
- Webhook events for incoming messages

**Ensure it can**

- Receive text, voice, and image messages
- Send text and audio replies

**Create WhatsApp Webhook in n8n**

- Create a Webhook Trigger node in n8n
- Copy the webhook URL

**Paste this URL into**

Meta → WhatsApp → Webhooks configuration

This connects WhatsApp messages to the automation.

- Import the n8n Workflow
- Create a new workflow in n8n

**Import the JSON file**

**AI-Powered WhatsApp Assistant.json**

**Connect AI & Data Services**

**Configure the following nodes**

- OpenAI
- Add your OpenAI API key

**Enable**

- Chat model
- Audio transcription
- Image analysis
- Text-to-speech

**Supabase Vector Store**

Add Supabase project URL & API key

**Confirm vector table contains**

- Products
- FAQs
- Policies
- Business information

This enables accurate AI responses (RAG).

**Configure Message Routing**

Open the Switch node

**Verify routing rules**

**Text → AI Agent**

**Voice → Transcription → AI Agent**

**Image → Image analysis → AI Agent**

This keeps processing efficient and cost-effective.

**Test the Flow**

**Send test messages on WhatsApp**

- Text question (e.g., product inquiry)
- Voice message
- Image (product photo)

**Verify**

- Correct intent detection
- Accurate answers from business knowledge
- Responses returned via WhatsApp
- Voice replies work when triggered

**Enable the Workflow**

**Toggle the workflow to Active**

The assistant is now live

Customers can now chat with your AI assistant 24/7 on WhatsApp.

### 8. Final Outcome

With the WhatsApp AI Business Assistant in production:

- Customer support became faster and more reliable
- Staff focused on higher-value conversations
- Customers received instant, accurate help
- Support scaled naturally with business growth

The system transformed WhatsApp from a manual support burden into an always-on AI-powered customer assistant.
