There are multiple ways to start a dialog based on the intent retrieved by a recognizer. Not everyone is using the IntentDialog in their bots. At the moment botbuilder-instrumentation only captures the intent while using an Intent Dialog.
I am not sure (yet) how those events can be captured in a better way. Hooking in on LuisRecognizer.recognize should work, however it would be nice if all recognizers are supported. Maybe the intent should be captured and sent to Application Insights on the creation / initialisation of a new dialog.
bot.dialog('/', [
(session: Session) => {
session.endDialog('message');
}
]).triggerAction({
matches: 'default'
});
vs
const dialog = new builder.IntentDialog({ recognizers: [recognizer] });
bot.dialog('/', dialog);
dialog.matches('default', [
function (session, args, next) {
session.endDialog('message');
}
]);
There are multiple ways to start a dialog based on the intent retrieved by a recognizer. Not everyone is using the IntentDialog in their bots. At the moment
botbuilder-instrumentationonly captures the intent while using an Intent Dialog.I am not sure (yet) how those events can be captured in a better way. Hooking in on LuisRecognizer.recognize should work, however it would be nice if all recognizers are supported. Maybe the intent should be captured and sent to Application Insights on the creation / initialisation of a new dialog.
vs