【发布时间】:2020-07-02 11:42:50
【问题描述】:
我正在尝试在 Google 的 Dialogflow 中为 Google 助理提供的浏览轮播卡片(在丰富的响应中)功能。
我只得到如图所示的简单响应:。
粘贴在原始 API 响应下方(无浏览轮播卡响应实例)。
{
"responseId": "ea913388-8753-458c-b033-396512d1af42-e13762d2",
"queryResult": {
"queryText": "show browse carousel",
"parameters": {},
"allRequiredParamsPresent": true,
"fulfillmentMessages": [
{
"platform": "ACTIONS_ON_GOOGLE",
"simpleResponses": {
"simpleResponses": [
{
"textToSpeech": "sample text"
}
]
}
},
{
"platform": "ACTIONS_ON_GOOGLE"
},
{
"text": {
"text": [
""
]
}
}
],
"intent": {
"name": "projects/leafy-winter-268704/agent/intents/bd457567-02c8-4e15-aca7-c32adfcb45f2",
"displayName": "sampleintent"
},
"intentDetectionConfidence": 1,
"languageCode": "en"
}
}
这是模拟器的响应。触发带有浏览轮播的意图时,机器人将断开连接。
我这样做的方式是否正确?有什么办法可以解决这个问题?
【问题讨论】:
标签: json google-cloud-platform dialogflow-es actions-on-google dialogflow-es-fulfillment