Test your LUIS app
Training and testing an app is an iterative process. After training your LUIS app, test it with sample utterances to see if the intents and entities are recognized correctly. If they're not, make updates to the LUIS app, train, and test again.
Test an utterance
Access your app by selecting its name on the My Apps page.
To access the Test slide-out panel, select Test in your application's top panel.
Enter an utterance in the text box and select Enter. You can type as many test utterances as you want in the Test, but only one utterance at a time.
The utterance, its top intent, and score are added to the list of utterances under the text box.
Clear test panel
To clear all the entered test utterances and their results from the test console, select Start over at the upper-left corner of the Test panel.
Close test panel
To close the Test panel, select the Test button again.
You inspect details of the test result in the Inspect panel.
With the Test slide-out panel open, select Inspect for an utterance you want to compare.
The Inspection panel appears. The panel includes the top scoring intent as well as any identified entities. The panel shows the result of the selected utterance.
Correct top scoring intent
If the top scoring intent is incorrect, select the Edit button.
In the drop-down list, select the correct intent for the utterance.
View sentiment results
If Sentiment analysis is configured on the Publish page, the test results include the sentiment found in the utterance.
Correct matched pattern's intent
If you are using Patterns and the utterance matched a pattern, but the wrong intent was predicted, select the Edit link by the pattern, then select the correct intent.
Compare with published version
You can test the active version of your app with the published endpoint version. In the Inspect panel, select Compare with published. Any testing against the published model is deducted from your Azure subscription quota balance.
View endpoint JSON in test panel
You can view the endpoint JSON returned for the comparison by selecting the Show JSON view.
Additional settings in test panel
If you have several LUIS endpoints, use the Additional Settings link on the Test's Published pane to change the endpoint used for testing. If you are not sure which endpoint to use, select the default Starter_Key.
View Bing Spell Check corrections in test panel
You can view the spelling corrections provided by Bing Spell Check v7 API in the JSON view of the Published panel of the Test pane.
To use this feature, you must have published the app, and have a Bing Spell Check service key. The service key is not stored and needs to be reset for each browser session.
Use the following to use the Bing Spell Check v7 service key in the Test pane.
In the test panel, on the Published pane, select Additional Settings.
In the pop-up dialog, enter your Bing Spell Check service key.
Enter a query with an incorrect spelling such as
book flite to seattleand select enter. The incorrect spelling of the word
fliteis replaced in the query sent to LUIS and the resulting JSON shows both the original query, as
query, and the corrected spelling in the query, as
If testing indicates that your LUIS app doesn't recognize the correct intents and entities, you can work to improve your LUIS app's accuracy by labeling more utterances or adding features.