WhatsApp Business Cloud
With WhatsApp Business Cloud modules in Make, you can:
watch events, send a message, and template messages
upload and download media
enable two-step verification, register, verify, and deregister senders
retrieve and update business profiles
Caution
Please note that it is not possible to use the phone number registered in the WhatsApp Business app or your personal WhatsApp number, which you use for communicating with friends and family. You will need a separate dedicated phone number for the API. For more information, please refer to the Could API documentation.
To get started with WhatsApp Business Cloud, you need:
A Facebook Developer account
A valid mobile phone number.
Note
Before you begin, understand the following information about the phone numbers:
The phone number should not be registered with your personal WhatsApp account which you use to communicate with your friends and family. If already registered, delete the existing account on your mobile to register with WhatsApp Business Cloud.
You cannot use the same phone number simultaneously on both on-premise and Cloud API at the same time. Only one platform is supported at a time with the phone number. See overview and phone numbers.
Do not infringe the WhatsApp Terms and Conditions: "If you use anything other than the official WhatsApp Business Platform or other official WhatsApp tools, We reserve the right to limit or remove your access to WhatsApp as this violates our policies. Please do not use any non-WhatsApp authorized third-party tools to communicate on WhatsApp. See Unauthorized use of automated or bulk messaging on WhatsApp for more information".
To connect WhatsApp Cloud API to Make involves the following steps:
Set Up WhatsApp Cloud API
To set up WhatsApp Cloud API:
Log in to your Facebook account.
Go to the Facebook Developer Site, click My Apps > Create App.
Select Business as the app type. Click Next.
Enter the display name and select the business account. Click Create app.
When prompted, re-enter the password of your Facebook account. Click Submit.
The app is created.
On the app's Dashboard, scroll down to find the WhatsApp app, and click Set up.
Select the account type, and click Continue.
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:
Log in to your Facebook Developer Account.
Click Apps Dashboard > Business Settings.
Note
If you don't see the App Dashboard menu, refresh the page.
Go to System Users > Add. Enter the username, select the role as Admin and click Create System User.
Go to Add Assets > Apps. Select the app you want to assign to the user, enable Full Control access, and click Save Changes.
Go to WhatsApp Accounts > Add People > Select the system user > Enable Full Control Access > Assign.
Go to System Users > Select the user > Generate Access Token.
Select the app, following permissions, and then click Generate Token.
whatsapp_business_messaging
whatsapp_business_management
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.
Log in to your Facebook developer account.
On the Getting Started page, click Add phone number.
Enter your business profile details and click Next.
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.
Enter the verification code received on your phone number.
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 Make
To connect WhatsApp Business Cloud with Make you need to obtain the Permanent Token and WhatsApp Business Account ID values from your WhatsApp Business Cloud account.
In your Facebook developer account:
Log in to your Make account, and add a module from the WhatsApp Business Cloud app into a Make scenario.
Click Add next to the Connection field.
In the Connection name field, enter a name for the connection.
In the Permanent Token field, enter the token created prior to the connection.
You can also use a temporary token which is only valid for 24 hours and available on the getting started screen.
Note
Make 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.
In the WhatsApp Business Account ID field, enter the ID from your Facebook Developer account > WhatsApp > Getting Started section screen, and click Save.
You have successfully connected the WhatsApp Business Cloud app and can now build scenarios.
Message
You can watch events, and send messages using the following modules.
Triggers when a new message is received.
Webhook name | Enter a name for the webhook. |
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Verify Token | Enter the Temporary Access Token from the WhatsApp Getting Started section or the permanent token. NoteEnsure that you use the same token for creating connections and webhooks. |
Events | Select or map the events which you do not wish to watch. |
See Setting up WhatsApp Business Cloud webhooks to add webhooks to your account.
Sends a message.
Note
You can send a message using this module if you satisfy the below conditions:
Your business number phone number must be first approved by WhatsApp before you use it for sending messages.
You can only initiate new chats via Send a Template module. Only after sending a templated message to a specific customer and receiving a response from the customer, you can use this Send a Message module to send a non-templated message to the customer.
If a customer contacts you first, then you can reply to the customer with this Send a Message module for the next 24 hours.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map the Sender ID from which you want to send the message. |
Receiver | Enter the receiver's WhatsApp ID or phone number. NoteIf you are using a testing number:
If you are using your own phone number, the receiver field accepts both WhatsApp ID and a phone number in any dilable format with country code. However, Make recommends explicitly prefixing the country code with a plus sign (+). Some of the examples of supported phone number formats are:
|
Message Type | Select the message type. For example, Based on the selection, dynamic fields auto-populate, and you need to enter the details to send the message. For more details on these dynamic fields, see WhatsApp Business Cloud Messages API documentation. |
For any errors, while sending the messages, see Troubleshooting the WhatsApp Business Cloud.
Sends a template message.
Note
Your business phone number must be first approved by WhatsApp before you use it for sending messages.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map the Sender ID from which you want to send the template message. |
Receiver | Enter the receiver's WhatsApp ID or phone number in any dialable format. NoteIf you are using a testing number:
If you are using your own phone number, the receiver field accepts both WhatsApp ID and a phone number in any dilable format with country code. However, Make recommends explicitly prefixing the country code with a plus sign (+). Some of the examples of supported phone number formats are:
|
Message Template | Select or map the message template you want to send. |
Media
You can upload and download media using the following modules.
Uploads a media and retrieves its ID.
Connection | Establish a connection to your WhatsApp Business Cloud account. | ||||
Sender ID | Select or map the ID of a sender whose media you want to upload. | ||||
File | Enter the file details:
|
Downloads a media by its ID.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Media ID | Enter the Media ID you want to download. |
Phone Number
You can enable two-step verification, register, verify, and deregister senders using the following modules.
Activates the two-step verification for a sender number by its ID and a 6-digit pin.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map a Sender ID whose two-step verification you want to enable. |
PIN | Enter (map) a 6-digit pin you wish to use for two-step authentication. To disable or reset two-step verification, see the WhatsApp Business Cloud documentation. |
Registers a sender by its ID and a 6-digit pin.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map a Sender ID whom you want to register. |
PIN | Enter (map) a 6-digit pin you wish to use for registration. To disable or reset two-step verification, see the WhatsApp Business Cloud documentation. |
Verifies a sender by its ID.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map a Sender ID whom you want to verify. |
Action | Select the action you want to perform to verify the sender:
|
By | Select a method for receiving the code:
|
Code | Enter (map) the code received to complete the verification. |
Deregisters a sender by its ID.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map a Sender ID of a sender to deregister. |
Business Profile
You can retrieve and update business profiles using the following modules.
Retrieves the details of the WhatsApp business profile by the sender ID.
Connection | Establish a connection to your WhatsApp Business Cloud account. |
Sender ID | Select or map the Sender ID whose business profile you want to retrieve. |
Updates a WhatsApp business profile by the sender ID.
Connection | Establish a connection to your WhatsApp Business Cloud account. | ||||
Sender ID | Select or map the Sender ID whose business profile you want to update. | ||||
Address | Enter the address of the business. | ||||
Description | Enter the business details. | ||||
Vertical | Select or map the industry of the business. For example, | ||||
Enter the contact email address of the business. | |||||
Websites | Add the business website URL address. For example, a website, Facebook Page, or Instagram. You must include the | ||||
File | Enter (map) the file details:
|
Log in to your Make account.
Open the Watch Events module, enter a name for the webhook, click Save, and copy the URL address to your clipboard. Click OK and Save the trigger.
Go to App Dashboard, click Webhooks > Subscribe to this object to enable the webhooks.
When prompted enter the Callback URL copied in step 1 and the Verify token.
The verify token is the Temporary access token or permanent access token but it has to be same in the Make and WhatsApp account.
For more information on webhooks, see the WhatsApp Business Cloud documentation.
If you are using a testing number to send messages you must add the recipients to your WhatsApp account in the Facebook Developer account. You can add a maximum of five recipients' numbers that are enabled with WhatsApp.
To add the recipient's phone number:
Log in to your Facebook Developer account.
On the left menu, click WhatsApp > To > Manage phone number list.
Add the phone number and click Next.
Enter the verification code received on your WhatsApp and click Next.
The recipient's number is successfully added to the list.
Troubleshooting the WhatsApp Business Cloud
Some of the errors that you might encounter when using WhatsApp Business Cloud.
WhatsApp API - Error 500 code 13100
The user gets an error 500 from the module and the DevTool > Response Body shows error code 131000.
Note
You can only initiate new chats via Send a Template module. Only after sending a templated message to a specific customer and receiving a response from the customer, you can use this Send a Message module to send a non-templated message to the customer.
If you’re using a testing number, you must first register up to five authorized recipient numbers in WhatsApp Manager before sending messages to them. See Add Recipient's Phone Number.