Operator API
Operator API is the REST API that can be used to integrate customer engagement platforms with JAICP.
You can use the Operator API to connect any customer engagement platform to the chatbot project created on JAICP. When the agent application is integrated with the platform, data received by the chatbot during the conversation with the client is sent to the application.
You can use API methods to:
- Send a message or a file link to an agent.
- Select a group of agents for message processing.
- Pass additional client info to an agent.
- Subscribe to notifications used by the Operator API to notify about messages for the client, delivery of client messages, message closed by an agent or other events.
Getting started
-
Create a web server. It must support the following requests:
Method Description POST {apiUrl}/setWebhook
The method sets the URL where events will be routed to be processed by JAICP. GET {apiUrl}/getDestinations
Get available agent groups where events can be routed to. POST {apiUrl}/selectDestination
Create a session between the chatbot client and the selected agent. POST {apiUrl}/sendText
The client sent a message to the chat with the agent. POST {apiUrl}/sendFile
The client sent a file to the chat with the agent. POST {apiUrl}/closeChat
The client closed the chat with the agent. tipFor Operator API integration, specify the web server URL (apiUrl
) where Operator API requests will be routed to.{apiUrl}/setWebhook
will receive a request containing theurl
field in its body. The value of that field is JAICP webhook you need to route events to according to the specification. -
Create an Operator API channel and specify the URL of your web server in the API URL field.