Prerequisites
-
A WhatsApp Business Account
Setting up the WhatsApp Integration
- Go to the YourGPT Chatbot Integrations Section.
- Find the WhatsApp integration then click on the
Connect
button.
The WhatsApp integration will have the following settings:
-
Verify Token
To Create a Verify Token, follow the steps below.
- Start by creating a unique string that can be a mix of alphabets and just numbers, e.g (12345 or abc12). This will act as your Verification Token.
- After creating the Verify Token, make sure to copy it.
- Go to YourGPT Chatbot, in the
Verify Token
field. Paste your Verify Token. - You’ll also need to add the same Verify Token in the
Webhook Callback
section of your Facebook App. - Lastly, copy the webhook URL from YourGPT Chatbot. Go to your Facebook App and find the
Webhook Callback
section, paste the copied webhook URL.
-
Phone Number ID
To set up your Phone Number ID:
- In your facebook App’s left sidebar, expand the WhatsApp menu and select Getting Started.
- Beside the label Phone Number ID,
click Copy
. - Paste the copied value in the
Phone Number ID
field in YourGPT Chatbot.
-
Access Token
There are two types of Access Tokens:
- Temporary Access Token
- The Phone Number ID and Access Token are used to send and receive messages to/from the WhatsApp API.
- To set up a Temporary Access Token:
- In your facebook App’s left sidebar, expand the WhatsApp menu and select Getting Started.
- In the Temporary access token section,
click Copy
. - Paste the copied value in the
Access Token
field in YourGPT Chatbot.
- The Temporary Access Token expires after 24 hours. You will need to generate a new token every day.
- Permanent Access Token (Optional)
-
To set up a Permanent Access Token:
-
Go to Business Settings.
-
Select the business account your app is associated with.
-
Below Users, click on System Users.
-
Click
Add
. -
Name the system user, choose
Admin
as the user role, and clickCreate System User
. -
Select the
whatsapp_business_messaging
permission. -
Click
Generate New Token
. -
Copy and save your Permanent Access Token.
Paste the Verify Token, Phone Number ID, and Access Token in the respective fields in YourGPT Chatbot.
-
-
- Temporary Access Token
Troubleshooting
To resolve the error This number is registered to an existing WhatsApp account
, disconnect the number from here: WhatsApp Manager.
By following these steps, you can integrate your chatbot with WhatsApp. For more information, refer to this article. If you have any questions, contact our team via Website Chat support or Mail Us.