joanaz / MMM-MirrorMirrorOnTheWall

MagicMirror² module: Displays text, images, or a Youtube video, and open or close Magic Mirror Modules according to commands heard by Alexa.
MIT License
92 stars 20 forks source link

Alexa Developer Console - JSON Editor Build failed #22

Open Jet-A opened 6 years ago

Jet-A commented 6 years ago

Problem: Alexa Interaction model fails to build.

Error: 1 of many Slot type "AMAZON.LITERAL" for slot "moduleName" in intent "TurnOffModuleIntent" is not valid. Error code: InvalidSlotTypeLiteral

AMAZON.LITERAL is deprecated as of October 22, 2018. Older skills built with AMAZON.LITERAL do continue to work, but you must migrate away from AMAZON.LITERAL when you update those older skills, and for all new skills.

shayfer commented 5 years ago

Jet-A what did you do to resolve this issue? I am getting the same messages.

Thanks!

Jet-A commented 5 years ago

I migrated to the new version. https://developer.amazon.com/docs/custom-skills/literal-slot-type-reference.html. I was able to build the code. Have not got it all functioning yet.

shayfer commented 5 years ago

Good deal! Can you share the code you built?

Jet-A commented 5 years ago

Old post was wrong code. This is what i started.

` { "interactionModel": { "languageModel": { "invocationName": "magic mirror", "intents": [ { "name": "AMAZON.FallbackIntent", "samples": [] }, { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] }, { "name": "MirrorMirrorHelloIntent", "slots": [], "samples": [ "good evening", "good afternoon", "good morning", "hey", "hi", "hello" ] }, { "name": "ShowTextIntent", "slots": [ { "name": "displayText", "type": "Display_Text" } ], "samples": [ "say {displayText}", "display text of {displayText}", "show text of {displayText}" ] }, ]

        "types": [
            {
                "name": "Display_Text",
                "values": [
                {"name":{"value":"hi"}},
                {"name":{"value":"hello"}},
                {"name":{"value":"good morning"}},
                {"name":{"value":"good morning to you"}},
                {"name":{"value":"how are you doing"}},

                ]
            }
        ]
    }
}

} `

dcalix002 commented 5 years ago

Gave this a try, hope it works!

