无法显示列表选择

Unable to show List selection

我正在开发一个 Action,我想在其中使用 List 向 select 显示项目列表,但 Google 助理引发了以下错误:

Unexpected internal error id=83ef0935-3d8f-473d-9e66-f96c886cd4cd.

这是我的 Scene:

我创建了一个名为 prompt_option 的空 TypewebhookResponse 如下:

{
  "responseJson": {
    "prompt": {
      "firstSimple": {
        "speech": "Vale, te muestro los últimos artículos"
      },
      "content": {
        "list": {
          "title": "Últimos artículos",
          "items": [
            {
              "key": "ITEM_1"
            },
            {
              "key": "ITEM_2"
            },
            {
              "key": "ITEM_3"
            }
          ]
        }
      }
    },
    "scene": {
      "name": "Articles",
      "slotFillingStatus": "COLLECTING",
      "slots": {
        "prompt_option": {
          "mode": "REQUIRED",
          "status": "SLOT_UNSPECIFIED",
          "updated": false
        }
      }
    },
    "session": {
      "id": "[...]" ,
      "params": {
        "choosen_option": "Portada"
      },
      "typeOverrides": [
        {
          "name": "prompt_option",
          "mode": "TYPE_REPLACE",
          "synonym": {
            "entries": [
              {
                "name": "ITEM_1",
                "synonyms": [
                  "Item 1",
                  "Primer item"
                ],
                "display": {
                  "title": "Artículo 1",
                  "description": "Descripción del artículo 1"
                }
              },
              {
                "name": "ITEM_2",
                "synonyms": [
                  "Item 2",
                  "Segundo item"
                ],
                "display": {
                  "title": "Título del artículo 2",
                  "description": "Resumen del artículo 2"
                }
              },
              {
                "name": "ITEM_3",
                "synonyms": [
                  "Item 3",
                  "Tercer item"
                ],
                "display": {
                  "title": "Título del artículo 3",
                  "description": "Resumen del artículo 3"
                }
              }
            ]
          }
        }
      ],
      "languageCode": ""
    },
    "user": {
      "locale": "es-ES",
      "params": {},
      "accountLinkingStatus": "ACCOUNT_LINKING_STATUS_UNSPECIFIED",
      "verificationStatus": "VERIFIED",
      "packageEntitlements": [],
      "gaiamint": "",
      "lastSeenTime": "2021-01-05T15:14:30Z"
    },
    "home": {
      "params": {}
    },
    "device": {
      "capabilities": [
        "SPEECH",
        "RICH_RESPONSE",
        "LONG_FORM_AUDIO"
      ]
    }
  }
}

我不知道我做错了什么。有什么建议吗?谢谢!

虽然 属性 明确定义为可选,但类型覆盖 的显示 属性 需要 图像。

{
  "name": "ITEM_1",
  "synonyms": [
    "Item 1",
    "Primer item"
  ],
  "display": {
    "title": "Artículo 1",
    "description": "Descripción del artículo 1",
    "image": IMAGE_REQUIRED
  }
}

Chad 对正确答案的补充:您不需要提供图像 url,但 Action 必须提供结构。因此,如果您的列表项中没有图片,您只需将 url 属性 留空即可:

{
    "name": "ITEM_1",
    "synonyms": [
        "Item 1",
        "Primer item"
    ],
    "display": {
        "title": "Artículo 1",
        "description": "Descripción del artículo 1",
        "image": {
            "url": ""
        }
    }
}