Alexa - 有些意图没有达到技能

时间:2017-08-25 15:20:55

标签: python alexa-skills-kit alexa-skill

我的Alexa技能因以下原因而被拒绝: '请注意,“帮助”未能达到技能的终点。'

我正在使用“技能”构建器来构建技能,默认情况下会实现帮助意图。

我在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)

当我使用他们的测试界面进行测试时,帮助意图会按预期返回此文本字符串。

然而,它仍然被拒绝。我有什么简单的东西吗?我也向亚马逊提出了支持请求,但我真的希望获得批准,因为这是一项相对简单的技能。

任何想法都会受到赞赏。

编辑:完整架构

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

0 个答案:

没有答案