Libraries and Intent Management
Last updated
Was this helpful?
Last updated
Was this helpful?
An Intent is a fundamental unit in Converse. It represents a piece of information the users can ask for, contains associated answers, and a part of a dialog. It is an intention conveyed in a user message which triggers some action. Each intent triggers a direct answer or guided conversational flow. A guided conversational flow is a series of actions linked together with a set of conditions and triggers another state of action (see Intent & Content Building)
Libraries are similar to folders where Intents can be kept and organized. You can create new Libraries at any time, and move Intents between them.
It is good practice to name Libraries based on sub-domains of knowledge. For example, a Bot covering the Human Resources domain, there may be Libraries for Recruitment, Onboarding, Leave Policy, and so on.
Intent Dashboard is the area where intents and libraries are displayed. This is where you can manage the intents assigned to your own bot.
It is divided into 3 main sections:
Bot Selector
Libraries Side Panel
Management and Teaching View
Bot Selector is located on the top left side of the navigation bar. It allows you to select the current active bot. Once the bot is selected, it will filter the available libraries assigned to your bot.
Select a Current Active Bot
Displays current active Bot which you have Owner and Edit permissions
Displays a list of libraries linked to the current active Bot
This is where the list of libraries and number of intents assigned to the Current Active Bot can be seen.
Enter Library Name (required)
Select the Bot you want to create the Library for.
Click "Create"
Then, the new Library will be created and displayed on the Library Side Panel
When a Bot is first created, there will be 2 Default Libraries preloaded.
System Library
Smalltalk Library
This Library contains special Intents which are automatically triggered by Converse to support default system behaviour (e.g. Initial ‘Hello’ message).
Here are some of the important System Intents you should know:
Intent Name
When is it triggered?
Hello
When a first-time user opens the chat interface
Hello again
When a returning user opens the chat interface
NoInfo
When the Bot was not able to understand the user’s Intent for the first time
NoInfo2
Following NoInfo, the Bot was not able to understand the user for the second time in a row
Escalate
Following NoInfo2, the Bot was not able to understand the user for the third time in a row
Note: At this point, it is best practice to point the user towards some other means of getting help
Bye
The intent that is triggered when the user says "Bye" or similar, or ends the conversation through any other means
Intent Search Fallback Template
This intent will be triggered when NLU Intent Matcher yielded low-confidence results.
WhatAbout Template
This intent is triggered when the user entered a topic based input, which matched one of the Topic Tags in the Bot's Ontology Knowledge Base
This Library contains a set of generic responses for common user inputs like
"Who are you?"
"Who made you?"
"Are you a boy or a girl?"
By default, these Intents will be Deactivated. You can quickly activate them in bulk using the Bulk Intent Status Update function (see Bulk Change Intent Status)
This is where the list of Intents of a selected library is displayed. In this area, you can manage and filter the intents, as well as to perform various actions such as create, edit, activate, deactivate, archive, unarchive and delete.
Enter any text in the text field to filter an Intent by text. The following Intent's properties will be searched:
Intent Name
All the Training Phrases of the Intent
By default, the system will filter for only Active Intents. Other options include:
Inactive
Active and Inactive
Archived
Tags allow you to organize your Intents by topic terms that are meaningful to you. To learn how to Tag Intents, see Bulk Update Intents Tags
Select the Tag that you want to filter Intents by clicking on the checkbox beside the tag
You can select more than one tag to filter for at one go
Click Reset Filters to reset all Filters to their default setting.
Use the checkboxes on each Intent row to select the Intent for update
You can also select All Intents on the Current Page, or All the Intents in the Library
In the popup that appears, select the Destination Library for the Intents
In the popup that appears, select the Target Status for the Intents
Click Update
In the popup that appears:
Add Tags: Search for Tags to add, then press enter
Remove Tags: Click on the 'x' button in the Existing Tags section. Note: this will only remove Tags from Intents that had the Tag to begin with.
Now click on the Apply
The Updated Tags should be visible in the Intent Dashboard, in the Tags column
Before proceeding you should prepare an Excel document with the following columns, adding your own Q&A into each row of the spreadsheet. A sample Q&A is provided in the example below:
Question
Answer
Phrase
What are your opening hours?
Our opening hours are 9am to 6pm, Monday to Friday.
What are your opening hours?
When can I visit your office?
Another question variation
Yet another question variation
Notes:
Ensure that column headers are exactly the same as the table above
Specify each unique question variation on it's own line
Each Q&A must have Question, Answer and at least one Phrase
Select Library you wish to import into from the Library Side Panel.
Select the status of the Intent after the import is complete.
Draft - the Content only accessible on the Admin Chat UI, and is not visible to the Public
Published - the Intent is immediately available for use on the Public Chat UI
Drag the Excel file containing the Q&A into the dotted box outline or click browse to upload the file.
Before you upload a file:
Ensure the content label is always present at the top of the column. For example, “Question”.
Ensure that the content label form has not been changed.
Bulk Import displays the uploaded excel file
Intents imported with conflicting question text with other intents
Preview of the list of imported intents for review
If there are conflicting question text with other intents, follow the instructions to resolve the conflicts.
Click Continue.
Review the content that you want to add in the library.
The Teaching View is where you can train the bot with various phrases to match user’s utterances. Adding phrases is an alternative way of training the bot to ask questions or to understand a new form of questions.
In this view, displays a list of all the questions, answers, and added phrases that belong to that intent. You can also Teach the Bot to understand new variations of user input using the Teaching Tool.
Usage of the Teaching Tool and related functions is explored in depth in Teaching Your Bot.
You can create a new Library by clicking on the button in the Libraries Side Panel. The following Popup will appear:
To move the selected Intents, click on the Folder icon
Click on the Icon to change the selected Intents statuses
Click on the icon to tag the selected Intents
You can bulk import Q&A using an Excel document to existing libraries by clicking under Intent Dashboard > Management View. This will generate the Intents and Phrases
Click on the button. The Import popup for configuration and excel uploading will be displayed.
Ensure not to upload an empty document.
Click . A new window displays the following:
A "Creating Intent" notification banner appears while the intents are being imported. Once done, the banner will disappear and your Intents would be imported successfully.