找不到意图的Dialogflow IntentHandler:myIntent(Dialogflow V2) [英] Dialogflow IntentHandler not found for intent: myIntent (Dialogflow V2)
问题描述
由于我将Dialogflow升级为使用v2 API,所以出现以下错误:
找不到用于意图的Dialogflow IntentHandler: myIntent
由于某些原因,虽然动作名称相同,但我的意图不再被识别-myIntent。 / p>
这是我使用NodeJS(express V4)应用程序返回响应的方式:
dialogflowApp.intent('myIntent',(conv,{version})=> {
conv.close('test');
});
可能出了什么问题?
请确保 myIntent
在Dialogflow和NodeJS webhook函数中的拼写相同,否则会出现此错误。这是我在Webhook中编写和访问函数的方式:
//函数执行
dialogflowApp.intent(' myIntent',myIntentFunction);
//函数定义
函数myIntentFunction(conv,{version}){
conv.close(‘test’);
}
Since I upgraded my Dialogflow to use v2 API, I get the following error:
Dialogflow IntentHandler not found for intent: myIntent
For some reasons, my intent is no longer recognized altough the action name is identical - myIntent.
This is how I'm using my NodeJS (express V4) app to return a response:
dialogflowApp.intent('myIntent', (conv, {version}) => {
conv.close('test');
});
What could have gone wrong?
Make sure that myIntent
is spelled the same in Dialogflow and in your NodeJS webhook function, otherwise you'll get this error. This is how I write and access my functions in the webhook:
//Function execution
dialogflowApp.intent('myIntent', myIntentFunction);
//Function definition
function myIntentFunction(conv, {version}){
conv.close('test');
}
这篇关于找不到意图的Dialogflow IntentHandler:myIntent(Dialogflow V2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!