Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alexa developer console has updated their intent json format #198

Closed
aplocher opened this issue Mar 8, 2018 · 5 comments
Closed

Alexa developer console has updated their intent json format #198

aplocher opened this issue Mar 8, 2018 · 5 comments

Comments

@aplocher
Copy link
Contributor

aplocher commented Mar 8, 2018

Geemusic's intentSchema.json is using a deprecated format. When I load it into the new Alexa developer console, it says it has converted it for me (but it hasn't!).

Even though I'm configured to use the legacy developer console, when I click on the Interaction Model tab, it's forcing the new version of that tab upon me and requires the new format. All other tabs use the old ugly UI.

@pquerner
Copy link

pquerner commented Mar 9, 2018

I noticed when I got switched to the new UI that you cant enter the utterances the same when with the old UI. Mostly meaning you cant enter all the text at once but have to key-pair everything step by step. Atleast in my version that I've seen. (And thats ~2 weeks ago)

@aplocher
Copy link
Contributor Author

aplocher commented Mar 9, 2018

Not sure how it was 2 weeks ago, but the new UI has this code editor on the left. You can also optionally add each node visually which seems like it woudl take forever, but I guess it's handy for people who don't feel comfortable with a keyboard. image

The syntax seems like it could be fixed with some carefully crafted search and replaces. I may try to fix this and do a pull request later if I get some time.

This is what my console has in it currently (presumably something it auto-upgraded form before), but when did a git pull on the geemusic repo to update it to the latest version my geemusic stopped working with some intent errors. I figured I needed to update the intent so I tried to go into the console and paste the latest one but it gets an error.

