Chatbots using WhatsApp: How to set up Botmaker

Official Content
This documentation is valid for:

Here you will find instructions to set up Botmaker to use WhatsApp as a messaging platform for the Chatbot generator.

Summary

Creating the account

First, create the account.

i1_20206161046_1_PNG

You will be asked to choose a channel to connect your Chatbot (this can change later).

i2_PNG

When selecting WhatsApp, you are asked to provide a phone number and the Facebook Business Manager ID. If you don't have it, Botmaker can help you get it.

i3_202061610438_1_PNG

Next, select the plan. 

i6_20206161054_1_PNG

Select to configure it on your own or to receive help from experts.

i7_PNG

Finally, complete the form to finish the process.

i8_PNG

Configuring inbound message webhooks

On the platform page, configure the URL that Botmaker sends a webhook to for inbound messages.

The Webhook is automatically generated by configuring in the KB the following properties:

It's generated under the instance's module, and its name is WhatsappWebhook.

After building it, configure the URL as follows:

http://<server>/<baseURL>/<InstanceModule>.WhatsappWebhook.aspx (.NET) or http://<server>/<baseURL>/<InstanceModule>.WhatsappWebhook (Java)

Note that the machine where the webhook is hosted has to be visible online:

i2020-06-22_1020_001_png

Configuration settings

On the platform page, create the credentials: 

Capture_2020622114446_1_PNGOnce it is created, the access token will be shown there. This access token is JWT.