Skip to navigation

Getting started

Connect your WhatsApp number to an agent and send your first outbound message

What you’ll build

By the end of this guide, your agent answers WhatsApp text messages and voice notes on your business number, and you have sent one API-initiated template message. Expect about 20 minutes, plus a short wait for Meta to approve your first template.

Before you start

You need:

1

Import your WhatsApp business account

Go to the Channels → WhatsApp and click the Import account button. This opens Meta’s authorization flow, where you select (or create) the WhatsApp business account and phone number and grant ElevenLabs permission to manage it:

WhatsApp authorization flow
2

Assign your agent and choose behaviors

Open WhatsApp account details for the imported number. Assign an agent — until you do, inbound messages are ignored and inbound calls are rejected:

WhatsApp account details with the assigned agent and number settings

Configure how the agent behaves on this number (see account settings for the full reference):

  • Enable messaging — whether the agent responds to messages at all. Turn it off if another system handles messages and ElevenLabs should only handle calls.
  • Enable audio message response — when on, the agent answers voice notes with voice notes in its own voice; when off, it always replies with text.
  • Enable typing indicator — when on, the agent marks incoming messages as read and shows a typing indicator while it works.
3

Have your first conversation

Message your business number from a personal phone. The agent replies. Send a voice note — it is transcribed for the agent, and the agent responds with a voice note of its own:

WhatsApp text conversation

The conversation appears in your conversation history as it happens.

New agents default to ending WhatsApp text conversations after inactivity (15 minutes by default) or when the agent ends the chat. For existing agents, check End only on inactivity to see whether the maximum duration also applies.

4

Send your first outbound message

Reaching a user first requires a Meta-approved message template — WhatsApp only allows free-form business messages inside an active conversation. Create a simple Utility template in WhatsApp Manager, for example:

Hi {{name}}, thanks for signing up. Reply here if you have any questions.

Once the template is approved, send it:

from elevenlabs import ElevenLabs
elevenlabs = ElevenLabs()
elevenlabs.conversational_ai.whatsapp.outbound_message(
whatsapp_phone_number_id="524029457612345",
whatsapp_user_id="12213231492",
template_name="welcome",
template_language_code="en",
template_params=[
{
"type": "body",
"parameters": [
{"type": "text", "parameter_name": "name", "text": "Daniele"}
],
}
],
agent_id="agent_9201kwcrbq9qfxaa2t8nnnkqf2w9",
)

Two details matter here:

  • template_params is a list of component objects — the {"type": "body", ...} wrapper is required.
  • Use the recipient’s WhatsApp ID. For a phone-based ID, include the country code and digits only. For a business-scoped user ID (BSUID), copy it exactly as received.

Find your whatsapp_phone_number_id on the Channels → WhatsApp via the account menu’s Copy phone number ID option.

Your phone receives the template. Reply to it — the agent picks up the conversation from there.

Find a WhatsApp conversation

In conversation history, open Filters → Agent phone number → WhatsApp and select the business number.

Filters menu open to Agent phone number, WhatsApp, and the available business numbers

Open a conversation and check Metadata. WhatsApp account identifies your business number. WhatsApp user identifies the customer. For an outbound send, the returned conversation_id identifies the exact conversation.

Conversation details with the WhatsApp account and WhatsApp user

To list conversations for one business number through the API, pass its phone number ID as whatsapp_phone_number_ids:

from elevenlabs import ElevenLabs
elevenlabs = ElevenLabs()
page = elevenlabs.conversational_ai.conversations.list(
whatsapp_phone_number_ids="524029457612345",
)
for conversation in page.conversations:
print(conversation.conversation_id)

If something didn’t work

  • The agent never replies: no agent is assigned to the number, or Enable messaging is off. If those look right, check whether the agent requires dynamic variables — an inbound WhatsApp conversation starts with no user-provided values, so an agent whose tools or first message require one fails before replying unless a conversation initiation webhook supplies it. See initialization context.
  • The import fails: the number is already registered with another provider or the WhatsApp Business app.
  • The API returned 200 but no message arrived: look up the returned conversation ID and check the opening message’s delivery status.
  • The user’s reply started a separate conversation without context: the recipient ID format was off — see recipient number format.

For everything else, see Troubleshooting & FAQ.

Next steps