Я пытаюсь отправить полезную нагрузку из моей службы с помощью базовой карты, а отправляемая информация выглядит так, как показано ниже:
{
"fulfillmentMessages": [
{
"simpleResponses": {
"simpleResponses": [
{
"displayText": "A 13-inch laptop with advanced color, sound and streaming for an immersive viewing experience. Featuring Dell Cinema and next-generation InfinityEdge.",
"ssml": "<speak>Here's the first item I found. XPS 13 on sale for $849.99. To navigate you can say Next, Previous, or First. You can also say 'More Details' or 'Text me the product link'.</speak>"
}
]
}
},
{
"basicCard": {
"buttons": [
{
"openUriAction": {
"uri": "https://www.dell.com/en-us/shop/productdetails/xps-13-9370-laptop/dycwi622h"
},
"title": "See on Dell.com"
}
],
"formattedText": "A 13-inch laptop with advanced color, sound and streaming for an immersive viewing experience. Featuring Dell Cinema and next-generation InfinityEdge.",
"image": {
"accessibilityText": "product image",
"imageUri": "https://i.dell.com/is/image/DellContent//content/dam/global-site-design/product_images/dell_client_products/notebooks/xps_notebooks/13_9370/global_spi/rose_gold/notebook-xps-13-9370-best-of-500-rosegold-ng.psd?fmt=png-alpha"
},
"subtitle": "$849.99",
"title": "XPS 13"
}
}
]
}
У меня возникли проблемы с выбрасыванием Действия при Googleошибки с моей полезной нагрузкой, определенной следующим образом:
MalformedResponse
Failed to parse Dialogflow response into AppResponse because of empty speech response.
Я не уверен, в чем здесь проблема, или почему Actions в Google выдает это исключение, когда тестер Dialogflow показывает нашу карту как ожидалось.
Как правильно отформатировать полезную нагрузку, чтобы как Действия в Google, так и Диалоговый поток отображались как положено?