You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/LUIS/luis-get-started-get-intent-from-browser.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,8 @@
1
1
---
2
2
title: "Quickstart: Get intent with browser - LUIS"
3
-
titleSuffix: Azure Cognitive Services
4
3
description: In this quickstart, use an available public LUIS app to determine a user's intention from conversational text in a browser.
5
-
services: cognitive-services
6
-
author: diberry
7
-
manager: nitinme
8
-
ms.custom: seodec18
9
-
ms.service: cognitive-services
10
-
ms.subservice: language-understanding
11
4
ms.topic: quickstart
12
-
ms.date: 02/03/2020
13
-
ms.author: diberry
5
+
ms.date: 04/20/2020
14
6
#Customer intent: As an developer familiar with how to use a browser but new to the LUIS service, I want to query the LUIS endpoint of a published model so that I can see the JSON prediction response.
15
7
---
16
8
@@ -22,29 +14,31 @@ To understand what a LUIS prediction endpoint returns, view a prediction result
22
14
23
15
In order to query a public app, you need:
24
16
25
-
* Your own Language Understanding (LUIS) Authoring or Prediction key which can be obtained from [LUIS Portal (Preview)](https://preview.luis.ai/). If you do not already have a subscription to create a key, you can register for a [free account](https://azure.microsoft.com/free/).
26
-
* The public app's ID: `df67dcdb-c37d-46af-88e1-8b97951ca1c2`.
17
+
* Your Language Understanding (LUIS) resource information:
18
+
***Prediction key** - which can be obtained from [LUIS Portal](https://www.luis.ai/). If you do not already have a subscription to create a key, you can register for a [free account](https://azure.microsoft.com/free/).
19
+
***Prediction endpoint subdomain** - the subdomain is also the **name** of your LUIS resource.
20
+
* 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.
27
21
28
22
## Use the browser to see predictions
29
23
30
24
1. Open a web browser.
31
-
1. Use the complete URLs below, replacing `YOUR-KEY` with your own LUIS Authoring or Prediction key. The requests are GET requests and include the authorization, with your LUIS Authoring or Prediction key, as a query string parameter.
25
+
1. Use the complete URLs below, replacing `YOUR-KEY` with your own LUIS Prediction key. The requests are GET requests and include the authorization, with your LUIS Prediction key, as a query string parameter.
32
26
33
27
#### [V3 prediction request](#tab/V3-1-1)
34
28
35
29
36
30
The format of the V3 URL for a **GET** endpoint (by slots) request is:
37
31
38
32
`
39
-
https://westus.api.cognitive.microsoft.com/luis/prediction/v3.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2/slots/production/predict?query=turn on all lights&subscription-key=YOUR-KEY
33
+
https://YOUR-LUIS-ENDPOINT-SUBDOMAIN.api.cognitive.microsoft.com/luis/prediction/v3.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2/slots/production/predict?query=turn on all lights&subscription-key=YOUR-LUIS-PREDICTION-KEY
40
34
`
41
35
42
36
#### [V2 prediction request](#tab/V2-1-2)
43
37
44
38
The format of the V2 URL for a **GET** endpoint request is:
45
39
46
40
`
47
-
https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2?subscription-key=YOUR-KEY&q=turn on all lights
41
+
https://YOUR-LUIS-ENDPOINT-SUBDOMAIN.api.cognitive.microsoft.com/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2?subscription-key=YOUR-LUIS-PREDICTION-KEY&q=turn on all lights
48
42
`
49
43
50
44
1. Paste the URL into a browser window and press Enter. The browser displays a JSON result that indicates that LUIS detects the `HomeAutomation.TurnOn` intent as the top intent and the `HomeAutomation.Operation` entity with the value `on`.
@@ -100,7 +94,7 @@ In order to query a public app, you need:
100
94
Add `show-all-intents=true` to the end of the querystring to **show all intents**:
101
95
102
96
`
103
-
https://westus.api.cognitive.microsoft.com/luis/predict/v3.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2/slots/production/predict?query=turn on all lights&subscription-key=YOUR-KEY&show-all-intents=true
97
+
https://YOUR-LUIS-ENDPOINT-SUBDOMAIN.api.cognitive.microsoft.com/luis/predict/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
104
98
`
105
99
106
100
```JSON
@@ -133,7 +127,7 @@ In order to query a public app, you need:
133
127
Add `verbose=true` to the end of the querystring to **show all intents**:
134
128
135
129
`
136
-
https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2?q=turn on all lights&subscription-key={your-key}&verbose=true
130
+
https://YOUR-LUIS-ENDPOINT-SUBDOMAIN.api.cognitive.microsoft.com/luis/v2.0/apps/df67dcdb-c37d-46af-88e1-8b97951ca1c2?q=turn on all lights&subscription-key=YOUR-LUIS-PREDICTION-KEY&verbose=true
137
131
`
138
132
139
133
```json
@@ -169,12 +163,11 @@ In order to query a public app, you need:
169
163
}
170
164
```
171
165
172
-
173
-
<!-- FIX - is the public app getting updated for the new prebuilt domain with entities? -->
174
-
175
166
## Next steps
176
167
177
-
Learn more about the [V3 prediction endpoint](luis-migration-api-v3.md).
0 commit comments