Infobip

The Infobip channel enables you to deploy DRUID bots on WhatsApp using Infobip’s communication platform. This integration makes it easy to connect your bot to WhatsApp and deliver conversational experiences through Infobip’s reliable messaging services.

This topic explains how to set up and configure the Infobip channel so you can seamlessly connect your DRUID bots with WhatsApp via Infobip.

Prerequisites

  • You have a published DRUID bot.
  • You have an active user account on the Infobip platform.

Step 1. Create Infobip API Key

  1. Sign in to the Infobip platform.
  2. Go to DEVELOPER TOOLS, and then select API Keys from the drop-down.
  3. In the API Keys page, click the CREATE API KEY button.
  4. In the Name field, enter a name for the API key.
  5. By default, the API key expires after one year. You can set a different Expiration date to match your security policies..
  6. In the API Scopes section, click on General, and then select the two available general scopes.
  7. In the API Scopes section, search for WhatsApp, and then select all the listed scopes.
  8. Click CREATE. A new API key is created.
  9. From the API Keys page, copy the API base URL and the API Key, you will need them to configure the channel in DRUID.

Step 2. Get Infobip phone number

  1. Go to CHANNELS AND NUMBERS and then select Numbers from the drop-down.
  2. Copy the phone number you want to use. For more information about managing numbers, see the Infobip documentation.

Now configure the Infobip channel in the DRUID Portal.

Step 3. Configure the Infobip channel in DRUID

  1. Log in the DRUID Portal and from the main menu, select your bot. The bot configuration page appears by default on the Details tab.
  2. Click the Channels tab, and then click Infobip. The channel info section expands.
  3. Fill in the fields as follows:
  4. Field Description
    API Host

    Enter the Infobip API URL in the following format:

    https://<Infobip API base URL>.

    Important!  The API base URL you copy from Infobip does not include https://. Make sure to add it; otherwise, the Infobip channel will not work.
    API key Enter the API key you copied from Infobip.
    Phone number Enter the phone number you copied from Infobip, without the + sign.

  5. Copy the Druid url (webhook) as you will need it to configure an Infobip notification profile.
  6. Click the Publish button and wait until the channel is activated.

Step 4. Create Infobip notification profile

  1. Go back to the Infobip platform.
  2. Go to DEVELOPER TOOLS, and then select Subscriptions Management from the drop-down.
  3. By default, the Subscriptions tab is selected. Click the Notification profiles tab.
  4. Click the CREATE NOTIFICATION PROFILE button. The 'Create notification profile' page appears.
  5. In the Notification profile name field, enter a profile name.
  6. In the Webhook URL field, enter the Druid url (webhook) you copied from the you copied from the DRUID Portal’s Infobip channel configuration.
  7. Note:  DRUID currently supports basic authentication for WhatsApp via Infobip.

  8. Click SAVE. The notification profile is created.
  9. You can now create an Infobip subscription for WhatsApp.

Step 5. Create WhatsApp notification subscription

To create a notification subscription for the WhatsApp channel:

  1. Click on the Subscriptions tab.
  2. Click the CREATE SUBSCRIPTION button. The subscription management wizard appears.
  3. In the Event subscription name field, enter a name.
  4. From the Channels area, select WhatsApp.
  5. Click NEXT.
  6. Select Inbound message as events to monitor for this subscription.
  7. Click NEXT.
  8. Optionally, you can filter event traffic based on various parameters.
  9. Click NEXT to continue.
  10. Select the Infobip notification profile you created at Step 4.
  11. Click NEXT.
  12. Review the subscription details.
  13. Click SAVE.

Users can now interact with the bot on WhatsApp using the configured phone number.