{ "interactionModel": { "languageModel": { "invocationName": "magic mirror", "intents": [ { "name": "AMAZON.FallbackIntent", "samples": [] }, { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] }, { "name": "MirrorMirrorHelloIntent", "slots": [], "samples": [ "good evening", "good afternoon", "good morning", "hey", "hi", "hello" ] }, { "name": "ShowTextIntent", "slots": [ { "name": "displayText", "type": "LIST_OF_TEXT" } ], "samples": [ "say {displayText}", "display text of {displayText}", "show text of {displayText}" ] }, { "name": "TurnOnModuleIntent", "slots": [ { "name": "moduleName", "type": "LIST_OF_MODULES" } ], "samples": [ "open {moduleName}", "open module {moduleName} ", "show {moduleName}", "show module {moduleName} ", "turn on {moduleName}", "turn on module {moduleName} ", "start {moduleName}", "start module {moduleName} " ] }, { "name": "TurnOnAllModuleIntent", "slots": [], "samples": [ "open all", "open all modules", "open every module", "open each module", "show all modules", "show me all modules", "show every module", "show each module", "turn on all", "turn on all modules", "turn on every module", "turn on each module", "start all", "start all modules", "start every module", "start each module" ] }, { "name": "TurnOffAllModuleIntent", "slots": [], "samples": [ "close all", "close all modules", "close every module", "close each module", "hide all", "hide all modules", "hide every module", "hide each module", "turn off all", "turn off all modules", "turn off every module", "turn off each module" ] }, { "name": "TurnOffModuleIntent", "slots": [ { "name": "moduleName", "type": "LIST_OF_MODULES" } ], "samples": [ "close {moduleName}", "close module {moduleName} ", "hide {moduleName}", "hide module {moduleName} ", "turn off {moduleName}", "turn off module {moduleName}" ] }, { "name": "ShowImagesIntent", "slots": [ { "name": "searchTerm", "type": "LIST_OF_IMAGES" } ], "samples": [ "find {searchTerm}", "find images of {searchTerm}", "find pictures of {searchTerm}", "show me {searchTerm}", "show me pictures of {searchTerm}", "show me images of {searchTerm}", "show pictures of {searchTerm}", "show images of {searchTerm}", "display pictures of {searchTerm}", "display images of {searchTerm}" ] }, { "name": "ShowVideoIntent", "slots": [ { "name": "searchTermVideo", "type": "LIST_OF_VIDEOS" } ], "samples": [ "show me how to {searchTermVideo}", "show me video of {searchTermVideo}", "show me a video of {searchTermVideo}", "show video of {searchTermVideo}", "show a video of {searchTermVideo}", "display video of {searchTermVideo}", "display a video of {searchTermVideo}", "find video of {searchTermVideo}", "find a video of {searchTermVideo}" ] }, { "name": "AMAZON.MoreIntent", "samples": [] }, { "name": "AMAZON.NavigateHomeIntent", "samples": [] }, { "name": "AMAZON.NavigateSettingsIntent", "samples": [] }, { "name": "AMAZON.NextIntent", "samples": [] }, { "name": "AMAZON.PageUpIntent", "samples": [] }, { "name": "AMAZON.PageDownIntent", "samples": [] }, { "name": "AMAZON.PreviousIntent", "samples": [] }, { "name": "AMAZON.ScrollRightIntent", "samples": [] }, { "name": "AMAZON.ScrollDownIntent", "samples": [] }, { "name": "AMAZON.ScrollLeftIntent", "samples": [] }, { "name": "AMAZON.ScrollUpIntent", "samples": [] } ], "types": [ { "name": "LIST_OF_TEXT", "values": [ { "name": { "value": "hello" } }, { "name": { "value": "hello everyone" } }, { "name": { "value": "good morning" } }, { "name": { "value": "good morning to you" } }, { "name": { "value": "how are you doing" } } ] }, { "name": "LIST_OF_MODULES", "values": [ { "name": { "value": "calendar" } }, { "name": { "value": "current weather" } }, { "name": { "value": "smile test" } }, { "name": { "value": "compliments" } } ] }, { "name": "LIST_OF_IMAGES", "values": [ { "name": { "value": "queen" } }, { "name": { "value": "snow white" } }, { "name": { "value": "seven dwarfs" } }, { "name": { "value": "sharks" } }, { "name": { "value": "elon musk" } }, { "name": { "value": "apples" } }, { "name": { "value": "sea animals" } }, { "name": { "value": "octopus" } }, { "name": { "value": "volcanoes" } }, { "name": { "value": "birds" } }, { "name": { "value": "bill gates" } }, { "name": { "value": "animals" } }, { "name": { "value": "rattle snakes" } } ] }, { "name": "LIST_OF_VIDEOS", "values": [ { "name": { "value": "draw" } }, { "name": { "value": "paint" } }, { "name": { "value": "make slime" } }, { "name": { "value": "unlock locks" } }, { "name": { "value": "apples" } }, { "name": { "value": "bananas" } }, { "name": { "value": "movie trailer" } }, { "name": { "value": "video games" } }, { "name": { "value": "volcanoes" } }, { "name": { "value": "birds" } }, { "name": { "value": "bill gates" } }, { "name": { "value": "animals" } }, { "name": { "value": "rattle snakes" } }, { "name": { "value": "cats" } }, { "name": { "value": "dogs" } }, { "name": { "value": "lego superman" } }, { "name": { "value": "lego batman" } }, { "name": { "value": "apple and orange" } }, { "name": { "value": "evil queen" } } ] } ] } } }

