---
title: 🟢Ноw to connect WhatsApp Bot
slug: connect-whatsapp-bot
description: Learn how to connect your WhatsApp Bot in just 7 minutes! Follow our easy guide to set up your Facebook business account and configure webhooks. Start messaging now! 📲✨
docTags: 
createdAt: 2024-05-08T07:53:36.374Z
---

To connect WhatsApp Bot, you need to have a Facebook business account. Authorize in it. On [https://developers.facebook.com](https://developers.facebook.com/) go to My Apps section and click Create. &#x20;

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/l7Mmlmo8s-JCNSRx5pVsh_1.png)

Select Other

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/Wqk2KMCcf5WSizY_qfAFu_2.png)

On the next page select Business

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/d89_-_pFWS2maWJD9AXg4_3.png)

&#x20;Next, add your Application Name, email, select or create a business manager.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/NNbejT7XHrizefGb3SAo9_4.png)

On the next page, find the WhatsApp and click **Set up**.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/UcZCQ_ZuyXJ-RrdtPtv5O_5.png)

Next, select the Business profile.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/NcFDbASwho6Ihvc-RkaB9_6.png)

Next, click Start **Using the API**.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/5GdNvbPm33iQfPrughdfP_7.png)

You need to add the phone number from which you want to send messages to WhatsApp.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/szVvFTUSqR7gGDZYd96b-_8.png)

You can write a test phone number and check the sending of the message.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/DTgw1OLqo-Kqdi-gdP73m_9.png)

Phone number ID, WhatsApp Business account ID are also listed on this page. These data are needed to connect WhatsApp Bot in loyaltydigital.cards account.&#x20;

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/ylbWax6Fix9Z4yw6VjNw2_10.png)

Next, we configure the webhooks.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/wtLClq4K5pbc1LlXP_pag_11.png)

Click **Callback URL - Edit**

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/_-REtbldmMK0slCCciP7x_12.png)

&#x20; Fill in:
Callback URL: **https\://mailing.digitalwallet.cards/whatsapp/webhook/inbound&#x20;**

Verify token: **whatsapp\_bot\_webhook\_verify\_token&#x20;**

Click Verify and save.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/HNLqLI8sdafEbONpANMn6_13.png)

&#x20;Next, select **Webhooks - Manage**

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/2Mg4tUMs9BtrMJGFe8ibj_14.png)

&#x20;Find Messages in the list and enable it. Click **Done**

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/MEDTRi68Xfa2rS0uyk3_l_15.png)

The next step is to configure the permanent token. You can find more information at [https://developers.facebook.com/docs/whatsapp/business-management-api/get-started#1--acquire-an-access-token-using-a-system-user-or-facebook-login](https://developers.facebook.com/docs/whatsapp/business-management-api/get-started#1--acquire-an-access-token-using-a-system-user-or-facebook-login).&#x20;

To do this, you need to select a business manager: go to [https://business.facebook.com/settings/people](https://business.facebook.com/settings/people).&#x20;

Select the Business Manager you specified in the settings earlier.

Go t&#x6F;**&#x20;Users -> System Users** and clic&#x6B;**&#x20;Add** (create a user: enter a name and select the Admin role).



Next, click Generate new token, select our application, select **Token expiration** "**Never**", enable:

1. **business\_management**
2. **catalog\_management**
3. **whatsapp\_business\_management**
4. **whatsapp\_business\_messaging**

::Image[]{src="https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/RM4Rq0Acyz2r0wayOGceb_18.png" size="40" width="434" height="787" position="center" showCaption="false"}

Click Generate token. **Save the generated token.**

You also need to go to **Assign assets -> Apps&#x20;**&#x61;nd enable **Manage app.**

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/_fhI74CX5vE-ib8LszqEL_20.png)

Go back to the business account dashboard and enable Live mode. You can also save the data on the screenshot to connect the WhatsApp bot.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/Xe57-XJTPIUCajN4fTwMP_22.png)

Now connect WhatsApp Bot in your loyaltydigital.cards account.&#x20;

Go to [loyaltydigital.cards mailings tab ](https://loyaltydigital.cards/mailings/settings)

Click **Connect account** for WhatsApp Bot section, **enter the token you saved above**, **sender's phone number**, **Phone number ID**, **WhatsApp Business account ID**.

![](https://api.archbee.com/api/optimize/ulXuDNMTzKAGWVo79I18F/iuz8KebbmwRfC6PuzCd_8_21.png)



&#x20;
