Skip to main content

Integrating any AI without coding

Introduction

In this tutorial, I will explain how to integrate any AI into Live Helper Chat without coding.

How it works

The workflow is simple:

  • Define AI REST API calls.
  • Define a bot that uses them.
  • Upon starting a conversation, set a uuid which acts as the current conversation handler for the third-party AI.

The REST API has only one request defined.

In the user parameters, we define an additional argument task_key, which is set directly in the bot and the request body.

In the output parsing, we have defined three possible combinations:

  • Standard message
  • Indication that the chat should be transferred to an operator
  • Indication to end the conversation

The bot itself needs only four triggers.

Chat started

This trigger is always executed if a visitor sends a message or clicks a button replied to by the bot (the meta_msg message field).

The trigger structure defines which method to execute when a visitor sends a message and which trigger to execute based on the bot's response. The response types are defined in the REST API itself.

Bot message send

This is a standard message received from the bot. Additionally, we set an additional chat variable based on the response, which we later reuse in the REST API call itself. This is required for the AI to know what the current conversation is about.

Transfer to Operator

This simply transfers the chat to an operator.

Default response

In this case, the default response acts as a conversation-ending trigger and displays a bot message.