Send Promotion Template Messages via WhatsApp with Zoho Creator
1. Requirement
Increase customer engagement and sales efficiency by sending promotions and advertisements directly to customers via WhatsApp by integrating Zoho Creator with WhatsApp Business Platform.
2. Use Case
A sales organization uses Zoho Creator for customer management and related operations. To enhance customer engagement and sales efficiency, the organization wants to send promotions and advertisements directly to customers through WhatsApp. This can be accomplished by integrating Zoho Creator with WhatsApp Business.
3. Pre-requisites
- Create a Facebook account or use your existing Facebook account and register yourself as a Meta Developer with your Facebook account.
- Create a WhatsApp Business account with your existing phone number.
Note: WhatsApp Business Platform operates on a conversation-based pricing system, where a conversation is initiated when you send a template message, which incurs a cost. Refer this link to learn more about this pricing model.- Create an app in your Meta Developers account with WhatsApp product by following the instructions in this help document. Follow the on-screen instructions to configure WhatsApp for your app, including setting up a business phone number and verifying it.
Click on the listed app to view its dashboard and other properties.
- From the App Dashboard, navigate to API Setup under WhatsApp in the left pane.

- You will be prompted to select an existing Meta Business Account or request the platform to create a new one and click Continue. Learn how to create a Meta Business Account.

- You will receive a temporary access token and a test phone number for testing purposes, which will expire within 24 hours. To create a permanent access token, you need to add a system user to your business account.

3.3. Create Template
Here, we have created a template named 'promotion' and configured it as shown below.
4. Steps to Follow in Zoho Creator
4.1. Create Custom Connector for WhatsApp
- Navigate to the Custom Connectors page from the Microservices tab of your Creator account dashboard and click Create New Custom Connector.

- If you have previously created custom connectors, they will be displayed as cards on the custom connectors page. Click the +Create New icon in the top-right corner.

- Specify the Connector Name as 'WhatsApp' and the Description as 'Creator WhatsApp Integration' and click Create Custom Connector.

- Upload a WhatsApp logo for our custom connector for easy identifications, then click Save & Continue.

- Select API key Authentication, then click Save & Continue.

- On the next page, select Parameter Location as 'Query String'. Enter the Parameter Name as 'Enter Access Token' and the Parameter Key as 'access_token' as shown.

- Click Save and mark the connector as ready to use. This will allow you to create a WhatsApp connection.

- Click Add Connection. You will be prompted to create a connection using this connector.
Note: Once you mark the connector as ready, it will appear under the Custom Connectors section when you create a connection. You can then use it to create multiple WhatsApp connections with the same connector. Learn More
- Enter Connection Name as 'WhatsApp Connection' and select Connection Authorization Level as 'Administrators', then click Create and Authorize.

- Enter the permanent access token that you generated previously, then enter the Name for the Authorized Account as 'WhatsApp Account'

- Select the desired environments to use this authorization and click Authorize.

- Enable connection access to the applications where the connection will be used.

- Create a form with the following details to collect customer details.
Form | Form Link Name | Field Type | Field Name | Field Link Name |
Customer Details | Customer_Details | Name | Customer Name | Customer_Name |
Email | Email | Email |
Phone | Phone | Phone |
Address | Address | Address |
- Create a workflow to execute on the successful submission of the Customer Details form, then select the Record Event as 'Created'. Name the workflow as 'Send Promotion' and click Create Workflow. This workflow will send the template message to the customer's phone number stored in the Phone field via WhatsApp.

- Click Add New Action > Deluge Script and add the following code to the Deluge editor.
- //Send template message to customer's phone number using invokeURL task.
- response = invokeUrl
- [
- url: "https://graph.facebook.com/v19.0/<PhoneNumberID>/messages"
- type: POST
- parameters: { "messaging_product": "whatsapp", "to": input.Phone_Number, "type": "template", "template": { "name": "promotion", "language": { "code": "en_US" } } }
- connection: "whatsapp_connection"
- ];
where,
''https://graph.facebook.com/v19.0/<PhoneNumberID>/messages" | is the URL mentions in the WhatsApp API documents for API calls to send messages. |
<PhoneNumberID> | is the ID of the Phone number added in your WhatsApp Business Account. You can find it in the API Setup under WhatsApp in your App Dashboard of Meta application. Example : 328562393673662

|
"whatsapp_connection" | is the name of the WhatsApp connection created using Custom Connector. |
5. See How it Works
- WhatsApp Business Platform - Cloud API
- Understand Connectors
- Create Custom Connector
- Understand Connections
- Create and Authorize Connections
- invokeURL task for API calls