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
{{ message }}
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: samples/21.corebot-app-insights/README.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# CoreBot
1
+
# CoreBot with Application Insights
2
2
3
3
Bot Framework v4 core bot sample.
4
4
@@ -12,21 +12,29 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
12
12
13
13
## Prerequisites
14
14
15
-
This sample **requires** prerequisites in order to run.
15
+
### Install Python 3.6
16
16
17
17
### Overview
18
18
19
-
This bot uses [LUIS](https://www.luis.ai), an AI based cognitive service, to implement language understanding.
20
-
21
-
### Install Python 3.6
22
-
19
+
This bot uses [LUIS](https://www.luis.ai), an AI based cognitive service, to implement language understanding
20
+
and [Application Insights](https://docs.microsoft.com/azure/azure-monitor/app/cloudservices), an extensible Application Performance Management (APM) service for web developers on multiple platforms.
23
21
24
22
### Create a LUIS Application to enable language understanding
25
23
26
24
LUIS language model setup, training, and application configuration steps can be found [here](https://docs.microsoft.com/azure/bot-service/bot-builder-howto-v4-luis?view=azure-bot-service-4.0&tabs=cs).
27
25
28
26
If you wish to create a LUIS application via the CLI, these steps can be found in the [README-LUIS.md](README-LUIS.md).
29
27
28
+
### Add Application Insights service to enable the bot monitoring
29
+
Application Insights resource creation steps can be found [here](https://docs.microsoft.com/azure/azure-monitor/app/create-new-resource).
30
+
31
+
## Running the sample
32
+
- Run `pip install -r requirements.txt` to install all dependencies
33
+
- Update LuisAppId, LuisAPIKey and LuisAPIHostName in `config.py` with the information retrieved from the [LUIS portal](https://www.luis.ai)
34
+
- Update AppInsightsInstrumentationKey in `config.py`
35
+
- Run `python app.py`
36
+
- Alternatively to the last command, you can set the file in an environment variable with `set FLASK_APP=app.py` in windows (`export FLASK_APP=app.py` in mac/linux) and then run `flask run --host=127.0.0.1 --port=3978`
37
+
30
38
31
39
## Testing the bot using Bot Framework Emulator
32
40
@@ -50,8 +58,8 @@ If you wish to create a LUIS application via the CLI, these steps can be found i
-[Getting Started with Application Insights](https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Getting-Started-with-Application-Insights-for-ASP.NET-Core)
65
+
-[Filtering and preprocessing telemetry in the Application Insights SDK](https://docs.microsoft.com/azure/azure-monitor/app/api-filtering-sampling)
0 commit comments