---
title: "How to Connect WhatsApp to Loyally"
description: "Integrate WhatsApp with Loyally to send automated messages, updates, and promotions directly to your customers — using one of the world’s most popular messaging platforms."
url: https://help.loyally.ai/en/articles/112-how-to-connect-whatsapp-to-loyally
collection: "WhatsApp"
updated: 2026-09-01
language: en
---

# How to Connect WhatsApp to Loyally

Integrate WhatsApp with Loyally to send automated messages, updates, and promotions directly to your customers — using one of the world’s most popular messaging platforms.

Connect your **WhatsApp Business API** with **Loyally** to send automated messages, point updates, and loyalty offers directly through WhatsApp.  
This setup uses the **Meta (Facebook) Developer platform** to link your verified WhatsApp Business number with Loyally.

* * *

## 🧰 What You’ll Need

Before starting, make sure you have:

-   A **Facebook Business Account**
    
-   Access to [Meta for Developers](https://developers.facebook.com)
    
-   A **WhatsApp Business Account** connected to your Facebook Business Manager
    
-   A **Facebook Page** linked to the same Business Manager
    
-   Admin access in your **Loyally account**
    

* * *

## ⚙ Step 1. Create a Meta Developer App

1.  Go to [https://developers.facebook.com](https://developers.facebook.com).
    
2.  From the top-right, select **My Apps → Create App**.
    
3.  On the **App Type** screen, select **Other**.
    
4.  Then choose **Business**.
    
5.  Enter your **Application Name**, **email**, and select or create a **Business Manager**.
    
6.  Click **Create App**.
    

![](https://staticfiles.gleap.io/ghelparticle/uWTouGmBlJlxliLFlczhUF6TDpbR74Ll6DiANKgygRyufB8Ix8r8KAES41EorfmUnPHzLAMppCl.gif)

* * *

## 🧩 Step 2. Add WhatsApp Product

1.  Once the app is created, scroll down and find **WhatsApp**.
    
2.  Click **Set up**.
    
    ![](https://staticfiles.gleap.io/ghelparticle/YB6WAMAvHs8evyqBF1NKsKZclUJpn3AAg2jokKB5FTGvCEq0WjXkYL4hoVWEqx6Cnhj32FrNITX.png)
3.  On the next screen, select your **Business Profile** and click **Continue**.
    
    ![](https://staticfiles.gleap.io/ghelparticle/0MR3UnhZXWd9RMqitUzvFfYPKFjWMEx2ReHuh2jAjnfcrPQYonWpRUlHI280KGXeNJbNH6uFzlA.png)
4.  Click **Start Using the API**.
    
    ![](https://staticfiles.gleap.io/ghelparticle/IYnNn9ApD68H4Q2NwG5hjlkWIyaWHiUC3qKlhOVUEz25QCrFq4zZwSSUfeMjXYN8yDicZAPG0E3.png)

* * *

## ☎ Step 3. Add and Verify Your Business Phone Number

1.  Add the phone number you’ll use to send WhatsApp messages.
    
    ![](https://staticfiles.gleap.io/ghelparticle/b0TC8xdVyrS1rW5imxRQvADo3THUs0Dh2FBehqgz3AOZ9XPJB2lcI20M9EuOrd3ftkpw5wEAh00.png)
2.  You can use a test number initially to check message delivery.
    
    ![](https://staticfiles.gleap.io/ghelparticle/Yqh0dN1IDMnAK0OUpDPVQDlj3NEmj3hs1mwaSsfCKeWZLnBucdnPBJtq267jQhqfsSQ9YGjjPgk.png)
3.  Once added, you’ll see your:
    
    -   **Phone Number ID**
        
    -   **WhatsApp Business Account ID**
        
        ![](https://staticfiles.gleap.io/ghelparticle/bXJBsuI5BEH6APmD60p872WRUYG4CcLE8gDMrLhA5vDMNdYunaGoUT2615Zx5MxF04HABNmXc0R.png)

> **Success:** **💡 Save these** — The **“Phone number ID”** and **“WhatsApp Business account ID”** will be required to connect your Loyally account later.

* * *

## 🌐 Step 4. Configure Webhooks

Webhooks allow Loyally to receive WhatsApp message data (for example, delivery status, inbound replies).

1.  In your app’s sidebar, go to **WhatsApp → Configuration**.
    
2.  Click **Callback URL – Edit**.
    
3.  Fill in the following fields:
    
    1.  **Callback URL:**
        
        ```javascript
        https://mailing.digitalwallet.cards/whatsapp/webhook/inbound
        ```
        
    2.  **Verify token:**
        
        ```javascript
        whatsapp_bot_webhook_verify_token
        ```
        

4.  Click **Verify and Save**.
    
5.  You should see a success message confirming webhook verification.
    

![](https://staticfiles.gleap.io/ghelparticle/tHczEpdMS3OUNhP3K82FFTzcH0jbFFJTpiCYD6pTBnKzRJFJmajStWys0kIY8z5hM0uZlqz2W8S.png)

![](https://staticfiles.gleap.io/ghelparticle/reWc2LichssbVWO4owrm8T4wiEJY1gtwNmk1quMZOuylhllbFcliKJ4LJB4XimoubXXRgqoDW3S.png)

* * *

## ⚙ Step 5. Enable Webhook Subscriptions

1.  Go to **Webhooks → Manage**.
    
2.  Find **Messages** in the list and Enable it.
    

![](https://staticfiles.gleap.io/ghelparticle/hKkUoUZIrR6aIer3BExLdXocnjob46XRGPalAJfqYPIrNU6loaFUtIpHtPAVI8haPSkRnzJeZ81.png)

* * *

## 🔒 Step 6. Generate a Permanent Access Token

Temporary tokens from Meta expire in 24 hours, so you’ll need a permanent one.

1.  Visit [https://business.facebook.com/settings/people](https://business.facebook.com/settings/people).
    
2.  Select the **Business Manager** you used earlier.
    
3.  Navigate to **Users → System Users**.
    
4.  Click **Add**.
    
5.  Enter a name (e.g., _Loyally Integration_) and select the **Admin** role and click **Create system user**.
    
    ![](https://staticfiles.gleap.io/ghelparticle/5AGM7EGSrCFn7AavXevW3o28fHjAYydTsWBnH4NKxxfXaRLnwVUj4521KwguMPs6kabM7WYw1aH.png)
6.  Open the new user → click **Generate New Token**.
    
7.  Choose your **App**.
    
8.  Set **Token Expiration** to **Never**.
    
9.  Enable the following permissions:
    
    1.  business\_management
        
    2.  catalog\_management
        
    3.  whatsapp\_business\_management
        
    4.  whatsapp\_business\_messaging
        

10.  Click **Generate Token**.
     
11.  Copy and save the generated permanent token.
     

![](https://staticfiles.gleap.io/ghelparticle/SP2BfbHaXaKTsLxSMkVDnYt7EVGGgfAcuNZDeEaDUWEu1eG98VhoztpxGffd35voKq4wQ5i2t3a.png)

> 💡 Keep this token in a secure password manager.

* * *

## 🧱 Step 7. Assign Assets and Enable Manage App

1.  In the **System Users** tab, click your user.
    
2.  Open **Assign Assets → Apps**.
    
3.  Enable **Manage App**.
    
4.  Save your changes.
    

![](https://staticfiles.gleap.io/ghelparticle/c1zGFRHOYknmppxc4kUMMST4XroS2LqGUuEWFsO6GJTqDQ4l9eM8n1GBWfoR0JQMQuHYQ9RUs26.png)

* * *

## 🚀 Step 8. Enable Live Mode

1.  Go back to your **App Dashboard** in Meta.
    
2.  Switch the app from **Development** to **Live Mode**.
    
3.  Confirm your app is connected to your verified Business Account.
    

![](https://staticfiles.gleap.io/ghelparticle/MSWRlHMM899ja31kdrBlN7oECBYQOq4YTbb4lOSHi6Mn1a9UFGujt83VRQpABapN25Ocz1R5sN8.png)

> 💡 Live mode is required for sending real messages through the API.

* * *

## 🔗 Step 9. Connect WhatsApp to Loyally

1.  Go to your **Loyally Dashboard**.
    
2.  Navigate to **Mailings → Settings**.
    
    > or visit directly: [https://app.loyally.ai/mailings/settings](https://app.loyally.ai/mailings/settings)
    
3.  Click **Connect WhatsApp Bot**.
    
4.  Fill in the required fields:
    
    1.  Token: \[your permanent access token\]
        
    2.  Phone number: \[your business number\]
        
    3.  Phone Number ID: \[from Meta\]
        
    4.  WhatsApp Business Account ID: \[from Meta\]
        

5.  Click **Connect**.
    
6.  Once connected, the status will show **Active**.
    

![](https://staticfiles.gleap.io/ghelparticle/8MdBi72pqguwSuiGzhnX2hxNGFuEjVywFTYy2JkSZbqdx7hZAfspkU8VFHXfyEPDfTKKpANd5bX.png)

* * *

✅ Your **WhatsApp Bot** integration is complete 🎉

* * *

## 🧰 Troubleshooting

<table data-id="57c1c096-4b53-40a7-b2c5-2e2af0cefb19" style="min-width: 75px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="2499c9b5-ecee-4e01-8167-e9489d413f04"><strong>Issue</strong></p></td><td colspan="1" rowspan="1"><p data-id="4fed1d0f-b959-406c-94a1-3587dbab6889"><strong>Likely Cause</strong></p></td><td colspan="1" rowspan="1"><p data-id="7766484d-9bea-4d52-bdf6-c766d19d9c2c"><strong>Solution</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="d335b9d0-cc9e-40da-aa16-a78bf618258f">Token expired</p></td><td colspan="1" rowspan="1"><p data-id="3f48be48-6ed3-48f6-b571-cf7bf3cae7c2">Temporary token still in use</p></td><td colspan="1" rowspan="1"><p data-id="bf531423-c234-40ea-83bc-94b8d6c19643">Generate and use a <strong>Permanent Access Token</strong>.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="c59d8fe1-f010-4354-a9b9-f4d3c99aaa2b">Webhook not verifying</p></td><td colspan="1" rowspan="1"><p data-id="a73ff928-5eaf-4d98-ad05-9c8c698e2f5f">Wrong token or URL mismatch</p></td><td colspan="1" rowspan="1"><p data-id="be4cda5e-9541-4cdb-8e6e-dc3db211d144">Recopy the Loyally Webhook URL and Verification Token.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="e346c234-a9c8-42b1-904f-8d63a441cae7">Test message not delivered</p></td><td colspan="1" rowspan="1"><p data-id="b8d335e2-33bb-4c5f-94ac-ba764a60e8ae">Unapproved message template</p></td><td colspan="1" rowspan="1"><p data-id="0b762c60-d062-4ff7-8fa0-e73b2bb2b269">Get your template approved in the Meta dashboard.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="819fdc9a-4126-49b6-bf9e-b4d5e0bd8b9e">Message delay</p></td><td colspan="1" rowspan="1"><p data-id="bfa9c643-b6d6-42b9-92d5-a359e5031bae">Meta API rate limits</p></td><td colspan="1" rowspan="1"><p data-id="837bfa71-7b12-4dad-b15b-74b71c6081c4">Avoid sending too many messages at once; space them out.</p></td></tr></tbody></table>

> 💡 _Tip:_ Check your **Meta Developer Logs → WhatsApp → Activity** for detailed error messages.

* * *

## ✅ Summary

Connecting the **WhatsApp Bot** to **Loyally** lets you send automated, personalized messages that strengthen your customer relationships.  
Once integrated, you can use WhatsApp as a powerful communication channel inside campaigns — keeping customers engaged and informed wherever they are.

* * *

## 🔗 Related Articles

[

How to Create an Automation in Loyally

Set up automations in Loyally to trigger personalized messages, rewards, and workflows based on customer behavior — keeping your loyalty program running smoothly and efficiently.

](https://help.loyally.ai/en/articles/111-how-to-create-an-automation-in-loyally.md)[

Creating an SMS campaign

How to create your SMS campaign

](https://help.loyally.ai/en/articles/86-creating-an-sms-campaign.md)[

How does PUSH notifications work?

Learn more about how push-notifications work on devices

](https://help.loyally.ai/en/articles/78-how-does-push-notifications-work.md)
