Whatsapp setup using Kaleyra

1. Introduction

WhatsApp Messenger is a freeware, cross-platform messaging, and Voice over IP service. MyBOT allows customers to use WhatsApp messenger as a channel for the bot. MyBOT supports Kaleyra as a partner and businesses can deploy the MyBOT Chatbot on Whatsapp using this integration.

2. Access to Setup

2.1 Access Deploy tab from the Navigation menu.


2.2 Select WhatsApp as the deployment channel and Kaleyra from the Provider option.


2.3 Update the following fields:

  • Phone Number
  • API key
  • SID
  • Client URL

3. Steps to Configure Kaleyra

3.1 Login to your Kaleyra account by accessing the link https://hexa.kaleyra.io/login.

3.2 Navigate to the ‘Channels’ tab present on the left navigation menu of the screen.

3.3  Click on the Whatsapp manager and select the Configurations tab.

3.4 Copy the number which has been approved and paste it in the Phone Number section.

3.5 Paste the URL provided by MyBOT in the URL section.

3.6 Next, visit the Developer Section and click on the Generate API Key button

3.7 Give a name to the new API key and click on Save. Copy the generated API Key and SID and paste them in MyBOT.

3.8 To create the Client URL, use the SID procured from the Kaleyra account and paste it in the following URL.

https://api.kaleyra.io/v1/<SID>/messages

3.9 Copy the above URL and paste it in the Client URL section.

3.10 Once all the details are entered, save the changes and you are good to test your bot on Whatsapp with your test numbers.

Note:

  • Kaleyra as a partner supports the following media and document types:

                     Type                          Format
Image                         JPG, JPEG, PNG
Document                 PDF, DOC(X), PPT(X), XLS(X) ,TXT
Audio                         AAC, M4A, AMR, MP3, OGG, OPUS
Video                         MP4

  • Location service and contact sharing are currently not supported.

API body for Template broadcast: 

Request URL – https://domain/bot-api/v1.0/customer/<customerId>/bot/<botkey>/broadcast
HTTP Method: POST

Content-Type: application/json
Authorization: Basic <Auth token> (generated from Integrations > Developer Settings)

{
“broadcastId”: null,
“broadcastTitle”: “Title”,
“publishedOn”: “2020-04-21T06:48:27.170Z”,
“audience”: {
“rule”: {
“userIds”: [],
“channelUserIds”: [
“919999999999”,
“919034505201”
],
“channels”: [
“Whatsapp”
]
}
},
“payload”: {
“type”: “WHATSAPP_TEMPLATE”,
“content”: [
{
“type”: “TEMPLATE”,
“template”: {
“name”: “response_template”,
“parameters”: “\”ABC\”,\”MyBOT\””,
“lang_code”: “en”
}
}
]
},
“status”: null
}

Was this article helpful?

Related Articles

Leave A Comment?