【发布时间】:2018-02-28 13:49:23
【问题描述】:
我在使用 Dialogflow 的 Fulfillment/Webhook 时遇到了一些问题。我创建了一个 Intent,它接受一个参数作为输入(引脚号)。该 pin 在服务器端使用 Webhook 调用“验证”。即,选中“为此意图启用 webhook 调用”。该方法在验证成功时返回肯定消息。
只要我使用 Dialogflow 控制台的“立即尝试”窗口,整个场景就可以完美运行。但是当我尝试在 Google Assistant Simulator 中对其进行测试时,它会响应:
Screen from Actions on Google page > Response
还有,
Screen from Actions on Google page > Validation Errors
这是意图:
Intent screen from DialogFlow Agent page
我设置为从 Webhook 调用返回的响应:
"messages": [
{
"speech": "Thanks. Your pin has been confirmed.",
"type": 0
}
在此处找到示例响应:https://dialogflow.com/docs/fulfillment
请注意,我已经检查过Error "Empty speech response"。它没有帮助。
【问题讨论】:
标签: json model-view-controller actions-on-google dialogflow-es