Skip to main content
A WhatsApp agent is an assistant whose type is WhatsApp. It answers the messages that arrive on its attached WhatsApp number. Create one after you’ve connected WhatsApp Business and registered at least one number.

Create the agent

1

Start a new assistant

Go to Assistants and select Create agent. In Create Assistant, choose the WhatsApp tab.
2

Pick Single Prompt

Under Create from scratch, choose Single Prompt, described as “Create a WhatsApp assistant from scratch for simple workflows”. This template’s prompt already carries the WhatsApp formatting rules.
3

Fill in the basics

Enter the Agent Name and the Primary Language, with an optional Secondary Language. The form also asks you to pick a voice, since every assistant carries one. A WhatsApp agent never speaks, so any voice will do. Select Next.
4

Describe the business and the goal

Enter Company and Call Details: what the business is and what the agent should achieve in the chat. These are used to generate the first version of the prompt. Add any Custom variables and Knowledge Base the agent needs.
5

Select the WhatsApp number

Under Select WhatsApp Number, pick the registered number this assistant answers on. Only registered numbers that no other assistant uses are listed. You can also leave it empty and attach a number later.
6

Create

Select Create Assistant. The agent editor opens, with a WhatsApp badge next to the agent name.

Assistants → Create agent → WhatsApp → Single Prompt, through to selecting the WhatsApp number.

To find your WhatsApp agents later, set the Channels filter on the Assistants page to WhatsApp. Each card shows its channel, for example “WhatsApp • Activity: 3”.

Attach a WhatsApp number

A WhatsApp agent answers on exactly one WhatsApp Business number, and each number serves one assistant at a time. Messages to a number with no assistant attached get no reply. A number is offered only when all of these are true:
It belongs to the WhatsApp Business account connected to this workspace.
It is registered, meaning it shows Ready on the account’s Phone numbers tab. See Connect WhatsApp Business.
No other assistant uses it, or this assistant already does.
You can pick the number while creating the agent, as in the steps above. To attach or change it later:
1

Open Attach Number

In the agent editor, select Attach Number in the left menu.
2

Choose the number

Open the WhatsApp Number field and choose a number. The current number is marked with a check. The field saves as soon as you choose.
3

Need another number?

The last option, + Connect WhatsApp Number, opens Numbers → WhatsApp, where you can add and register a new number.

Attach Number lists the WhatsApp numbers this agent can use. Test assistant then opens a chat with it.

To move a number to another agent, first clear the WhatsApp Number field on the agent that has it, or pick a different number there. Then attach it on the new agent. Numbers → WhatsApp shows which assistant uses each number in its Used By column. WhatsApp numbers are only offered to WhatsApp assistants, and phone numbers only to voice assistants.
De-registering a number, or archiving it, detaches it from its assistant. That assistant stops answering until you attach another number.

What’s different in the editor

The editor is the same one used for voice assistants, with a few changes for chat:

When a chat opens and closes

A WhatsApp conversation is one chat. The customer’s first message opens it, and it stays open while messages keep flowing. It closes when any of these happens: Closing the chat is what runs post-call tools and analysis and fires the chat_completed webhook. So if a customer simply stops replying, those results can arrive hours later.
The timeouts under Chat → Settings (maximum length and idle warning/end) apply to text chat in the web widget. WhatsApp chats follow the rules above instead.

Write a prompt for WhatsApp

Keep replies short, one to three small paragraphs. WhatsApp hides long messages behind “Read more”.
Use WhatsApp formatting only: *bold*, _italic_, ~strike~, and lines starting with - or 1. for lists.
Never use Markdown headings, tables or [label](url) links. Send the bare URL and WhatsApp turns it into a link.
Don’t mention calls, audio, holding or keypad input. The customer is typing.
Mention every on-call tool with @ at the point in the prompt where it should be used.

Test from your phone

Select Test assistant in the editor’s top bar. A QR code for the attached number appears with Scan to start a WhatsApp chat. Scan it with your phone’s camera, or use Open in WhatsApp, and send a message. Your conversation appears under Logs → WhatsApp like any other. The recording under Attach a WhatsApp number ends on this QR code. If no number is attached you’ll see No number attached. Attach one, then reopen Test assistant.