# Build a WhatsApp AI support agent (/docs/guides/whatsapp-support-agent)

> Bring the same agent to WhatsApp through your own Meta app. Covers the 24-hour customer service window, Meta's per-message charges, verification and confirmations in chat, bookings, hand-over and a test script.

Type: guide | Status: beta | Last reviewed: 2026-11-21 | Minimum role: admin

<Callout type="info">The WhatsApp channel is in beta. It connects through your own Meta app, so your number, messages and approvals stay yours.</Callout>

**Goal:** answer customers on WhatsApp with the same knowledge, instructions and workflows as your website chat.

This guide is for businesses whose customers already message them on WhatsApp. You need the **Admin** role in Loopwix and admin access to your Meta business. Allow an hour for a test number, longer for a real number.

## How do I build an AI support agent for WhatsApp? [#how-do-i-build-an-ai-support-agent-for-whatsapp]

Finish and test your agent on the website chat first. Then create a Meta app with the WhatsApp product and connect it in the agent's Channels section. Try it in test mode with a few numbers, then go live with a verified number. The agent answers with the same knowledge and workflows. WhatsApp is in beta.

## What you need [#what-you-need]

- An agent already tested on the website chat. See [Turn your help center into an AI agent](/docs/guides/support-agent-from-your-help-center).
- A Meta business account and a Meta app with the **WhatsApp** product. A test number is free and instant.
- For a real number: Meta business verification and an approved display name.
- A payment method in Meta, because Meta charges for the messages you send.

## Steps [#steps]

1. **Finish the agent first.** Knowledge, instructions and workflows should already work on the website chat.
2. **Create the Meta app and a permanent token.** Follow [Connect WhatsApp](/docs/channels/whatsapp). Use a system user token that never expires, not the 24-hour one.
3. **Connect in Loopwix.** Open the agent, select **Channels**, then **WhatsApp**. Paste the **Phone number ID**, **Access token** and **App secret**, and select **Save and continue**.
4. **Set the webhook in Meta.** Paste the **Callback URL** and **Verify token** that Loopwix shows. Subscribe to the **messages** field.
5. **Turn on test mode.** Add the phone numbers of your testers. They get answers from your latest draft, and nobody else does. See [Messaging channel setup](/docs/channels/messaging-channel-setup).
6. **Choose what customers may send.** Photos, documents and voice notes are off by default. Turn them on under **Settings → Photos and files** on the connection.
7. **Go live.** Complete Meta's business verification, switch to your real number, set the Meta app to **Live**, and [publish the agent](/docs/agents/publish).

<Screenshot src="/media/agents/tab-channels.png" alt="The agent's Channels section with website chat and the messaging apps" caption="Connect WhatsApp from the agent's Channels section" captured="2026-11-02" />

<Screenshot src="/media/channels/whatsapp-setup.png" alt="The WhatsApp setup sheet with the step-by-step guide and the Phone number ID, Access token and App secret fields" caption="The WhatsApp setup sheet" captured="2026-11-22" />

## What is the 24-hour window? [#what-is-the-24-hour-window]

WhatsApp lets a business reply freely for 24 hours after the customer's last message. After that, Meta only allows pre-approved template messages. Loopwix does not send template messages today. So once the window closes, nobody can reply until the customer writes again. The Inbox shows when the window has closed.

Each new message from the customer opens a fresh 24-hour window. Answer quickly, and ask your team to reply to hand-overs inside the window. [WhatsApp costs and rules](/docs/channels/whatsapp-costs-and-rules) explains the window, templates and opt-in in more detail.

## What does WhatsApp cost? [#what-does-whatsapp-cost]

