Add intents to determine user intention of utterances
Add intents to your LUIS app to identify groups of questions or commands that have the same intention.
Intents are managed from top navigation bar's Build section, then from the left panel's Intents.
This document uses the preview LUIS portal.
In the LUIS preview portal, select Build to view intents.
On the Intents page, select + Create.
In the Create new intent dialog box, enter the intent name, for example
ModifyOrder, and select Done.
The intent needs example utterances.
Add an example utterance
Example utterances are text examples of user questions or commands. To teach Language Understanding (LUIS) when to predict this intent, you need to add example utterances to an intent. LUIS needs in the range of 15 to 30 example utterances to begin understanding the intent. Do not add example utterances in bulk. Each utterance should be carefully chosen for how it is different than examples already in the intent.
On the intent details page, enter a relevant utterance you expect from your users, such as
Deliver a large cheese pizzain the text box below the intent name, and then press Enter.
LUIS converts all utterances to lowercase and adds spaces around tokens such as hyphens.
Intent prediction errors
An example utterance in an intent might have an intent prediction error between the intent the example utterance is currently in and the intent determined during training.
To find utterance prediction errors and fix them, use the Filter options of Incorrect and Unclear combined with the View option of Detailed view.
When the filters and view are applied, and there are example utterances with errors, the example utterance list shows the utterances and the issues.
Each row shows the current training's prediction score for the example utterance, the nearest rival's score, which is the difference in these two scores.
To learn how to fix intent prediction errors, use the Summary Dashboard. The summary dashboard provides analysis for the active version's last training and offers the top suggestions to fix your model.
Using the contextual toolbar
The context toolbar provides other actions:
- Edit or delete example utterance
- Reassign example utterance to a different intent
- Filters and views: only show utterances containing filtered entities or view optional details
- Search through example utterances
Train your app after changing model with intents
Learn more about adding example utterances with entities.