Alexa自定义技能发送LaunchRequest而不是IntentRequest

时间:2018-06-04 14:00:45

标签: alexa-skills-kit

我是Alexa发展的新手,请原谅我的无知。基本上我正在尝试建立一个基本的自定义技能,当我说 Alexa,kodi暂停时,它会向Lambda发送PauseTV意图,当我说 Alexa时,kodi播放它会发送PlayTV意图是Lambda。

目前我的技能只发送了LaunchRequest,我无法让它发送特定的意图。以下是我的技巧JSON:

{
"interactionModel": {
    "languageModel": {
        "invocationName": "kodi",
        "intents": [
            {
                "name": "AMAZON.CancelIntent",
                "samples": []
            },
            {
                "name": "AMAZON.HelpIntent",
                "samples": []
            },
            {
                "name": "AMAZON.StopIntent",
                "samples": []
            },
            {
                "name": "PauseTV",
                "slots": [],
                "samples": [
                    "pause"
                ]
            },
            {
                "name": "PlayTV",
                "slots": [],
                "samples": [
                    "play"
                ]
            }
        ],
        "types": []
    }
}

任何帮助将不胜感激!

0 个答案:

没有答案