From 49daed7346792eccb41776d314c16082d7f79115 Mon Sep 17 00:00:00 2001 From: David Germiquet Date: Thu, 7 Mar 2024 20:00:40 -0500 Subject: [PATCH] Fix the en.json interaction model --- interaction_models/en.json | 267 ++++--------------------------------- 1 file changed, 27 insertions(+), 240 deletions(-) diff --git a/interaction_models/en.json b/interaction_models/en.json index bfa0447..616f213 100644 --- a/interaction_models/en.json +++ b/interaction_models/en.json @@ -165,10 +165,16 @@ "slots": [ { "name": "playlist", - "type": "AMAZON.MusicAlbum" + "type": "AMAZON.MusicAlbum", + "samples": [ + "{playlist}" + ] } ], "samples": [ + "play the mix {playlist}", + "open playlist {playlist}", + "play playlist {playlist}", "Play the playlist {playlist}" ] } @@ -226,257 +232,20 @@ "prompts": {} } ] - } - ], - "delegationStrategy": "ALWAYS" - }, - "prompts": [ - { - "id": "Elicit.Intent-AskSonic.IntentSlot-Artist", - "variations": [ - { - "type": "PlainText", - "value": "What artist should I play?" - } - ] - }, - { - "id": "Elicit.Intent-AskSonic.IntentSlot-Album", - "variations": [ - { - "type": "PlainText", - "value": "What album should I play?" - } - ] - } - ] - } -}{ - "interactionModel": { - "languageModel": { - "invocationName": "sub sonic", - "intents": [ - { - "name": "AMAZON.CancelIntent", - "samples": [] - }, - { - "name": "AMAZON.HelpIntent", - "samples": [] - }, - { - "name": "AMAZON.StopIntent", - "samples": [] - }, - { - "name": "AskSonicShuffleLibraryIntent", - "slots": [], - "samples": [ - "play music", - "play my library", - "play songs from my library", - "shuffle my library", - "shuffle my music" - ] - }, - { - "name": "AMAZON.NavigateHomeIntent", - "samples": [] - }, - { - "name": "AMAZON.PauseIntent", - "samples": [] - }, - { - "name": "AMAZON.ResumeIntent", - "samples": [] - }, - { - "name": "AMAZON.NextIntent", - "samples": [] - }, - { - "name": "AMAZON.PreviousIntent", - "samples": [] - }, - { - "name": "AMAZON.StartOverIntent", - "samples": [] - }, - { - "name": "AskSonicTrackInformationIntent", - "slots": [], - "samples": [ - "what is currently playing", - "what is playing right now", - "what is the current song", - "what is the name of this song", - "what is this", - "what song is playing", - "what song is this", - "what song", - "what's playing", - "what's this song", - "who is this by", - "who sings this" - ] - }, - { - "name": "AskSonicDetailedTrackInformationIntent", - "slots": [], - "samples": [ - "details about this song", - "what album is this song from", - "what album" - ] - }, - { - "name": "AskSonicStarIntent", - "slots": [], - "samples": [ - "favorite this song", - "heart this song", - "like this song", - "love this song", - "star this song", - "star this" - ] - }, - { - "name": "AskSonicStarPreviousIntent", - "slots": [], - "samples": [ - "favorite the last song", - "heart the last song", - "like the last song", - "love the last song", - "star the last song", - "star the previous song" - ] - }, - { - "name": "AskSonicPlayArtistIntent", - "slots": [ - { - "name": "artist", - "type": "AMAZON.MusicGroup", - "samples": [ - "{artist}" - ] - } - ], - "samples": [ - "play artist {artist}", - "play music by {artist}", - "play songs by {artist}", - "play the artist {artist}" - ] - }, - { - "name": "AskSonicListArtistAlbumsIntent", - "slots": [ - { - "name": "artist", - "type": "AMAZON.MusicGroup", - "samples": [ - "{artist}" - ] - } - ], - "samples": [ - "tell me albums by {artist}", - "list albums by {artist}", - "list {artist} albums", - "what albums does {artist} have" - ] - }, - { - "name": "AskSonicPlayAlbumIntent", - "slots": [ - { - "name": "album", - "type": "AMAZON.MusicAlbum", - "samples": [ - "{album}" - ] - }, - { - "name": "artist", - "type": "AMAZON.MusicGroup" - } - ], - "samples": [ - "play album {album} by {artist}", - "play album {album}", - "play the album {album} by {artist}", - "play the album {album}", - "play the {artist} album {album}" - ] }, { "name": "AskSonicPlayPlayListIntent", - "slots": [ - { - "name": "playlist", - "type": "AMAZON.MusicAlbum" - } - ], - "samples": [ - "Play the playlist {playlist}" - ] - } - ], - "types": [ - { - "name": "AMAZON.MusicAlbum", - "values": [ - { - "name": { - "value": "Yellowcard" - } - } - ] - } - ] - }, - "dialog": { - "intents": [ - { - "name": "AskSonicPlayArtistIntent", "confirmationRequired": false, "prompts": {}, "slots": [ { - "name": "artist", - "type": "AMAZON.MusicGroup", - "confirmationRequired": false, - "elicitationRequired": true, - "prompts": { - "elicitation": "Elicit.Intent-AskSonic.IntentSlot-Artist" - } - } - ] - }, - { - "name": "AskSonicPlayAlbumIntent", - "confirmationRequired": false, - "prompts": {}, - "slots": [ - { - "name": "album", + "name": "playlist", "type": "AMAZON.MusicAlbum", "confirmationRequired": false, "elicitationRequired": true, "prompts": { - "elicitation": "Elicit.Intent-AskSonic.IntentSlot-Album" + "elicitation": "Elicit.Slot.1552392366824.395353797063" } - }, - { - "name": "artist", - "type": "AMAZON.MusicGroup", - "confirmationRequired": false, - "elicitationRequired": false, - "prompts": {} } ] } @@ -501,6 +270,24 @@ "value": "What album should I play?" } ] + }, + { + "id": "Confirm.Intent.589542519485", + "variations": [ + { + "type": "PlainText", + "value": "What playlist do you want to play?" + } + ] + }, + { + "id": "Elicit.Slot.1552392366824.395353797063", + "variations": [ + { + "type": "PlainText", + "value": "Which playlist do you want to play?" + } + ] } ] }