【发布时间】:2018-12-20 07:36:10
【问题描述】:
我正在使用 Node.js Fulfillment SDK (https://github.com/dialogflow/dialogflow-fulfillment-nodejs),我想集成 de DialogflowConversation 以便访问用户存储。
我正在尝试使用这个简单的代码:
let conv = agent.conv();
conv.ask("HEY");
agent.add(conv);
但服务器因此异常而失败:
Error: No responses defined for platform: ACTIONS_ON_GOOGLE
at V2Agent.sendResponses_ (/srv/node_modules/dialogflow-fulfillment/src/v2-agent.js:243:13)
at WebhookClient.send_ (/srv/node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:505:17)
at promise.then (/srv/node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:316:38)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
我目前正在使用这个库:
"dependencies": {
"firebase-admin": "^5.13.1",
"firebase-functions": "^2.0.2",
"dialogflow-fulfillment": "^0.6.1",
"actions-on-google": "^2.5.0",
"i18n": "^0.8.3"
}
我做错了什么?
谢谢
【问题讨论】:
-
您能否发布您的整个意图处理程序,以便我们查看返回的内容?
标签: node.js dialogflow-es actions-on-google dialogflow-es-fulfillment