嗨,我正在寻找代码,在那里我可以读取对话框中的用户话语,并找到执行业务逻辑的实体。我使用的是RegEx识别器,而不是LUIS。我能够通过用户输入调用正确的意图。以下是代码
bot.recognizer(new builder.RegExpRecognizer( 'searchProductsIntent', /^search products in \w+$|^please get products of \w+$/i));
bot.dialog("searchProductsKk", function (session) {
session.send("I am intent");
session.endConversation("Ok, I'm intent.");
//Logic:I want to read the user utterance here for eg., search products in **kodak**. I want to read the search term "kodak" from utterance to search kodak products.
}).triggerAction({ matches: 'searchProductsIntent' });我在任何地方都找不到相关的示例代码。
https://stackoverflow.com/questions/51208582
复制相似问题