我的Alexa技能一直被拒绝,原因是: '请注意,“帮助”无法到达技能的终点。'
我使用skillbuilder来构建技能,默认情况下,它实现了帮助意图。你知道吗
我在lambda上运行的python代码有一个用于帮助目的的处理程序(完整的代码可以在https://github.com/kkoppenhaver/last-episode/blob/master/skill.py中看到)
## Handle the help intent
if intent_name == "AMAZON.HelpIntent" or intent_name == "TroubleshootIntent":
return build_response("Last Episode", "Welcome to Last Episode. Ask me about a T.V. series. For example, when was the last episode of How I Met Your Mother?", False)
当我使用它们的测试接口进行测试时,help intent会按预期返回这个文本字符串。你知道吗
然而,它继续遭到拒绝。有什么简单的东西我遗漏了吗?我已经向亚马逊提交了一个支持请求,但是我真的很想得到批准,因为这是一个相对简单的技能。你知道吗
如有任何想法,我们将不胜感激。你知道吗
编辑:完整架构
{
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
"name": "AMAZON.HelpIntent",
"samples": []
},
{
"name": "AMAZON.StopIntent",
"samples": []
},
{
"name": "GetLastEpisodeIntent",
"samples": [
"last episode summary for {series_name}",
"what was the last episode of {series_name}",
"the last episode of {series_name}",
"about {series_name}",
"when was the last episode of {series_name}"
],
"slots": [
{
"name": "series_name",
"type": "AMAZON.TVSeries",
"samples": [
"{series_name}"
]
}
]
}
],
"prompts": [
{
"id": "Elicit.Intent-GetLastEpisodeIntent.IntentSlot-series_name",
"promptVersion": "1.0",
"definitionVersion": "1.0",
"variations": [
{
"type": "PlainText",
"value": "What series are you looking for?"
}
]
}
],
"dialog": {
"version": "1.0",
"intents": [
{
"name": "GetLastEpisodeIntent",
"confirmationRequired": false,
"prompts": {},
"slots": [
{
"name": "series_name",
"type": "AMAZON.TVSeries",
"elicitationRequired": true,
"confirmationRequired": false,
"prompts": {
"elicit": "Elicit.Intent-GetLastEpisodeIntent.IntentSlot-series_name"
}
}
]
}
]
}
}
目前没有回答
相关问题 更多 >
编程相关推荐