Answers over API
Answers APIs enable you to use your Answers chatbot with other platforms.
Available APIs
The following APIs are available.
Open channel API
EARLY ACCESS
The Open channel API enables you to exchange messages between your messaging platform and your Answers chatbot. You can build your own messaging application and connect it to the chatbot by using the Open channel API.
For more information, refer to the API documentation.
Advantages
- Instead of being restricted to a specific messaging platform, the API enables you to connect your chatbot to any platform.
- You do not need to configure the message processing in your platform. You can configure the processing in your chatbot.
Prerequisites
- Enable Open channel in your Infobip account and configure the Open channel sender.
- Create an Answers chatbot that uses the Open channel sender.
- Set up the webhook to receive messages from the chatbot.
How it works
The following image is an overview of how the Infobip Open channel API works.

Configure the chatbot
When creating a new chatbot, select the Open channel.
Answers API
EARLY ACCESS
Simulate the chatbot
Use the Answers API to simulate a conversation between the end user and the chatbot. The API request contains the message from the end user, and the API response contains the simulated response from the chatbot. The response is sent to the webhook that you configure.
You can create scripts to automate test scenarios. You can include attributes within the scripts.
Prerequisites
Configure a webhook to receive the responses from the chatbot.
Available methods
Process
-
Configure the Start test (opens in a new tab) method.
-
Copy the testId that is generated.
-
Configure the Send message (opens in a new tab) method. Use the testId that you copied.
The response from the chatbot is sent to your webhook.
-
After you finish the simulation, use the Stop test (opens in a new tab) method to stop the simulation.