declension / squeeze-alexa

Squeezebox integration for Amazon Alexa
GNU General Public License v3.0
59 stars 20 forks source link

New Amazon skill GUI #62

Closed dersch81 closed 6 years ago

dersch81 commented 6 years ago

Hi, i'm just starting with custom skills and facing problems to translate the instructions into the new model. I assume the intent.json has been used with the old Amazon GUI but don't understand how to rewrite it. Are you able to support me?

That's how i try to do it actually:

{ "interactionModel": { "languageModel": { "invocationName": "squeezebox", "intents": [ { "intent": "AMAZON.ResumeIntent" }, { "intent": "AMAZON.PauseIntent" }, { "intent": "AMAZON.NextIntent" }, { "intent": "AMAZON.PreviousIntent" }, { "intent": "AMAZON.LoopOnIntent" }, { "intent": "AMAZON.LoopOffIntent" }, { "intent": "AMAZON.ShuffleOnIntent" }, { "intent": "AMAZON.ShuffleOffIntent" }, { "intent": "IncreaseVolumeIntent", "slots": [ { "name": "Player", "type": "PLAYER" } ] }, { "intent": "DecreaseVolumeIntent", "slots": [ { "name": "Player", "type": "PLAYER" } ] }, { "intent": "SetVolumeIntent", "slots": [ { "name": "Player", "type": "PLAYER" }, { "name": "Volume", "type": "AMAZON.NUMBER" } ] }, { "intent": "SetVolumePercentIntent", "slots": [ { "name": "Player", "type": "PLAYER" }, { "name": "Volume", "type": "AMAZON.NUMBER" } ] }, { "intent": "NowPlayingIntent", "slots": [ { "name": "Player", "type": "PLAYER" } ] }, { "intent": "SelectPlayerIntent", "slots": [ { "name": "Player", "type": "PLAYER" } ] }, { "intent": "TurnOnPlayerIntent", "slots": [ { "name": "Player", "type": "PLAYER" } ] }, { "intent": "TurnOffPlayerIntent", "slots": [ { "name": "Player", "type": "PLAYER" } ] }, { "intent": "PlayRandomMixIntent", "slots": [ { "name": "Player", "type": "PLAYER" }, { "name": "Genre", "type": "GENRE" }, { "name": "SecondaryGenre", "type": "GENRE" }, { "name": "TertiaryGenre", "type": "GENRE" } ] }, { "intent": "PlayPlaylistIntent", "slots": [ { "name": "Player", "type": "PLAYER" }, { "name": "Playlist", "type": "PLAYLIST" } ] }, { "intent": "ShuffleOnIntent" }, { "intent": "ShuffleOffIntent" }, { "intent": "LoopOnIntent" }, { "intent": "LoopOffIntent" }, { "intent": "AllOffIntent" }, { "intent": "AllOnIntent" }, { "intent": "AMAZON.HelpIntent" } ] } } }

It gives me the error:

Model Update Failed We were unable to update your model. See below for errors.

Save Failed Intent name must not be empty. Error code: MissingIntentName

But i defined an Intent name.

dersch81 commented 6 years ago

Sorry overlooked the already open issue for that