ElecTechAce commented 5 years ago

please help. I'm getting the same issue: Build Fail. this is the errors that pop up. I'm still very new to all this and learning as I go. I tried figuring it out by trial and error but I fear I am just making everything worse. I believe that by trying to name it something else might be the issue. I named the thing aceassistant and tried naming the certs and everything that would correspond with is ace as well

I can get alexa to open Magic Mirror but it wont display anything on the Mirror

trecga commented 5 years ago

I was able to build the skill using the above code from [dcalix002]. Hopefully I will be able to complete today and let you know how it goes

Dzung2 commented 5 years ago

Hi eveyone , It's so bored when Joanaz don't update MirrorMirrorOnTheWallSkill . I'm trying to follow all of steps carefully and also copy code from @dcalix002 , code works well , we are test it in Alexa developer console OK but it runs not like Joanaz show in image. For example , when we command " show images of apples" it replies "Amazon Photos is not supported on this device. View your photos using the Amazon Photos app or website, or on devices like Fire TV or Echo Show." - and when we input " start magic mirror" it replies "Hello, I am a Magic Mirror. If asked, I will tell you who the fairest one in all the land is. Go ahead, ask me. Say, Magic mirror in my hand, who is the fairest in the land? Or say, Mirror mirror on the wall, who is the fairest one of all" sound likes 3 star skills of another man named Possibility Outpost (Link Here) The right response I think looks like " Hello my Queen, what can I do for you?I can show you text and images, if you give me commands like ' say you are the faires of them all' or 'find Snow White' I can also open or close magic mirror module'......." as image inf Joanaz's document . I don't know code so I really hope some master in there can read this message and teach me the way to complete this modules for my mirror ! Thank you in advance! magic2

ValerioBeauregard commented 5 years ago

I have the same problem. Did someone find a way to fix it?

kizz91 commented 3 years ago

Gave this a try, hope it works!

