Skip to content

Commit 477b0ba

Browse files
committed
add new image, remove old images
1 parent dbb37d8 commit 477b0ba

24 files changed

+9
-8
lines changed

articles/cognitive-services/LUIS/luis-tutorial-bot-csharp-appinsights.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ In order to capture the LUIS information, the web app bot needs the **[Microsoft
145145

146146
In order to add data to application insights, you need the instrumentation key.
147147

148-
1. In a browser, in the [Azure portal](https://portal.azure.com), find your bot's **Application Insights** resource. Its name will have most of the bot's name, then random characters at the end of the name, such as `luis-nodejs-bot-johnsmithxqowom`.
148+
1. In a browser, in the [Azure portal](https://portal.azure.com), find your bot's **Application Insights** resource. Its name will have most of the bot's name, then random characters at the end of the name, such as `luis-csharp-bot-johnsmithxqowom`.
149149
1. On the Application Insights resource, on the **Overview** page, copy the **Instrumentation Key**.
150150
1. In Visual Studio, open the **appsettings.json** file at the root of the bot project. This file holds all your environment variables.
151151
1. Add a new variable, `BotDevAppInsightsKey` with the value of your instrumentation key. The value in should be in quotes.
@@ -156,6 +156,7 @@ In order to add data to application insights, you need the instrumentation key.
156156
1. Start the bot emulator and open the bot. This [step](luis-csharp-tutorial-bf-v4.md#use-the-bot-emulator-to-test-the-bot) is provided in the previous tutorial.
157157

158158
1. Ask the bot a question. This [step](luis-csharp-tutorial-bf-v4.md#ask-bot-a-question-for-the-book-flight-intent) is provided in the previous tutorial.
159+
1.
159160
## View LUIS entries in Application Insights
160161

161162
Open Application Insights to see the LUIS entries. It can take a few minutes for the data to appear in Application Insights.
@@ -164,18 +165,18 @@ Open Application Insights to see the LUIS entries. It can take a few minutes for
164165
1. When the resource opens, select **Search** and search for all data in the last **30 minutes** with the event type of **Trace**. Select the trace named **LUIS**.
165166
1. The bot and LUIS information is available under **Custom Properties**.
166167

167-
![Review LUIS custom properties stored in Application Insights](./media/luis-tutorial-appinsights/application-insights-luis-trace-custom-properties.png)
168+
![Review LUIS custom properties stored in Application Insights](./media/luis-tutorial-appinsights/application-insights-luis-trace-custom-properties_csharp.png)
168169

169170
## Query Application Insights for intent, score, and utterance
170171
Application Insights gives you the power to query the data with the [Kusto](https://docs.microsoft.com/azure/application-insights/app-insights-analytics#query-data-in-analytics) language, as well as export it to [Power BI](https://powerbi.microsoft.com).
171172
172-
1. Select **Log Analytics**. A new window opens with a query window at the top and a data table window below that. If you have used databases before, this arrangement is familiar. The query represents your previous filtered data. The **CustomDimensions** column has the bot and LUIS information.
173+
1. Select **Log (Analytics)**. A new window opens with a query window at the top and a data table window below that. If you have used databases before, this arrangement is familiar. The query represents your previous filtered data. The **CustomDimensions** column has the bot and LUIS information.
173174
1. To pull out the top intent, score, and utterance, add the following just above the last line (the `|top...` line) in the query window:
174175

175176
```kusto
176-
| extend topIntent = tostring(customDimensions.LUIS_luisResponse_luisResult_topScoringIntent_intent)
177-
| extend score = todouble(customDimensions.LUIS_luisResponse_luisResult_topScoringIntent_score)
178-
| extend utterance = tostring(customDimensions.LUIS_luisResponse_text)
177+
| extend topIntent = tostring(customDimensions.LUIS_topScoringIntent_Name)
178+
| extend score = todouble(customDimensions.LUIS_topScoringIntentScore)
179+
| extend utterance = tostring(customDimensions.LUIS_query)
179180
```
180181

181182
1. Run the query. The new columns of topIntent, score, and utterance are available. Select topIntent column to sort.

articles/cognitive-services/LUIS/luis-tutorial-bot-nodejs-appinsights.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ Open Application Insights to see the LUIS entries. It can take a few minutes for
197197
1. When the resource opens, select **Search** and search for all data in the last **30 minutes** with the event type of **Trace**. Select the trace named **LUIS**.
198198
1. The bot and LUIS information is available under **Custom Properties**.
199199

200-
![Review LUIS custom properties stored in Application Insights](./media/luis-tutorial-appinsights/application-insights-luis-trace-custom-properties.png)
200+
![Review LUIS custom properties stored in Application Insights](./media/luis-tutorial-appinsights/application-insights-luis-trace-custom-properties_nodejs.png)
201201

202202
## Query Application Insights for intent, score, and utterance
203203
Application Insights gives you the power to query the data with the [Kusto](https://docs.microsoft.com/azure/application-insights/app-insights-analytics#query-data-in-analytics) language, as well as export it to [Power BI](https://powerbi.microsoft.com).
204204

205-
1. Select **Log Analytics**. A new window opens with a query window at the top and a data table window below that. If you have used databases before, this arrangement is familiar. The query represents your previous filtered data. The **CustomDimensions** column has the bot and LUIS information.
205+
1. Select **Log (Analytics)**. A new window opens with a query window at the top and a data table window below that. If you have used databases before, this arrangement is familiar. The query represents your previous filtered data. The **CustomDimensions** column has the bot and LUIS information.
206206
1. To pull out the top intent, score, and utterance, add the following just above the last line (the `|top...` line) in the query window:
207207

208208
```kusto
Loading

0 commit comments

Comments
 (0)