---
title: "Send notifications to WhatsApp"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/integrations/whatsapp/outbound-notifications/
type: task
application: integration_whatsapp
last_updated: 2026-10-18
commit: 5ea5eb0dd83d
---


Send outbound notifications through WhatsApp when requesters should get record updates on their phones. You end with a notification that sends an approved WhatsApp template, and replies that come back to the record.

## Before you begin

- You need the `administrator` role in Servicely and access to the WhatsApp Business Account in Meta.
- Complete [Connect Sofi to WhatsApp](page:integrations/whatsapp/connect-sofi) up to **Test Connection**, so the **WhatsApp** messaging account holds the phone number ID and access token.
- Make sure each recipient's user record has **Mobile** set to their number in international form without the plus sign.
- Know which outbound notification should also send to WhatsApp.

## Steps

<Steps>
  <Step>
    In the WhatsApp Business Account, create a message template and wait for Meta to approve it. Note its name, its language code and the order of its header, body and button variables.
  </Step>
  <Step>
    In Servicely, go to **Administration → Messaging → Messaging templates** and select **New**. Enter a **Name** and set **Provider Type** to **WhatsApp**.
  </Step>
  <Step>
    Set **Subtype** to **Business Initiated Template**. Enter the Meta template name in **Template Provider Id**.
  </Step>
  <Step>
    In **Mapping Script**, set `answer` to the language and the values for each template variable, in the order the template defines them. The example below follows the shipped template. Save.
  </Step>
  <Step>
    Go to **Administration → Messaging → Outbound notifications** and open the notification.
  </Step>
  <Step>
    On the **Providers** tab, select **New** under **Provider configurations**. Set **Provider type** to **WhatsApp** and select the template. Save.
  </Step>
  <Step>
    Check that the notification is **Active** and save it.
  </Step>
</Steps>

```javascript
answer = {
    language: language,
    header: [title],
    body: [recordNumber, description, sender, update],
    button: [{url: relativeLink}]
}
```

The shipped template "Work - with Summary & Client Journal" has a WhatsApp variant. Its **Mapping Script** describes the matching Meta template: a header, a body with the record number, description, sender and update, and a website button. Replace its **Template Provider Id** with your approved template's name before you use it.

<Callout type="info">
  Meta allows a free-form reply only within 24 hours of the user's last message. A notification usually reaches a requester outside that window, so it must use a **Business Initiated Template** that Meta has approved. Use the **Text** subtype and **Text Template** only for messages sent inside the window.
</Callout>

## Result

When the notification fires, Servicely sends the template to each recipient's **Mobile** number from the WhatsApp messaging account. Each sent message is stored as a WhatsApp message linked to the record. When a recipient replies to the notification in WhatsApp, Servicely matches the reply to that record and processes it as an inbound message.

A message that does not reply to a notification goes to the Sofi assistant instead. The application property `whatsapp_outbound_notification.autoreply.unlinked_message` holds the ID of the messaging template used to answer messages that are not linked to a record.

## Related

- [Connect Sofi to WhatsApp](page:integrations/whatsapp/connect-sofi)
- [Outbound notifications](page:messaging/outbound-notifications)
- [Create an outbound notification](page:messaging/create-an-outbound-notification)
- [Notification recipients and content](page:messaging/notification-recipients-and-content)
