I'm having issues using the bot.customAction for a simple QnA object, the expected result is to send "I'm wonderful as always, but thanks for asking!" if the user send "Fine and you?", "Well and you?", "Good and you?", I've tried 2 options as below
1st Option:
bot.customAction({
matches: /^Fine and you$|^Good and you$|^Well and you$/i,
onSelectAction: (session, args, next) => {
session.send("I'm wonderful as always, but thanks for asking!");
}
});
2nd Option:
bot.customAction({
matches: "Fine and you?"|"Good and you?"|"Well and you?",
onSelectAction: (session, args, next) => {
session.send("I'm wonderful as always, but thanks for asking!");
}
});
In the first option the matches only recognizes the exactly word without the question mark "?"
[BotFramework Emulator] Word recognized without the question mark "?"
In the second option nothing happened, just start the waterfall conversation
[BotFramework Emulator] Second option is ignored by bot and start the waterfall conversation
Thanks for your time!