Chatbots
RingCX Digital allows developers to create automated agents, or bots, to assist in processing client inquiries. Bots can help in the following ways:
- Pre-qualify a client inquiry
- Augment incoming inquiries with additional data about the customer or request
- Automate the handling of common customer/client inquiries or interactions
Before you begin...
This document aims to describe the process of integration of a multi-channel bot within the RingCX architecture. It does not describe the operating of the tools used for the integration nor does it explain the life-cycle of messages within RingCX Digital. A thorough knowledge of the RingCX tools and of its operating is necessary to comprehend the entire process described in this documentation.
Below is a list of documentation that we recommend you read carefully beforehand:
-
RingCX Webhook API - Functionality that allows automatic events concerning the message’s life-cycle from the RingCX Digital Platform to be sent to a predefined url
-
RingCX REST API - RingCX Digital’s API which allows to retrieve data stored in it.
Bot Architecture
RingCX Bots work primarily through what we call a "proxy," or an intermediary service that brokers the interaction between the RingCX Digital's API and an AI engine. The proxy is responsible for processing incoming events from RingCX, determining the appropriate course of action to take by interfacing with the bot's AI, and finally formulating responses to the customer when applicable. The components of a RingCX Bot integration are therefore the following:
- RingCX Digital
- Bot Proxy
- Bot AI
You can see the relationship between these components clearly in the diagram below.
Bot Interaction Flow
In an ideal interaction within this architecture, the following steps will be followed.
- RingCX Digital receives a message posted by a customer.
- RingCX Digital posts an event notification via a webhook to notify the bot of the newly posted message.
- The Bot Proxy fetches additional information if necessary via the RingCX REST API.
- The Bot Proxy sends all the gathered information to its Bot AI.
- The Bot AI formulates an answer according to the data it has received.
- The Bot AI transmits its generated answer back to the Bot Proxy.
- The Bot Proxy formats the answer.
- The Bot Proxy submits the formated answer via the RingCX REST API.
- Finally, the answer is transferred to the customer via RingCX.
The diagram below shows this interaction sequence as well.
Interventions
Not pictured above is the optional step of signaling that a response is required from a human agent, referred to as an "intervention." The responses a bot generates do not automatically create an intervention. Instead, when human interaction is required, an intervention can be created via the API. This provides operators with better analytics about the bot's process and allows traceability of interventions in the CRM.
Handling Failures
The failure scenario corresponds to the process during which the AI is not able to generate an answer to the message sent by the proxy. When this happens, the following workflow is recommended:
- RingCX Digital receives a message posted by a customer.
- RingCX Digital posts an event notification via a webhook to notify the bot of the newly posted message.
- The Bot Proxy fetches additional information if necessary via the RingCX REST API.
- The Bot Proxy sends all the gathered information to its Bot AI.
- The Bot AI fails to generate an answer.
- The Bot AI notifies the Bot Proxy of its failure to generate a response.
- The Bot Proxy determines an appropriate way to process the failure.
- The Bot Proxy changes the category assigned to the chat thread to a category visible to human agents.
- A Human Agent responds to the customer request.
- The Human Agent's answers are transmitted to the customer.
The diagram below describes this process as well.
Best Practices
- We recommend to use bots on private channels or at least on a third-party source connected via an SDK. However it is not recommended to upload RingCX on public platforms such as Facebook, Twitter, etc because automatic messages are often banned.