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

# WhatsApp

> Send an approved WhatsApp template message from your WhatsApp Business number when a call ends.

The WhatsApp integration connects your **WhatsApp Business** account to Callin. When a call ends, your AI agent can send an approved WhatsApp template message, to the person who called or to another number. You can fill the template with data from the conversation, such as the caller’s name or the call summary.

## What you can do

* **Post-call WhatsApp messages**: send a message automatically when the call ends.
* **Approved template selection**: choose which approved template each agent sends.
* **Caller or manual recipient**: send it to the caller or to a number you type in.
* **Template variable mapping**: fill each template variable with call data or your own text.
* **Connected Business sender**: the message is sent from your connected WhatsApp Business number.

## Before you start

* You need a **WhatsApp Business** account.
* Messages are sent with **templates**. Templates are created and approved in your WhatsApp Business account, not in Callin. Callin only shows them so you can choose one.
* Only **Approved** templates can be sent.

## Create a template in WhatsApp Manager

Templates are created in **WhatsApp Manager** (Meta), in the WhatsApp Business account you connect to Callin.

**Step 1**

Open [WhatsApp Manager → Message templates](https://business.facebook.com/wa/manage/message-templates/) and click **Create template**.

**Step 2**

Choose the category and click **Next**:

* **Marketing**: promotions and offers.
* **Utility**: transactional or informative messages, such as a follow-up after a call.
* **Authentication**: verification codes.

**Step 3**

Enter the **name** (lowercase letters and underscores, for example `call_follow_up`) and the **language**.

**Step 4**

Write the message. Insert each variable (`{{1}}`, `{{2}}`…) with **Add variable**, and give an example value for each one (for example, `Marta`).

**Step 5**

Click **Submit for review**. While Meta reviews it, the template shows **Pending** in Callin.

**Step 6**

When it’s **Approved**, open the WhatsApp card in Callin and click **Refresh**. Only then can you choose it in the agent.

> [!NOTE]
>
> Meta reviews templates automatically when you create or edit them. Approval can take up to 24 hours, and so can an appeal. If a **Utility** template looks like marketing, Meta approves it as **Marketing**.

> [!WARNING]
>
> **Common mistake:** templates that get rejected. Avoid two variables in a row with no text between them, a message that is only a variable, and vague text. Write the variables with **Add variable**: if you type the braces yourself, the editor may duplicate them.

You can only edit templates that are **Approved**, **Rejected** or **Paused**.

Meta’s official guides: [Templates](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/overview), [Template review](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-review/), [Template categories](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-categorization) and [Template management](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-management/).

## Connect WhatsApp

**Step 1**

In the left menu, go to **Integrations → Actions**.

**Step 2**

On the **WhatsApp** card, click **Connect** and follow the steps to choose your WhatsApp Business account and number.

**Step 3**

When you’re done, you can close the **WhatsApp connection** window and return to Callin. The card shows **Connected**.

## Manage the connection and templates

Click the **WhatsApp** card to open its details.

![The WhatsApp details window with its description, the Templates section with the Refresh button, the list of features, the Connected status and the Disconnect button.](https://mintcdn.com/lechusai/H4OOlJKUKQvY9tFS/images/whatsapp-details.png?fit=max\&auto=format\&n=H4OOlJKUKQvY9tFS\&q=85\&s=b4a347815be7a6c7005d3b6ce470d9c6)

Screenshot: the details of the WhatsApp integration, with its templates and the Disconnect button.

* **Templates**: the templates in your WhatsApp Business account, with their status and how many variables each one has. If you have none yet, you’ll see **No templates on this account yet.**
* **Refresh**: reloads the list. Use it after you create or edit a template in WhatsApp.
* **Disconnect**: removes the connection. Agents can’t send WhatsApp messages until you connect again.

Template statuses come from WhatsApp: **Approved**, **Pending**, **Rejected**, **Paused**, **Disabled** and **In appeal**. Only **Approved** templates can be chosen in an agent.

## Send a WhatsApp message after the call

Turn it on in each agent that should send the message.

**Step 1**

Open the agent and go to the **Call Action** tab.

**Step 2**

Turn on **WhatsApp after the call**. The **WhatsApp after the call** panel opens.

**Step 3**

In **Sender**, choose the WhatsApp number the message is sent from.

**Step 4**

In **Template**, choose an approved template.

**Step 5**

In **Recipient**, choose who gets the message:

* **The caller**: the person who just called.
* **Another number**: a number you type in, in international format (for example, `+14155552671`).

**Step 6**

If the template has variables, fill them in under **Template variables**.

**Step 7**

Click **Save**.

![The WhatsApp after the call panel with the Sender, Template and Recipient fields, and the options The caller and Another number.](https://mintcdn.com/lechusai/H4OOlJKUKQvY9tFS/images/whatsapp-agent-panel.png?fit=max\&auto=format\&n=H4OOlJKUKQvY9tFS\&q=85\&s=66c56f48f9a88dcd70decb7ecf4a8e95)

Screenshot: the WhatsApp after the call panel in the Call Action tab of an agent.

### Template variables

For each variable in the template, choose what fills it:

* **Caller number**
* **Caller name**
* **Agent name**
* **Call summary**
* **Custom text**: a fixed text you type in.

If the template has an image, video or document at the top (header), paste a **public https link** to the file. WhatsApp puts this file at the top of the message after every call.

## Troubleshooting

### The agent says “Connect WhatsApp first”

WhatsApp isn’t connected yet. Click **Connect in Integrations** and connect your WhatsApp Business account.

### “WhatsApp needs to be connected again”

The connection has expired or was removed. Templates can’t load until WhatsApp is connected again. Go to **Integrations → Actions** and connect WhatsApp again.

### The template I need isn’t in the list

* Check in your WhatsApp Business account that the template is **Approved**.
* Open the WhatsApp card in **Integrations → Actions** and click **Refresh**.

### The agent can’t be saved

Check the messages under each field:

* **Choose an approved WhatsApp template**: pick a template.
* **Enter the WhatsApp number in international format**: type the number with `+` and the country code.
* **Enter the custom text for each WhatsApp template variable**: fill in every variable set to **Custom text**.
* **Paste a public https link for the template header**: add the link to the header file.


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