根据MS bot sdk4中的意图选择对话框

时间:2020-10-19 05:25:34

标签: node.js microsoft-bot-framework

我是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版本中做到这一点

0 个答案:

没有答案