Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

UChat with its native integration with Open AI has now released an intent detection system, which enables the users to collect parameters based on the intent of the query provided. The system works like Google’s Dialogflow where you make intents and fill out entities.

Table of Contents
minLevel1
maxLevel6
outlinefalse
stylenone
typelist
printablefalse

The feature only works when you have your Open AI integrated, hence we will establish a connection betwee OpenAI and UChat.

...

Follow the steps to integrate your OpenAI account with your Uchat account.

Visit https://platform.openai.com

Login using your credentials.

Image RemovedImage Added

Click on top-right corner on the “Personal” tab.

Image RemovedImage Added

From here, you will be able to generate an api key.

...

Paste your api key inside Uchat and click “Save” to establish the connection.

Image RemovedImage Added

Your account has successfully been connected with Uchat.

...

Afterwards click on “+ New Intent”

Image RemovedImage Added

Inside the creation window, you will see the following settings

Image RemovedImage Added

Click on +Add Parameter to create one

Image RemovedImage Added

For List of values tab, we give the users some options to choose from. This is used when you want to set a limitation to the data you received from the intent.s reply.

Image RemovedImage Added

You can add values by clicking on the “Values” tab and entering the probable values for the intent.

Image RemovedImage Added

At the last, you will have to choose a subflow to trigger based on the status of your intent.

...

...

Clearing User Fields After Intent Is Complete

After an intent cycle is completed, Uchat saves the intent parameter values inside the custom userfields. Hence if the user next time interacts with the bot again, old values are fetched.

...

You can build this automation within the flow by saving the intents directly in JSON CUF instead of individual custom user fields and then placing an action node at the very of your attached subflow to clear the values.

Image Removed

...

Image Added

Intents Working Inside the Bot

Intents are triggered just like you would trigger a keyword automation or a comments automation. A user will type a question or a statement and then following the hierarchy of automations, the Intent feature will check the intent of the sentence based on the keywords used in the sentence and the confidence score that you provide it to work with.

...

Once an intent is successfully matched, it will trigger the parameter values collection until all the parameters are filled before triggering the final attached flow.

Image RemovedImage Added

The following statement should trigger an appointment setting intent if you have configured it that way. And thats how the intent system works on the live bot.

...

Token Utilization

For intent detection feature, the tokens are utilized based on the number of parameters the intent has to fulfill and the confidence score. That means the higher the number of parameters, the higher the token consumed, similarly the higher the confidence score, the higher the token consumed when detecting intent.