Alexa Skill Code Generator

March 2024 ยท 4 minute read
Language Model JSON load sample model 1   2
Options
Setup Notes
 
This tool is designed to be used in conjunction with the Alexa Developer Portal at developer.amazon.com and the AWS Lambda console at aws.amazon.com

{ "interactionModel" : { "languageModel": { "types": [ { "name": "BreakfastItemSlotType", "values": [ { "id": null, "name": { "value": "pancake", "synonyms": [] } }, { "id": null, "name": { "value": "omelet", "synonyms": [] } }, { "id": null, "name": { "value": "waffle", "synonyms": [] } }, { "id": null, "name": { "value": "cereal", "synonyms": [ "frosted flakes", "raisin bran" ] } }, { "id": null, "name": { "value": "yogurt", "synonyms": [ "parfait" ] } } ] } ], "intents": [ { "name": "AboutIntent", "samples": [ "about", "tell me about this place" ], "slots": [] }, { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.NoIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] }, { "name": "AMAZON.YesIntent", "samples": [] }, { "name": "AttractionIntent", "samples": [ "recommend an attraction", "recommend an attraction within {distance} miles", "give me an activity", "give me an activity within {distance} miles" ], "slots": [ { "name": "distance", "type": "AMAZON.NUMBER" } ] }, { "name": "BreakfastIntent", "samples": [ "breakfast", "breakfast with {BreakfastItemSlot}" ], "slots": [ { "name": "BreakfastItemSlot", "type": "BreakfastItemSlotType" } ] }, { "name": "CoffeeIntent", "samples": [ "coffee" ], "slots": [] }, { "name": "DinnerIntent", "samples": [ "dinner" ], "slots": [] }, { "name": "GoOutIntent", "samples": [ "go out", "go outside", "lets go out" ], "slots": [] }, { "name": "LunchIntent", "samples": [ "lunch" ], "slots": [] } ], "invocationName": "portland guide" } } } { "interactionModel" : { "languageModel": { "types": [ { "name": "BreakfastItemSlotType", "values": [ { "id": "101", "name": { "value": "pancakes", "synonyms": [ "flapjacks" ] } }, { "id": "102", "name": { "value": "omelet", "synonyms": [] } }, { "id": "103", "name": { "value": "cereal", "synonyms": [ "raisin bran", "cheerios", "frosted flakes" ] } } ] }, { "name": "LunchItemSlotType", "values": [ { "id": null, "name": { "value": "pizza", "synonyms": [] } }, { "id": null, "name": { "value": "tacos", "synonyms": [] } }, { "id": null, "name": { "value": "sushi", "synonyms": [] } } ] } ], "intents": [ { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] }, { "name": "BreakfastIntent", "samples": [ "i like {BreakfastItemSlot}" ], "slots": [ { "name": "BreakfastItemSlot", "type": "BreakfastItemSlotType" } ] }, { "name": "LunchIntent", "samples": [ "lunch with {LunchItemSlot}" ], "slots": [ { "name": "LunchItemSlot", "type": "LunchItemSlotType" } ] }, { "name": "OrderIntent", "samples": [ "I want a sandwich with {BreadSlot} bread {EggSlot} eggs and {CheeseSlot} cheese delivered to {StateSlot}", "I want a sandwich with {BreadSlot} bread {EggSlot} eggs and {CheeseSlot} cheese " ], "slots": [ { "name": "BreadSlot", "type": "AMAZON.NUMBER", "samples": [ "{BreadSlot} pieces of bread", "{BreadSlot} breads" ] }, { "name": "EggSlot", "type": "AMAZON.NUMBER", "samples": [ "{EggSlot} eggs", "{EggSlot} fried eggs" ] }, { "name": "CheeseSlot", "type": "AMAZON.NUMBER", "samples": [ "{CheeseSlot} cheese", "{CheeseSlot} pieces of cheese" ] }, { "name": "StateSlot", "type": "AMAZON.US_STATE" } ] } ], "invocationName": "bread egg" }, "prompts": [ { "id": "Elicit.Intent-OrderIntent.IntentSlot-BreadSlot", "variations": [ { "type": "PlainText", "value": "Please tell me how many pieces of bread you want" } ] }, { "id": "Elicit.Intent-OrderIntent.IntentSlot-EggSlot", "variations": [ { "type": "PlainText", "value": "please tell me how many fried eggs you want" } ] }, { "id": "Elicit.Intent-OrderIntent.IntentSlot-CheeseSlot", "variations": [ { "type": "PlainText", "value": "Please tell me how many pieces of cheese you want" } ] } ], "dialog": { "intents": [ { "name": "OrderIntent", "confirmationRequired": false, "prompts": {}, "slots": [ { "name": "BreadSlot", "type": "AMAZON.NUMBER", "elicitationRequired": true, "confirmationRequired": false, "prompts": { "elicitation": "Elicit.Intent-OrderIntent.IntentSlot-BreadSlot" } }, { "name": "EggSlot", "type": "AMAZON.NUMBER", "elicitationRequired": true, "confirmationRequired": false, "prompts": { "elicitation": "Elicit.Intent-OrderIntent.IntentSlot-EggSlot" } }, { "name": "CheeseSlot", "type": "AMAZON.NUMBER", "elicitationRequired": true, "confirmationRequired": false, "prompts": { "elicitation": "Elicit.Intent-OrderIntent.IntentSlot-CheeseSlot" } }, { "name": "StateSlot", "type": "AMAZON.US_STATE", "elicitationRequired": false, "confirmationRequired": false, "prompts": {} } ] } ] } } }

ncG1vNJzZmirY2Ourq3ZqKWar6NjsLC5jrCcm5mgpcO2tY6soqKknJi8pbGOr2looZ6Zsrl6x62kpQ%3D%3D