{
  "languageModel": {
    "intents": [
      {
        "name": "AMAZON.CancelIntent",
        "samples": []
      },
      {
        "name": "AMAZON.HelpIntent",
        "samples": []
      },
      {
        "name": "AMAZON.LoopOffIntent",
        "samples": []
      },
      {
        "name": "AMAZON.LoopOnIntent",
        "samples": []
      },
      {
        "name": "AMAZON.NextIntent",
        "samples": []
      },
      {
        "name": "AMAZON.PauseIntent",
        "samples": []
      },
      {
        "name": "AMAZON.PreviousIntent",
        "samples": []
      },
      {
        "name": "AMAZON.ResumeIntent",
        "samples": []
      },
      {
        "name": "AMAZON.ShuffleOffIntent",
        "samples": []
      },
      {
        "name": "AMAZON.ShuffleOnIntent",
        "samples": []
      },
      {
        "name": "AMAZON.StopIntent",
        "samples": []
      },
      {
        "name": "GeeMusicCurrentlyPlayingIntent",
        "samples": [
          "What is the current song",
          "What is currently playing",
          "What is playing right now",
          "What song is this",
          "What is the name of this song",
          "What is this"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicListAllAlbumsIntent",
        "samples": [
          "List all albums by {artist_name}"
        ],
        "slots": [
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicListAllPlaylists",
        "samples": [
          "what playlists do I have",
          "list my playlists",
          "to list my playlists",
          "tell me what playlists are in my library",
          "list playlists"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicListLatestAlbumIntent",
        "samples": [
          "List the latest albums by {artist_name}",
          "What are latest albums by {artist_name}"
        ],
        "slots": [
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlayAlbumByArtistIntent",
        "samples": [
          "Play an album by the band {artist_name}",
          "Play an album by artist {artist_name}"
        ],
        "slots": [
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlayAlbumIntent",
        "samples": [
          "Play the album {album_name}",
          "Play album {album_name}",
          "Play the album {album_name} by {artist_name}",
          "Play album {album_name} by {artist_name}",
          "Play songs from the album {album_name} by {artist_name}"
        ],
        "slots": [
          {
            "name": "album_name",
            "type": "AMAZON.MusicAlbum"
          },
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlayArtistIntent",
        "samples": [
          "Play artist {artist_name}",
          "Play songs by {artist_name}",
          "Play top songs by {artist_name}",
          "Play top tracks by {artist_name}",
          "Play music by {artist_name}",
          "Play tracks by {artist_name}"
        ],
        "slots": [
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlayArtistRadioIntent",
        "samples": [
          "Start radio for artist {artist_name}",
          "Create a radio station for artist {artist_name}",
          "Start {artist_name} artist radio",
          "Start artist radio for {artist_name}",
          "Play artists like {artist_name}"
        ],
        "slots": [
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlayDifferentAlbumIntent",
        "samples": [
          "Play a different album"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicPlayIFLRadioIntent",
        "samples": [
          "Play some music",
          "Play I'm feeling lucky station",
          "Play my radio station",
          "Play my station"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicPlayLatestAlbumIntent",
        "samples": [
          "Play the latest album by {artist_name}"
        ],
        "slots": [
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlayLibraryIntent",
        "samples": [
          "play songs from my library",
          "play tracks from my library",
          "play my library",
          "start playing tracks from my library",
          "play songs from library"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicPlayPlaylistIntent",
        "samples": [
          "Play {playlist_name} playlist",
          "Playlist {playlist_name}",
          "Start playlist {playlist_name}",
          "Play songs from my {playlist_name} playlist",
          "Play playlist {playlist_name}"
        ],
        "slots": [
          {
            "name": "playlist_name",
            "type": "AMAZON.MusicPlaylist"
          }
        ]
      },
      {
        "name": "GeeMusicPlaySimilarSongsRadioIntent",
        "samples": [
          "Play similar songs",
          "Play songs like this",
          "Start radio with this song"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicPlaySongIntent",
        "samples": [
          "Play the song {song_name}",
          "Play song {song_name}",
          "Play the song {song_name} by {artist_name}",
          "Play song {song_name} by {artist_name}",
          "Play {song_name}",
          "Play {song_name} by {artist_name}"
        ],
        "slots": [
          {
            "name": "song_name",
            "type": "AMAZON.MusicRecording"
          },
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicPlaySongRadioIntent",
        "samples": [
          "Start radio for song {song_name}",
          "Create a radio station for song {song_name}",
          "Start {song_name} song radio",
          "Start song radio for {song_name}",
          "Play songs like {song_name}",
          "Play songs like {song_name} from {album_name}",
          "Play songs like {song_name} by {artist_name}",
          "Play songs like {song_name} by {artist_name} from {album_name}"
        ],
        "slots": [
          {
            "name": "song_name",
            "type": "AMAZON.MusicRecording"
          },
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          },
          {
            "name": "album_name",
            "type": "AMAZON.MusicAlbum"
          }
        ]
      },
      {
        "name": "GeeMusicPlayThumbsUpIntent",
        "samples": [
          "Play promoted songs",
          "Play up voted songs",
          "Play thumbs up songs"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicQueueSongIntent",
        "samples": [
          "Next play the song {song_name}",
          "Next play song {song_name}",
          "Next play the song {song_name} by {artist_name}",
          "Next play song {song_name} by {artist_name}",
          "Next play {song_name}",
          "Next play {song_name} by {artist_name}",
          "Queue {song_name}",
          "Queue {song_name} by {artist_name}"
        ],
        "slots": [
          {
            "name": "song_name",
            "type": "AMAZON.MusicRecording"
          },
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicRestartTracksIntent",
        "samples": [
          "Restart tracks",
          "Restart songs",
          "Restart the playlist",
          "Reset the playlist to the beginning"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicSkipTo",
        "samples": [
          "Skip to {song_name}",
          "Skip to {song_name} by {artist_name}",
          "Go to {song_name}",
          "Go to {song_name} by {artist_name}",
          "Skip to the song {song_name}",
          "Skip to the song {song_name} by {artist_name}",
          "Jump to {song_name}",
          "Jump to {song_name} by {artist_name}"
        ],
        "slots": [
          {
            "name": "song_name",
            "type": "AMAZON.MusicRecording"
          },
          {
            "name": "artist_name",
            "type": "AMAZON.MusicGroup"
          }
        ]
      },
      {
        "name": "GeeMusicThumbsDownIntent",
        "samples": [
          "Down vote",
          "Down vote this",
          "Thumbs down this song",
          "Thumbs down",
          "Dislike this song"
        ],
        "slots": []
      },
      {
        "name": "GeeMusicThumbsUpIntent",
        "samples": [
          "Up vote",
          "Up vote this",
          "Thumbs up this song",
          "Thumbs up",
          "Like this song"
        ],
        "slots": []
      }
    ],
    "invocationName": "gee music"
  }
}

@laurilarjo
Copy link
Contributor

I'm using a UK echo so I needed to add the slot types manually. I'll open a PR of the non-US interactionModel.json soon which includes the slot type lists.

@laurilarjo
Copy link
Contributor

Here's the pull request #203 which builds on @aplocher 's work.

@fergyfresh
Copy link
Collaborator

Updated new interaction model. Moot point issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants