Answers
Answers over API

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.

Process flow

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

  1. Configure the Start test (opens in a new tab) method.

  2. Copy the testId that is generated.

  3. 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.

  4. After you finish the simulation, use the Stop test (opens in a new tab) method to stop the simulation.

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products