Alexa intent slot AMAZON.LITERAL 导致构建失败
Alexa intent slot AMAZON.LITERAL causes failed build
我正在尝试在我的 Alexa 技能中使用 AMAZON.LITERAL
插槽类型,但是当我尝试构建时,我看到了这个错误:
Build Failed
Slot name "{What}" is used in a sample utterance but not defined in the intent schema. Error code: UndefinedSlotName - Thursday, Apr 12, 2018, 2:08 PM
插槽名为 What
,我 100% 确定它已定义。如果我将插槽类型更改为除 AMAZON.LITERAL
.
之外的任何内容,它会成功构建
这是我的整个模型:
{
"interactionModel": {
"languageModel": {
"invocationName": "chores",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "Remember",
"slots": [
{
"name": "Who",
"type": "AMAZON.Person"
},
{
"name": "When",
"type": "AMAZON.DATE"
},
{
"name": "What",
"type": "AMAZON.LITERAL"
}
],
"samples": [
"remember {Who} {What} {When}"
]
}
],
"types": []
}
}
}
编辑:
这是我提交错误时从亚马逊得到的回复:
We are not supporting AMAZON.Literal slot type anymore and we ask
developer to use customer slot type is they have some set of values
but if not then you can use AMAZON.SearchQuery where you will get the
whole query which customer is looking for and same you can use it in
you lambda function.
我遇到了同样的问题。这是解决方案。
您需要将示例话语定义为
Remember {Neil | Who} {died | What} {yesterday | When}
亚马逊强制要求提供示例输入以及您的广告位名称,因为 AMAZON.LITERAL 可以接受各种各样的值。
有关详细信息,请参阅 here。
以下面的格式添加一些示例语句,它应该可以工作:
remember {Jack|Who} {bring fruits|What} {tomorrow|When}
remember {Mark|Who} {pay bills|What} {today|When}
我正在尝试在我的 Alexa 技能中使用 AMAZON.LITERAL
插槽类型,但是当我尝试构建时,我看到了这个错误:
Build Failed
Slot name "{What}" is used in a sample utterance but not defined in the intent schema. Error code: UndefinedSlotName - Thursday, Apr 12, 2018, 2:08 PM
插槽名为 What
,我 100% 确定它已定义。如果我将插槽类型更改为除 AMAZON.LITERAL
.
这是我的整个模型:
{
"interactionModel": {
"languageModel": {
"invocationName": "chores",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "Remember",
"slots": [
{
"name": "Who",
"type": "AMAZON.Person"
},
{
"name": "When",
"type": "AMAZON.DATE"
},
{
"name": "What",
"type": "AMAZON.LITERAL"
}
],
"samples": [
"remember {Who} {What} {When}"
]
}
],
"types": []
}
}
}
编辑:
这是我提交错误时从亚马逊得到的回复:
We are not supporting AMAZON.Literal slot type anymore and we ask developer to use customer slot type is they have some set of values but if not then you can use AMAZON.SearchQuery where you will get the whole query which customer is looking for and same you can use it in you lambda function.
我遇到了同样的问题。这是解决方案。
您需要将示例话语定义为
Remember {Neil | Who} {died | What} {yesterday | When}
亚马逊强制要求提供示例输入以及您的广告位名称,因为 AMAZON.LITERAL 可以接受各种各样的值。
有关详细信息,请参阅 here。
以下面的格式添加一些示例语句,它应该可以工作:
remember {Jack|Who} {bring fruits|What} {tomorrow|When}
remember {Mark|Who} {pay bills|What} {today|When}