我是Microsoft Bot框架sdk4节点js的新手,我必须基于意图(自定义识别器)调用对话框,在MS bot SDK 3中,我们可以使用 builder.IntentDialog 做到这一点。将意图识别器指定为数组,并根据意图得分进行匹配,并触发匹配的对话框。 这是示例代码:
const intents = new builder.IntentDialog({
recognizers: [
QNARecognizer,
IntentRecognizer
]
});
intents.matches('count', 'Count');
intents.matches('filter', 'Filter');
bot.dialog('/', intents);
bot.dialog('Count', [DialogA]);
bot.dialog('Filter', [DialogB]);
我如何使用节点js在MS bot sdk4版本中做到这一点