Meta charges your Meta account for messages you send, by message category, and prices differ by country. Meta changes its prices and free allowances from time to time. Check [Meta's pricing page](https://developers.facebook.com/docs/whatsapp/pricing) before you launch, and again each quarter.

## How do customers verify on WhatsApp? [#how-do-customers-verify-on-whatsapp]

A WhatsApp number is never treated as proof of who someone is. When a customer asks for something private, such as an order, the agent asks for their email. Loopwix emails a 6-digit code, and the customer types it into the chat.

The code never reaches the AI model or your transcripts. The transcript shows "[verification code]" instead. The customer can reply RESEND for a new code, or CANCEL to skip. Without verification, the agent still answers general questions.

## What does a WhatsApp conversation look like? [#what-does-a-whatsapp-conversation-look-like]

An example of an order question, shortened. The fixed lines come from Loopwix; the rest follows your instructions.

> **Customer:** Hi, where is my order 1042?
>
> **Agent:** To continue I need to verify your email address first. What's your email? (Reply CANCEL to skip.)
>
> **Customer:** sam@example.com
>
> **Agent:** I've sent a 6-digit code to sam@example.com. Reply with it here. (Reply RESEND for a new code.)
>
> **Customer:** 482913
>
> **Agent:** Thanks, you're verified. Let me pick up where we left off. Order 1042 is paid and has been fulfilled.

When an action needs a yes, such as cancelling an order, WhatsApp shows **Yes** and **No** buttons. Nothing changes until the customer taps **Yes**.

## Bookings on WhatsApp [#bookings-on-whatsapp]

The [booking agent](/docs/guides/booking-agent) works on WhatsApp as it does on the website. In Calendly mode, the customer gets a link and picks a slot in their browser. In Records mode, the request is saved as Pending for your staff. Your staff's confirmation must reach the customer within the 24-hour window, or by email.

## Hand-over to a person [#hand-over-to-a-person]

Hand-over is switched on by Loopwix on request; see [Set up escalation](/docs/inbox/set-up-escalation). Once it is on, a hand-over creates a ticket in the [Inbox](/docs/inbox) marked as WhatsApp. Your team replies from the Inbox, and the reply arrives in the customer's WhatsApp chat. Replies are blocked once the 24-hour window has closed.

## Opt-outs [#opt-outs]

A customer who sends "STOP" or "unsubscribe" gets one confirmation and no more messages. Sending "START" subscribes them again. See [WhatsApp costs and rules](/docs/channels/whatsapp-costs-and-rules#how-do-opt-outs-work).

## Test script [#test-script]

Run these from a tester's phone while test mode is on, then again after you go live.

| Ask | Expect |
|---|---|
| A normal question | The same answer as on the website |
| A question about the customer's own order | A request for their email, then a code |
| A wrong code | A message with the tries left, and no order details |
| "Cancel my order" after verifying | **Yes** and **No** buttons, then the result |
| A photo or voice note | Read if files are on, or a polite request to type |
| "Talk to a person" | A ticket in the Inbox marked WhatsApp (once hand-over is on) |
| "STOP", then "START" | The unsubscribe reply, then "Welcome back! How can we help?" |
| A message from a number not on the test list | One short "not available yet" reply a day |

### Can I use my existing WhatsApp number?

Yes, if you move it to the WhatsApp Business Platform in Meta. A number used in the WhatsApp app must be registered with the platform first. Meta's [WhatsApp Business Platform docs](https://developers.facebook.com/docs/whatsapp/cloud-api) explain the options for your number.

### What happens after 24 hours?

The window closes. The agent and your team cannot message the customer until they write again, because Loopwix does not send templates today. Their next message opens a new window.

### Do I need Meta business verification?

Not to test. A Meta test number works at once with up to five recipient numbers. To use your own number with customers, Meta asks for business verification and reviews your display name.

### Which WhatsApp providers does Loopwix support?

Loopwix connects directly to Meta's WhatsApp Cloud API, with your own Meta app and token. Other messaging APIs, such as Twilio's, are not supported.

## Next steps [#next-steps]

- [Connect WhatsApp](/docs/channels/whatsapp) for every setup step and fix.
- [WhatsApp costs and rules](/docs/channels/whatsapp-costs-and-rules) for templates, the 24-hour window and opt-in.
- [Messaging channel setup](/docs/channels/messaging-channel-setup) for test mode, Activity and credentials.
