Skip to main content
All CollectionsChannels
✅ Meta - WhatsApp Cloud API
✅ Meta - WhatsApp Cloud API

How to Connect your AI Agent Bot to Official WhatsApp Cloud API through Meta

Officely AI avatar
Written by Officely AI
Updated over 7 months ago

To set up WhatsApp Cloud API:

  1. Log in to your Facebook account.

  2. Go to the Facebook Developer Site, click My Apps > Create App.

  3. Select Business as the app type. Click Next.

  4. Enter the display name and select the business account. Click Create app.

  5. When prompted, re-enter the password of your Facebook account. Click Submit.

  6. On the app's Dashboard, scroll down to find the WhatsApp app, and click Set up.

  7. Select the account type, and click Continue.

  8. Copy the WhatsApp Business Account ID to a safe place.


Create Permanent Access Token

To create a permanent access token for your WhatsApp Business Cloud account:

  1. Click Apps Dashboard > Business Settings.

  2. Note

    If you don't see the App Dashboard menu, refresh the page.

  3. Go to System Users > Add. Enter the username, select the role as Admin and click Create System User.

  4. Go to Add Assets > Apps. Select the app you want to assign to the user, enable Full Control access, and click Save Changes.

  5. Go to WhatsApp Accounts > Add People > Select the system user > Enable Full Control Access > Assign.

  6. Go to System Users > Select the user > Generate Access Token.

  7. Select the app, following permissions, and then click Generate Token.

    • whatsapp_business_messaging

    • whatsapp_business_management

  8. Copy the token to a safe place.

You can use this token as a permanent access token.


Add your own phone number to WhatsApp Business Cloud API

When you set up WhatsApp API, a test number is created for you. You can add your own number.

  1. Log in to your Facebook developer account.

  2. On the Getting Started page, click Add phone number.

  3. Enter your business profile details and click Next.

  4. Enter the business phone number that you want to connect to WhatsApp Business API.

    Note

    Ensure that the phone number is not registered with WhatsApp before. If already registered, delete your WhatsApp account with the number before registering here.

  5. Enter the verification code received on your phone number.

  6. Enter your business details and click Save.

You have successfully added your own business phone number to WhatsApp Business Cloud API.


Connect WhatsApp Business Cloud to Officely AI

To connect WhatsApp Business Cloud with Officely AI you need to obtain the Permanent Token and WhatsApp Business Account ID values from your WhatsApp Business Cloud account.

  1. In your Facebook developer account:

  1. Log in to your Officely AI account -> Channels -> Meta - WhatsApp Cloud API.

  2. Copy and Paste all the the details:

Note: Officely AI recommends using the temporary token for testing purposes as it is valid only for 24 hours and you will lose your data once the token expires.

  1. Copy from Officely AI the Webhook URL

  2. Paste to Meta - WhatsApp Cloud API -> Step 1
    Click Edit

  3. Paste the Webhook URL -> Step 2
    Paste the url from Officely AI to Callback URL Webhook on Meta.

  4. Add the Token from Officely AI Profile as "verify Token"

You have successfully connected the WhatsApp Business Cloud app and can now build scenarios.

Did this answer your question?