Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
604 views
in Technique[技术] by (71.8m points)

actions on google - Unable to show List selection

I'm developing an Action where I want to display a list of items to select using a List, but Assistant raises the following error:

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

This is my Scene:

Scene

I have created a empty Type called prompt_option. The webhookResponse is the following:

{
  "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"
      ]
    }
  }
}

I can't figure what I'm doing wrong. Any advice? Thanks!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

While the property is clearly defined as optional, the display property of the type override requires an image.

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...