Implementing a Chatbot

Last updated: 2024-04-16Contributors
Edit this page

Below is the detail of the different information you will have to provide while initializing the multi-channel bot, as well as the outlines of each part and the condition tests to be done at the moment of launching of the integration.

Testing process

During the testing process, it is recommended to use a source for the test. This allows to test the integration of the multi-channel bot on RingCX’s side in the real conditions of production without impacting all agents already using RingCX Digital.

After you familiarize yourself with the various flows for processing customer inquiries via a bot, we can distill the process of creating a Bot down even further into the following steps.

  1. Build a service to receive notifications of new messages.
  2. Build an AI to determine how to handle an incoming message.
  3. Take action on the message

Let's explore each of these steps in greater detail.

Receive a new message notification

RingCX Digital will send an event notifying you of a new message posted by a customer to a URL via a "webhook". The process of creating and validating a webhook endpoint is discussed in greater detail within Creating Webhooks.

Once the Webhook has been created and validated, RingCX will begin transmitting via HTTP POST event messages corresponding to the channels associated with the corresponding webhook and endpoint URL of your choice.

Sample New Message Notification

          "body":"This is just one more test email, sent automatically",

          "thread_title":"This is a nagios check thread, please don't delete!",

When your service receives a new message notification, it must respond with an HTTP status code of 200, otherwise RingCX will consider the message delivery a failure, and will attempt to resend the webhook again.

Webhook Disablement

After 10 unsuccessful delivery attempts of a notification via a webhooks (spread out over 24 hours) the Webhook will be automatically disabled.

Process the incoming message

Upon receiving a new message, it is up to your bot or service to determine the best way to respond to the customer. This is where you engage whatever workflows are most appropriate for your service and the inquiry posted by the customer.

When your service has determined the best course of action to take, it should post a message back to the customr.

Take action

Your bot can take any number of actions as it relates to incoming message. The most common of which being to post a reply. Here are all the actions a bot might take in response to an incoming message: