我正在尝试在此文档之后添加一个带有内容列表的场景https://developers.google.com/assistant/conversational/prompts-selection#creating_a_list
,但是当我尝试调用该场景时,我遇到了这个错误: SlotRequested Failed to create event. ErrorId: 8e964c04-0f07-40ce-ba60-5497385796bd
。
这里是 webhook 返回的响应:
{
"responseJson": {
"prompt": {
"override": false,
"firstSimple": {
"speech": "Questa è una prova, scegli uno di questi tre:"
},
"content": {
"list": {
"title": "Alternative trovate:",
"items": [
{
"key": "Prova1"
},
{
"key": "Prova2"
},
{
"key": "Prova3"
}
]
}
},
"lastSimple": {
"speech": "Preferisci il primo, il secondo o il terzo?"
},
"suggestions": []
},
"scene": {
"name": "chooseAlternativeDealers",
"slotFillingStatus": "COLLECTING",
"slots": {
"dealer_options": {
"mode": "REQUIRED",
"status": "SLOT_UNSPECIFIED",
"updated": false
}
}
},
"session": {
"id": "ABwppHHy6xRy_5IK0uOf9pplFJgbbJkT6qSs_HioKvJ7bxuXIpwPvO3qONuforo1SWISquCM_D9UNs6GYCw",
"params": {
"ALTERNATIVES_EXIT_CODE": 0
},
"typeOverrides": [
{
"name": "dealer_options",
"mode": "TYPE_REPLACE",
"synonym": {
"entries": [
{
"name": "Prova1",
"synonyms": [
"Il primo"
],
"display": {
"title": "Prova1",
"description": "desc1",
"image": {
"url": "https://developers.google.com/assistant/assistant_96.png"
}
}
},
{
"name": "Prova2",
"synonyms": [
"Il secondo"
],
"display": {
"title": "Prova2",
"description": "desc2",
"image": {
"url": "https://developers.google.com/assistant/assistant_96.png"
}
}
},
{
"name": "Prova3",
"synonyms": [
"Il terzo"
],
"display": {
"title": "Prova3",
"description": "desc3",
"image": {
"url": "https://developers.google.com/assistant/assistant_96.png"
}
}
}
]
}
}
],
"languageCode": ""
},
"user": {
"locale": "it-IT",
"params": {},
"accountLinkingStatus": "ACCOUNT_LINKING_STATUS_UNSPECIFIED",
"verificationStatus": "VERIFIED",
"lastSeenTime": "2020-11-01T19:31:11Z",
"packageEntitlements": []
},
"home": {
"params": {}
},
"device": {
"capabilities": [
"SPEECH",
"RICH_RESPONSE",
"LONG_FORM_AUDIO"
]
}
}
}
这是引发错误的事件 (slotRequested) 的日志:
Failed to create event. ErrorId: d52e7c20-3bd6-4106-a03a-d840aef86b2b.
{
"slotRequested": {},
"responses": [
{
"firstSimple": {
"speech": "Questa è una prova, scegli uno di questi tre:",
"text": "Questa è una prova, scegli uno di questi tre:"
},
"content": {
"list": {
"title": "Alternative trovate:",
"items": [
{
"key": "Prova1"
},
{
"key": "Prova2"
},
{
"key": "Prova3"
}
]
}
},
"lastSimple": {
"speech": "Preferisci il primo, il secondo o il terzo?",
"text": "Preferisci il primo, il secondo o il terzo?"
}
}
]
}
------ 多次尝试后编辑 ------
为了解决这个问题,我关注了这篇文章,目前我不再有错误SlotRequested Failed to create event. ErrorId: 8e964c04-0f07-40ce-ba60-5497385796bd
,但列表没有呈现。现在,如果我选择其中一种可能的选择,则插槽(被代码覆盖)是正确匹配的,因此问题似乎仅在列表呈现上。