I am creating a multi-dialog chatbot with Microsoft bot framework using node.js
bot is connecting with LUIS for NLP. when the intent is matching dialog is triggering without any issues. but when it comes to a none matching dialog I want to trigger this Sorry, I don't know. :( this is the default dialog
message. my code is as below and it is not working as expected for none matching intents.
I noted that every time I typed a word phrase which is not matched to any of the intents it triggers the previously matched intent dialog.
I don't know what's wrong with this code. I followed the below solutions but none work for me
const bot = new builder.UniversalBot(new builder.ChatConnector({
appId: process.env.MicrosoftAppId,
appPassword: process.env.MicrosoftAppPassword
}));
bot.dialog(vacanciesDialog1.id, vacanciesDialog1.waterfall).triggerAction({ matches: vacanciesDialog1.name });
bot.dialog(gratuityDialog.id, gratuityDialog.waterfall).triggerAction({ matches: gratuityDialog.name });
bot.dialog(slipsDialog.id, slipsDialog.waterfall).triggerAction({ matches: slipsDialog.name });
default dialog as following if any dialog is not matched
bot.dialog('/', [
(session, args, next) => {
session.send(`Sorry, I don't know. :( this is the default dialog`);
}
])