> For the complete documentation index, see [llms.txt](https://documents.cxgenie.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documents.cxgenie.ai/integrations-and-connections/connect-the-bot-to-your-business/whatsapp.md).

# WhatsApp

This feature lets you connect your chatbot to your WhatsApp Business account.

## Steps to Use

**Step 1:** In the Bot section, go to the **Platform Integration** tab. Then click the **WhatsApp** button.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FuGR1u5E5s5CwPguGXWh9%2F7fa74712-c029-4d91-a6d7-1cab9f9bb628.png?alt=media&amp;token=f12a7225-91e6-4fe7-93fa-5a3d1dc0901f" alt=""><figcaption></figcaption></figure>

**Step 2:** Click the **+ Add phone number** button. A popup will appear. Don’t enter anything yet — just continue to the next step.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2F9MW2KpSGC8kaw0qMRPCC%2Fimage.png?alt=media&amp;token=3c236847-ce51-4fe8-b32e-82ab1be86cea" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FqdFe8euK4SFgKMYNxmuP%2Fb812c91f-d39a-4442-8726-1880a5b70ff9.png?alt=media&amp;token=ed798b73-bc14-41b7-9092-0391af500ea8" alt="" width="561"><figcaption></figcaption></figure>

**Step 3:** Go to the [**Meta Business Suite** website](https://business.facebook.com/) and log in to your business portfolio.

**Step 4:** In the **System Users** tab, choose a user with **Admin** access. Then click **Generate token**.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2Fbgsz6PUAwfuDOBPcPLEb%2Fimage%201.png?alt=media&amp;token=5af11015-1579-4d4f-bec7-9731982e7295" alt=""><figcaption></figcaption></figure>

**Step 5:** In the **Select App** step, choose the app you created in Meta Business Suite. Click **Next**.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2F0hDwCLjap3cGn28WfPBW%2F607af381-6dda-4167-b0a8-69b20abd2c23.png?alt=media&amp;token=f8aa44c8-bdc6-4526-bd55-ea77e619187c" alt="" width="563"><figcaption></figcaption></figure>

**Step 6:** Select your preferred token expiration. Click **Next**.

*Note: If you choose the 60-day expiration, you’ll need to remove the WhatsApp integration from CX Genie and connect it again for the bot to keep working.*

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2F3wUhkt55KCif4l2ST6Zi%2F519d0649-b0be-4acc-9483-a1f69a5549f8.png?alt=media&amp;token=580ecfd1-0377-4c27-9259-e7b82acefd69" alt="" width="563"><figcaption></figcaption></figure>

**Step 7:** Assign the following permissions:

* `whatsapp_business_management`
* `whatsapp_business_messaging`

Then click **Generate token**.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2F0DIatBL7T0IjaqPervSP%2Fimage%202.png?alt=media&amp;token=a4210059-bc0e-4faa-82af-e7199eb93766" alt="" width="563"><figcaption></figcaption></figure>

**Step 8:** If prompted, verify your Meta account. If not, move on to the next step.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FIlHZTvN5dcGnlqVcLzil%2F974b180a-0d4f-4614-a558-31d70dc13c43.png?alt=media&amp;token=3832edfb-88ba-4fe3-acd9-ff85b310dc45" alt="" width="561"><figcaption></figcaption></figure>

**Step 9:** Copy the generated token and paste it into the **Permanent access token** field in CX Genie.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FPxmA5lyLmAcuL62ZNiF6%2Fimage%203.png?alt=media&amp;token=5821fd53-5e8b-45ae-9d79-a4beffeb162a" alt="" width="561"><figcaption></figcaption></figure>

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FWL8mpe453Ao2zk6JsGX5%2Fimage%204.png?alt=media&amp;token=dc07144e-ba54-48d8-b071-97a7642ec580" alt="" width="560"><figcaption></figcaption></figure>

**Step 10:** Go back to Meta Business Suite, go to Accounts > WhatsApp accounts and copy the system user’s ID, and paste it into the **Account ID** field in CX Genie. Once you’re done, click **Add WhatsApp Account** to connect it with CX Genie.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2F78tAHeYpv79M77PTymEc%2F539f086e-9cfe-43d6-8e1e-f2c129a4ddc8.png?alt=media&amp;token=a59c5d05-43f2-4848-a028-d6582ed5ac8e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FRNnGbj28kbgTklNTBQFQ%2Fimage%205.png?alt=media&amp;token=9ee36c27-41f5-44e0-990c-6c3b30e0017b" alt="" width="559"><figcaption></figcaption></figure>

**Step 11:** Select the bot you want to connect to this WhatsApp account. Click **Save changes** to apply the connection.

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FBrHdkq4Ro8ACBQUo1mVM%2Fimage%206.png?alt=media&amp;token=41a35671-01ae-4edd-b014-2c652acd0428" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FyqUhDLMcymnw1XWnWzdV%2Fimage%207.png?alt=media&amp;token=75f65a98-f499-41d3-8efd-e084de724a19" alt="" width="432"><figcaption></figcaption></figure>

**Step 12:** Go chat with your WhatsApp number and give your chatbot a try!

<figure><img src="https://3928771814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcrYvzbvjeUPqcy0srNQ9%2Fuploads%2FrKPhWyxpEcnofXsj58W4%2F23608b1e-7939-408e-9751-f9a9321a59c9.png?alt=media&amp;token=3e821d81-6556-467e-99b3-2deca3c7e70d" alt="" width="464"><figcaption></figcaption></figure>

## Video Guide

{% embed url="<https://www.youtube.com/watch?v=-pdESWLJukc>" %}

## Quick Tips

* If you choose **a token that expires in 60 days**, make a note to renew it before it expires to keep the bot active.

## Troubleshooting

* **Problem:** The bot doesn’t respond on WhatsApp.

  **Solution:** Make sure the correct permissions are granted and the token has not expired. Also, check that you’ve connected it to a bot after adding it to CX Genie.
* **Problem:** Error while pasting token or Account ID.

  **Solution:** Double-check that you copied the correct token and WhatsApp account ID from Meta Business Suite.

**Need help?** Join our [Discord community](https://discord.gg/SsYEF8PW65) or email us at <hello@cxgenie.ai>.
