Before you begin
This article assumes that you understand the fundamentals of testing and training bots in Kore.ai and therefore focuses on the testing and training aspects specific to the universal bots. To refer to the fundamentals of testing and training bots in the Bots Builder, read Training your bot.
Overview: Testing the Bot
When many standard bots are linked together in a universal bot, the NLP settings may have to be optimized for several user utterances to accurately recognize the relevant bot and intent. Testing the universal bot is similar to testing a standard bot where you type a user utterance and analyze the results. However, in case of the universal bots, you do not just see the shortlisted intents for the utterance but also the bots to which they belong. The name of the bot is prefixed to the intent in the following syntax: Bot Name: Task Name
We will use the example of a travel portal’s universal bot that consists of two standard bots: Hotel Booking, Flight Booking for use as examples.
Testing a User Utterance
Follow these steps to test user utterances for universal bots:
- Open the universal bot for which you want to test the user utterances.
- Hover over the left navigation panel and click Testing -> Utterance.
- In the Type a user utterance field, enter the utterance that you want to test. For example: Check Status.
Understanding the Test Results
The result for test utterances fall into one of these three categories:
- Single Matched Intent: A task or user intent of one of the linked bots matched the input.
- If it is a correct match, you can provide additional training for the same task in the same bot to enhance its score, or you can also train a different task from another bot to recognize the utterance.
- If it is an incorrect match, click the Mark as Incorrect Match link next to the matched intent. Clicking the link allows you to select the task or intent from the same or another bot that should match.
- Multiple Matches with Same Scores: More than one task with the same recognition score matched the intent. These tasks can belong to one or more than one linked bots. Select the radio button next to the task that you want to match for the utterance.
- Unidentified Intent: The user input did not match any task in any of the linked bot. Train the bot as explained below to match the right bot and linked task.
Training the Universal Bot
You can train the universal bot to match with the correct linked bot and the correct task within the bot. Though you train the linked bot from the universal bot windows, the training is saved directly at the linked bot. Follow these steps to learn how to train the linked bots in a universal bot: