Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Language Understanding Intelligent Service (LUIS) will be fully retired on March 31, 2026. LUIS resource creation isn't available. Beginning on October 31, 2025, the LUIS portal will no longer be available. We recommend migrating your LUIS applications to conversational language understanding to benefit from continued product support and multilingual capabilities.
To understand what a LUIS prediction endpoint returns, view a prediction result in a web browser.
Prerequisites
In order to query a public app, you need:
- Your Language Understanding (LUIS) resource information:
- Prediction key - which can be obtained from LUIS Portal. If you do not already have a subscription to create a key, you can register for a Trial.
- Prediction endpoint subdomain - the subdomain is also the name of your LUIS resource.
- A LUIS app ID - use the public IoT app ID of
df67dcdb-c37d-46af-88e1-8b97951ca1c2. The user query used in the quickstart code is specific to that app.
Use the browser to see predictions
Open a web browser.
Use the complete URLs below, replacing
YOUR-KEYwith your own LUIS Prediction key. The requests are GET requests and include the authorization, with your LUIS Prediction key, as a query string parameter.The format of the V3 URL for a GET endpoint (by slots) request is:
https://YOUR-LUIS-ENDPOINT-SUBDOMAIN.api.cognitive.azure.cn/luis/prediction/v3.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2/slots/production/predict?query=turn on all lights&subscription-key=YOUR-LUIS-PREDICTION-KEYPaste the URL into a browser window and press Enter. The browser displays a JSON result that indicates that LUIS detects the
HomeAutomation.TurnOnintent as the top intent and theHomeAutomation.Operationentity with the valueon.{ "query": "turn on all lights", "prediction": { "topIntent": "HomeAutomation.TurnOn", "intents": { "HomeAutomation.TurnOn": { "score": 0.5375382 } }, "entities": { "HomeAutomation.Operation": [ "on" ] } } }To see all the intents, add the appropriate query string parameter.
Add
show-all-intents=trueto the end of the querystring to show all intents, andverbose=trueto return all detailed information for entities.https://YOUR-LUIS-ENDPOINT-SUBDOMAIN.api.cognitive.azure.cn/luis/prediction/v3.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2/slots/production/predict?query=turn on all lights&subscription-key=YOUR-LUIS-PREDICTION-KEY&show-all-intents=true&verbose=true{ "query": "turn off the living room light", "prediction": { "topIntent": "HomeAutomation.TurnOn", "intents": { "HomeAutomation.TurnOn": { "score": 0.5375382 }, "None": { "score": 0.08687421 }, "HomeAutomation.TurnOff": { "score": 0.0207554 } }, "entities": { "HomeAutomation.Operation": [ "on" ] } } }