【发布时间】:2018-06-23 20:57:45
【问题描述】:
我正在使用 DialogFlow 的 webhook,当我按如下方式发送 JSON 响应时:
{
"fulfillmentText": "This is a text response",
"source": "example.com",
"payload": {
"google": {
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "this is a simple response"
}
}
]
}
}
}
}
但在网络服务器响应后我收到错误MalformedResponse 'final_response' must be set.。
【问题讨论】:
-
请分享您的 webhook 代码的相关部分。只是一个疯狂的猜测,您在 Dialogflow 控制台中的意图名称是否与 app.intent 中的字符串匹配?如果不匹配,您可能需要在控制台中删除意图并重新创建它。试试看。
-
如果您通过模拟器进行测试,请更新您的问题以包含“调试”选项卡的内容。
标签: actions-on-google dialogflow-es