Health Bot Custom Telemetry
Health Bot provides two types of reporting mechanisms. For out of the box functionality you can leverage the built-in reports dashboard. However, for more flexibility, Health Bot provides a custom telemetry integration with Application Insights.
For example, if your organization has specific business metrics that need to be measured or reporting requirements you can build out a custom dashboard with Application Insights and PowerBI.
To enable custom telemetry you need to create an Application Insights Resource in your Azure Subscription. Access the Health Bot Management portal and navigate to Integration > Secrets > Custom telemetry and provide the Application Insights Instrumentation key.
Custom Telemetry will include different types of events. Events are sent from the bot for all messages, built-in scenario and custom scenarios:
The Message event can include the message text that is sent between the bot and the end-user. This needs to be enabled separately, however you should be aware that the message text may include PHI provided by the end-user. Tenants are responsible for complying with any data privacy regulations applicable to data that is sent to your Application Insights account.
The StepExecuted event fires on any Statement or Prompt step in the scenario. This event is good for isolating responses to a specific question in your flow or for identifying users that taken a specific path in the scenario decision tree. This events contains details such as the Step ID, Step Response (if conversation text is enabled) and the Step type.
- BuiltinDialogOccurrence (in all built-in dialogs)
Logging functions You can also fire events programatically from within action steps in the scenario flow. Use the following functions to trigger an outcome event or a custom event with any name and any payload. This can help to track scenario parameters you have collected during the scenario.
Errors and exceptions To assist with debugging your scenarios we also pipe runtime data including errors and warnings and exceptions into your Application Insights account.
All the events and data is collected within the
Custom Events table and event data can be found in the
"Custom Dimensions" property. Depending on the type of event different data is collected. Most events include a
Conversation ID and
User ID so that you can follow the timeline for a specific conversation end to end according to the timestamps.
Once the data has been collected in Application Insights you can use different methods to analyse the data. For example, you can use log analytics to query the data in the Azure portal or PowerBI to create visualizations.