{ "interactionModel": { "languageModel": { "invocationName": "magic mirror", "intents": [ { "name": "AMAZON.FallbackIntent", "samples": [] }, { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] }, { "name": "MirrorMirrorHelloIntent", "slots": [], "samples": [ "good evening", "good afternoon", "good morning", "hey", "hi", "hello" ] }, { "name": "ShowTextIntent", "slots": [ { "name": "displayText", "type": "LIST_OF_TEXT" } ], "samples": [ "say {displayText}", "display text of {displayText}", "show text of {displayText}" ] }, { "name": "TurnOnModuleIntent", "slots": [ { "name": "moduleName", "type": "LIST_OF_MODULES" } ], "samples": [ "open {moduleName}", "open module {moduleName} ", "show {moduleName}", "show module {moduleName} ", "turn on {moduleName}", "turn on module {moduleName} ", "start {moduleName}", "start module {moduleName} " ] }, { "name": "TurnOnAllModuleIntent", "slots": [], "samples": [ "open all", "open all modules", "open every module", "open each module", "show all modules", "show me all modules", "show every module", "show each module", "turn on all", "turn on all modules", "turn on every module", "turn on each module", "start all", "start all modules", "start every module", "start each module" ] }, { "name": "TurnOffAllModuleIntent", "slots": [], "samples": [ "close all", "close all modules", "close every module", "close each module", "hide all", "hide all modules", "hide every module", "hide each module", "turn off all", "turn off all modules", "turn off every module", "turn off each module" ] }, { "name": "TurnOffModuleIntent", "slots": [ { "name": "moduleName", "type": "LIST_OF_MODULES" } ], "samples": [ "close {moduleName}", "close module {moduleName} ", "hide {moduleName}", "hide module {moduleName} ", "turn off {moduleName}", "turn off module {moduleName}" ] }, { "name": "ShowImagesIntent", "slots": [ { "name": "searchTerm", "type": "LIST_OF_IMAGES" } ], "samples": [ "find {searchTerm}", "find images of {searchTerm}", "find pictures of {searchTerm}", "show me {searchTerm}", "show me pictures of {searchTerm}", "show me images of {searchTerm}", "show pictures of {searchTerm}", "show images of {searchTerm}", "display pictures of {searchTerm}", "display images of {searchTerm}" ] }, { "name": "ShowVideoIntent", "slots": [ { "name": "searchTermVideo", "type": "LIST_OF_VIDEOS" } ], "samples": [ "show me how to {searchTermVideo}", "show me video of {searchTermVideo}", "show me a video of {searchTermVideo}", "show video of {searchTermVideo}", "show a video of {searchTermVideo}", "display video of {searchTermVideo}", "display a video of {searchTermVideo}", "find video of {searchTermVideo}", "find a video of {searchTermVideo}" ] }, { "name": "AMAZON.MoreIntent", "samples": [] }, { "name": "AMAZON.NavigateHomeIntent", "samples": [] }, { "name": "AMAZON.NavigateSettingsIntent", "samples": [] }, { "name": "AMAZON.NextIntent", "samples": [] }, { "name": "AMAZON.PageUpIntent", "samples": [] }, { "name": "AMAZON.PageDownIntent", "samples": [] }, { "name": "AMAZON.PreviousIntent", "samples": [] }, { "name": "AMAZON.ScrollRightIntent", "samples": [] }, { "name": "AMAZON.ScrollDownIntent", "samples": [] }, { "name": "AMAZON.ScrollLeftIntent", "samples": [] }, { "name": "AMAZON.ScrollUpIntent", "samples": [] } ], "types": [ { "name": "LIST_OF_TEXT", "values": [ { "name": { "value": "hello" } }, { "name": { "value": "hello everyone" } }, { "name": { "value": "good morning" } }, { "name": { "value": "good morning to you" } }, { "name": { "value": "how are you doing" } } ] }, { "name": "LIST_OF_MODULES", "values": [ { "name": { "value": "calendar" } }, { "name": { "value": "current weather" } }, { "name": { "value": "smile test" } }, { "name": { "value": "compliments" } } ] }, { "name": "LIST_OF_IMAGES", "values": [ { "name": { "value": "queen" } }, { "name": { "value": "snow white" } }, { "name": { "value": "seven dwarfs" } }, { "name": { "value": "sharks" } }, { "name": { "value": "elon musk" } }, { "name": { "value": "apples" } }, { "name": { "value": "sea animals" } }, { "name": { "value": "octopus" } }, { "name": { "value": "volcanoes" } }, { "name": { "value": "birds" } }, { "name": { "value": "bill gates" } }, { "name": { "value": "animals" } }, { "name": { "value": "rattle snakes" } } ] }, { "name": "LIST_OF_VIDEOS", "values": [ { "name": { "value": "draw" } }, { "name": { "value": "paint" } }, { "name": { "value": "make slime" } }, { "name": { "value": "unlock locks" } }, { "name": { "value": "apples" } }, { "name": { "value": "bananas" } }, { "name": { "value": "movie trailer" } }, { "name": { "value": "video games" } }, { "name": { "value": "volcanoes" } }, { "name": { "value": "birds" } }, { "name": { "value": "bill gates" } }, { "name": { "value": "animals" } }, { "name": { "value": "rattle snakes" } }, { "name": { "value": "cats" } }, { "name": { "value": "dogs" } }, { "name": { "value": "lego superman" } }, { "name": { "value": "lego batman" } }, { "name": { "value": "apple and orange" } }, { "name": { "value": "evil queen" } } ] } ] } } }

were you able to get it all working after updating the skill?

kizz91 commented 3 years ago

ive made the changes suggested and still having issues. The test doesnt recognize the text command and if though i continued on to the very end and copied the ARN for the endpoint from my lambda function the alexa skill doesnt recognize my ARN for the end point. Still shows the error message below:

image