Skip to main content

Infobip

Infobip serves as a Business Service Provider (BSP) for various channels such as SMS, WhatsApp, and Email. It offers APIs for messaging, customer support, marketing campaigns, and other communication requirements across various channels.

This document covers how to use the Infobip to create WhatsApp account and leverage their API for effective channel messaging.

Prerequisites to setup Infobip's WhatsApp

  1. Create an Infobip account
  2. Copy API Key and Base URL
    • Retrieve the API key and base URL from Infobip, as these are required for connection and testing.

Setup WhatsApp account on Infobip

To set up a WhatsApp account through Infobip, you need to sign up for the Infobip website.

Create an Infobip account

  1. Login to Infobip with your username and password.

  2. Enter the verification code sent to your registered phone number and click Verify.

    drawing
  • After verification, this will redirect you to the Infobip's home page.drawing

Retrieve Infobip's test WhatsApp number

After creating an Infobip account, you need to copy the test Whatsapp number to initiate WhatsApp conversations.

To retrieve WhatsApp test number, follow these steps:

  1. On the Infobip's Homepage, navigate to Channels and numbers > WhatsApp.

  2. Click Senders > More Options icon, and select Edit Configuration.

    • A test phone number will be generated.
  3. Copy the number and save it to your contacts to initiate WhatsApp conversations.

Set up Webhook URL

When a user sends a message to the Infobip number via WhatsApp, Infobip forwards the webhook payload to the specified webhook URL. This payload is formatted and processed by the yellow.ai AI engine, and the bot response is sent back to the user via the Infobip API.

To setup Webhook URL, follow the below step:

  1. Click Add URL to add the Webhook URL. To fetch your Webbook URL, contact Integrations team.

Retrieve API Key

  1. Go to Developer tools > API keys.

  2. Copy the API key.

Copy API Base URL

  1. Go back to the Homepage and copy the API base URL. You can also copy the API key from the Homepage.

Test Infobip's WhatsApp test phone number

After setting up a WhatsApp account through Infobip, you can test Infobip's WhatsApp test phone number in Sandbox environment.

note
  • The below steps are applicable only if you want to test your bot in the Sandbox environment.
  • To connect and test your bot in the Production environment, purchase a phone number from Infobip and contact the Integrations team with API base URL and API key details.

To test Infobip's WhatsApp sender, follow these steps:

  1. Go to Infobip Homepage > Channels and numbers > WhatsApp > Overview.

  2. Expand Activate Infobip test sender.

  3. Scan the QR code to open Infobip test sender (phone number) in WhatsApp or add Infobip test sender to your contacts in WhatsApp.

  4. Within WhatsApp, enter YELLOWTEST123 in the message field and click Send.

    drawing