> ## Documentation Index
> Fetch the complete documentation index at: https://cntillion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started with WhatsApp

> Import a WhatsApp Business number, assign an agent, have your first conversation and send your first template, in about 20 minutes.

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

## Before you start

You need:

* A Centillion agent. Any agent works; see [Create an agent](https://cntillion.com/docs/agents/create-an-agent.md).
* A [Meta business portfolio](https://business.facebook.com/) you can administer.
* A phone number for WhatsApp. It can be a new number, or one your team
  already uses in the WhatsApp Business app: you can keep using the app on
  it. A number registered with another WhatsApp provider cannot be imported
  until that provider releases it; see
  [Troubleshooting](https://cntillion.com/docs/channels/whatsapp/troubleshooting.md#import-problems).
* A payment method in
  [WhatsApp Manager](https://business.facebook.com/latest/whatsapp_manager/)
  if you plan to send templates or make calls. Meta bills those directly.

**1. Import your WhatsApp business account**

In the workspace sidebar open **Deploy → Channels**, choose **WhatsApp**,
then **Import account**. Meta's sign-up opens: select or create the
WhatsApp business account and number, and let Centillion manage it. If
your team uses the WhatsApp Business app on the number, leave **Keep using
the WhatsApp Business app** on.

**2. Assign your agent and choose its behaviour**

Click the imported account to open **WhatsApp account details**, and pick
your agent in the **Agent** card. Until you do, incoming messages are not
answered.

The **Settings** card has three switches, all on by default:

* **Enable messaging**: whether the agent answers messages at all. Turn it
  off when another system handles messages on this number.
* **Enable audio message response**: the agent answers a voice note with a
  voice note, in its own voice. Off, it always answers in text.
* **Enable typing indicator**: the agent marks each message as read and
  shows that it is typing while it prepares the reply.

See [account settings](https://cntillion.com/docs/channels/whatsapp.md#account-settings) for details.

**3. Have your first conversation**

Message the number from your own phone. The agent replies. Send a voice
note: it is transcribed for the agent, and the agent answers with a voice
note of its own. The conversation appears on the agent's **Conversations**
page as it happens.

> [!NOTE]
>
> A WhatsApp conversation ends when the agent uses the **End conversation**
> tool, when the agent's **Max conversation duration** passes, or 15
> minutes after the last message from your side. The customer's next
> message starts a new conversation, on the agent's current published
> version, and the agent still sees the earlier messages of the chat. See
> [message conversations](https://cntillion.com/docs/channels/whatsapp.md#message-conversations).

**4. Send your first template**

WhatsApp only lets a business write first with a Meta-approved
**template**. Create a simple Utility template in
[WhatsApp Manager](https://business.facebook.com/latest/whatsapp_manager/message_templates),
for example:

```text theme={null}
Hi {{name}}, thanks for signing up. Reply here if you have any questions.
```

Once Meta approves it, open the account's details, choose **Outbound →
Message**, enter your own WhatsApp number with its country code, pick the
template, fill in `name`, and choose **Send Message**. The first time, you
agree to the [WhatsApp outbound terms](https://cntillion.com/docs/channels/whatsapp/outbound.md#outbound-terms).

Or send it with the API, giving the agent the values it needs when you
reply:

```bash theme={null}
curl -X POST https://app.cntillion.com/api/v2/agents/$AGENT_ID/whatsapp/messages/template \
  -H "Authorization: Bearer $CENTILLION_API_KEY" \
  -H "Idempotency-Key: first-template-1" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+14155552671",
    "template": { "name": "welcome", "language": "en" },
    "variables": { "body": { "name": "Daniela" } },
    "dynamicVariables": { "first_name": "Daniela" }
  }'
```

Your phone receives the template. Reply to it: the agent picks up the
conversation from there, with the template in view.

## If something didn't work

* **The agent never replies**: no agent is assigned to the number, or
  **Enable messaging** is off. See
  [the agent doesn't respond](https://cntillion.com/docs/channels/whatsapp/troubleshooting.md#the-agent-doesnt-respond).
* **The import fails**: the number is registered with another provider; see
  [import problems](https://cntillion.com/docs/channels/whatsapp/troubleshooting.md#import-problems).
* **The template was accepted but never arrived**: it isn't approved yet, a
  parameter doesn't match, or the WhatsApp business account has a payment
  problem. See
  [accepted but not delivered](https://cntillion.com/docs/channels/whatsapp/troubleshooting.md#accepted-but-not-delivered).

## Next steps

> [card] [Outbound messages and templates](https://cntillion.com/docs/channels/whatsapp/outbound.md)
>
> Templates, variables, calls and campaigns.

> [card] [Interactive messages](https://cntillion.com/docs/channels/whatsapp/interactive-messages.md)
>
> Let the agent offer tappable choices.

> [card] [WhatsApp tools](https://cntillion.com/docs/channels/whatsapp/tools.md)
>
> Send a WhatsApp template from any channel, calls included.

> [card] [Personalization](https://cntillion.com/docs/agents/personalization.md)
>
> Variables and the initiation webhook on WhatsApp.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.