WhatsApp Business API
WhatsApp Business API is one of the channels in which you can publish your Aimylogic bot. It allows you to automatically process clients’ incoming messages.
How to publish my bot in WhatsApp?
Before you publish your bot in WhatsApp, you’re gonna need to get an official WhatsApp account for your company.
If you decide to save money and use third-party services and unofficial API, WhatsApp most probably will block your number. Also, you won’t be able to connect your Aimylogic chatbot.
There are a few ways to connect your bot to WhatsApp:
You cannot use WhatsApp for marketing campaigns
To get the official WhatsApp Business API, we recommend you to contact i-Digital, our official partner. They will give you all information on the pricing and integration process.
You can connect i-Digital in the following ways:
- by filling out an application on their website
- by writing an email to the address firstname.lastname@example.org
- by calling the phone number +7 (812) 426 9988
If you want to use the WhatsApp channel together with business platforms for customer requests processing, such as Jivo, contact i-Digital to consult them on how to connect WhatsApp on a particular platform side.
Congratulations! Now you can connect your Aimylogic chatbot to your account in WhatsApp Business API. To publish your Aimylogic chatbot go to your bot Channels settings in Aimylogic, then pick WhatsApp Business API button to add a new channel.
After the channel has appeared on your channel list, click the Get webhook button to copy the webhook. Send it to i-Digital manager you talked to when you were getting the official WhatsApp Business API.
After your request is processed, your bot will start working in WhatsApp Business API.
WhatsApp Business API allows launching messaging campaigns which should meet the WhatsApp requirements to be approved.
Messaging campaigns should be relevant to the client’s interests and previous orders.
You cannot launch messaging campaigns that do not correspond to the client’s interests. Such campaigns will not pass the WhatsApp moderation. This also means you can send such messages only to the clients who have talked to the bot before.
If you want to use buttons in the first message the bot sends to the client, you have to register such buttons in i-Digital.
Messaging campaigns are available not for all countries. Contact i-Digital for details.
Registering buttons in i-Digital
Before adding buttons to the first bot message, including buttons from blocks, you have to register them in i-Digital.
If you do not register the buttons you add to the first bot message, they will not work.
Other buttons do not require registration.
The dialog starts when the client replies to the bot message in the campaign or when the client sends the first message.
You can make button registration request after you have configured your official business account in WhatsApp on the i-Digital website. When i-Digital registers your business account, the manager will contact you and provide the detailed instructions on filling in button templates.
After i-Digital has approved your buttons, you can add them to the first bot message in the campaign.
Template example for a regular button
|Message text||Chat button 1||Chat button 2|
|Will the car be used for personal purposes?||Yes||No|
The button’s text should be no longer 20 symbols.
Template example for an inline button with a URL
|Message text||Button name||URL|
|Please, contact us.||Go to website||https://just-ai.com/|
The button’s name should be no longer 20 symbols.
Please, provide a full URL.
Template example for an inline button with a phone number
|Message text||Button name||Phone number|
|Please, contact us.||Call||+7 812 438-16-78|
The button’s name should be no longer 20 symbols.
The phone number should be provided in international format.
How to add buttons?
If you use i-Digital as a provider, you can add buttons for quick answers to the script.
Two kinds of buttons can be used by bots in WhatsApp.
Regular buttons allow making transitions between screens in the script. When the client clicks the button, the text message is sent to the chat.
Inline buttons are displayed under the bot message. Inline buttons can include either a URL the client will be redirected to after clicking the button or a phone number the client can call.
There are several restrictions when using buttons:
- All buttons should be registered in i-Digital.
- You cannot combine regular buttons and inline buttons in one message.
- You cannot add more than three regular buttons to one message.
- You cannot add more than two inline buttons to one message: there can be only one inline button with a URL and one inline button with a phone number.
Vonage is another official partner who can provide you with the official WhatsApp Business API. They will give you all the information you need on the pricing and integration process.
To publish your Aimylogic chatbot in WhatsApp Business API, go to your bot Channels settings and pick WhatsApp Business API from the list.
Specify your Service provider and customize the channel name in the pop-up window. The name will only be visible to you. You will also need API key and API Secret for authorization. You can find them in your personal account in Vonage.
After everything is processed, your bot will start working in WhatsApp Business API.
You can create a Jivo — WhatsApp integration. For more details, please contact Jivo support.
In this case you have to publish your chatbot only in the Jivo channel. Integration with WhatsApp should be made on the Jivo side.
You can connect WhatsApp to Bitrix24. For the integration, Twillio is used.
Read the instruction on how to connect WhatsApp to Bitrix24.
In this case you have to publish your chatbot only in the Bitrix24 channel. Integration with WhatsApp should be made on the Bitrix24 side.