I've intent A and B using LUIS.ai. In intent A I'm using builder.Prompts.text
to ask user couple questions. However, sometimes depending on the answer it would switched to intent B. I'm guessing it happens to match with my intent B even though I think it shouldn't. Is there a way to prevent this from happening? If I'm going through intent A's dialogs, I don't want any interruptions from other intents until I'm done. Here is an example of my code.
bot.dialog('A', [
function (session, args, next) {
...
},
function (session, args, next) {
...
},
function (session, args) {
...
}
]).triggerAction({
matches: 'A'
});
bot.dialog('B', [
function (session, args, next) {
...
},
function (session, args, next) {
...
},
function (session, args) {
...
}
]).triggerAction({
matches: 'B'
});
triggerAction
fromIntentDialog
is to usecancelAction
to be able to cancel the dialogs when user types "cancel/stop". Is there a way to do that if I place my intents under theIntentDialog
? – Spae