Ron Dagdag
Published © MIT

Alexa, Start Name the Crayon Game

Challenge your friends to guess the name of that crayon. The Echo buttons displays the crayon color. Have fun learning new crayon names.

BeginnerFull instructions provided3 hours663
Alexa, Start Name the Crayon Game

Things used in this project

Story

Read more

Code

interaction model

JSON
{
    "interactionModel": {
        "languageModel": {
            "invocationName": "name the crayon game",
            "intents": [
                {
                    "name": "AMAZON.CancelIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.HelpIntent",
                    "samples": [
                        "how do I play this game",
                        "how is this game played",
                        "how do I play this"
                    ]
                },
                {
                    "name": "AMAZON.YesIntent",
                    "samples": [
                        "ready"
                    ]
                },
                {
                    "name": "AMAZON.NoIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.StopIntent",
                    "samples": []
                },
                {
                    "name": "PlayerCount",
                    "slots": [
                        {
                            "name": "players",
                            "type": "AMAZON.NUMBER"
                        }
                    ],
                    "samples": [
                        "{players} players",
                        "there are {players}",
                        "there are {players} players",
                        "there are {players} of us",
                        "we have {players}",
                        "we have {players} players",
                        "there will be {players}",
                        "there will be {players} players"
                    ]
                },
                {
                    "name": "AnswerQuestionIntent",
                    "slots": [
                        {
                            "name": "answers",
                            "type": "answers"
                        }
                    ],
                    "samples": [
                        "a {answers}",
                        "the {answers}",
                        "the answer is {answers}",
                        "my answers is {answers}",
                        "is it {answers}",
                        "it is {answers}",
                        "it was {answers}",
                        "it might be {answers}",
                        "i think it is {answers}",
                        "i think it was {answers}",
                        "i think it might be {answers}",
                        "i think the answer is {answers}",
                        "i think the answer might be {answers}"
                    ]
                },
                {
                    "name": "AnswerOnlyIntent",
                    "slots": [
                        {
                            "name": "answers",
                            "type": "answers"
                        }
                    ],
                    "samples": [
                        "{answers}"
                    ]
                },
                {
                    "name": "PlayGame",
                    "samples": [
                        "play",
                        "play the game",
                        "play a game",
                        "I'm ready to play",
                        "let's play",
                        "start a game",
                        "start the game",
                        "let's start the game",
                        "ready to play",
                        "ready to start",
                        "let's start",
                        "let's begin",
                        "begin the game",
                        "get started"
                    ]
                },
                {
                    "name": "AMAZON.StartOverIntent",
                    "samples": [
                        "start new game",
                        "play a new game",
                        "start a new game",
                        "begin a new game",
                        "start game",
                        "begin new game",
                        "new game",
                        "start over"
                    ]
                },
                {
                    "name": "DontKnowIntent",
                    "samples": [
                        "I don't know",
                        "don't know",
                        "I am not sure",
                        "I have not idea",
                        "I don't understand",
                        "I've got no clue",
                        "I've got no idea",
                        "I have no clue",
                        "I have no idea",
                        "I am clueless"
                    ]
                },
                {
                    "name": "AMAZON.MoreIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.NavigateHomeIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.NavigateSettingsIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.NextIntent",
                    "samples": [
                        "skip",
                        "skip this question",
                        "skip this one",
                        "next question",
                        "go to next question",
                        "go to the next question",
                        "I give up",
                        "we give up"
                    ]
                },
                {
                    "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": []
                },
                {
                    "name": "PlayerCountOnly",
                    "slots": [
                        {
                            "name": "players",
                            "type": "AMAZON.NUMBER"
                        }
                    ],
                    "samples": [
                        "{players}"
                    ]
                }
            ],
            "types": [
                {
                    "name": "answers",
                    "values": [
                        {
                            "name": {
                                "value": "Black"
                            }
                        },
                        {
                            "name": {
                                "value": "Midnight Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Absolute Zero"
                            }
                        },
                        {
                            "name": {
                                "value": "Navy Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue (III)"
                            }
                        },
                        {
                            "name": {
                                "value": "Tropical Rain Forest"
                            }
                        },
                        {
                            "name": {
                                "value": "Teal Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Steel Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue-Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Pacific Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Caribbean Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Robin's Egg Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Pine Tree (Pine Green)"
                            }
                        },
                        {
                            "name": {
                                "value": "Pine Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Cerulean"
                            }
                        },
                        {
                            "name": {
                                "value": "Metallic Seaweed"
                            }
                        },
                        {
                            "name": {
                                "value": "Emerald"
                            }
                        },
                        {
                            "name": {
                                "value": "Denim"
                            }
                        },
                        {
                            "name": {
                                "value": "Licorice"
                            }
                        },
                        {
                            "name": {
                                "value": "Mountain Meadow"
                            }
                        },
                        {
                            "name": {
                                "value": "Eerie Black"
                            }
                        },
                        {
                            "name": {
                                "value": "New Car"
                            }
                        },
                        {
                            "name": {
                                "value": "Denim Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Leather Jacket"
                            }
                        },
                        {
                            "name": {
                                "value": "Green-Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Slimy Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Koala Tree (Jungle Green)"
                            }
                        },
                        {
                            "name": {
                                "value": "Jungle Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Outer Space"
                            }
                        },
                        {
                            "name": {
                                "value": "Sapphire"
                            }
                        },
                        {
                            "name": {
                                "value": "Cosmic Cobalt"
                            }
                        },
                        {
                            "name": {
                                "value": "B'dazzled Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Maximum Blue Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Illuminating Emerald"
                            }
                        },
                        {
                            "name": {
                                "value": "Cerulean Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Shamrock"
                            }
                        },
                        {
                            "name": {
                                "value": "Onyx"
                            }
                        },
                        {
                            "name": {
                                "value": "Pixie Powder"
                            }
                        },
                        {
                            "name": {
                                "value": "Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Moonstone"
                            }
                        },
                        {
                            "name": {
                                "value": "Ultramarine Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Lapis Lazuli"
                            }
                        },
                        {
                            "name": {
                                "value": "Eucalyptus"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue (II)"
                            }
                        },
                        {
                            "name": {
                                "value": "Pine"
                            }
                        },
                        {
                            "name": {
                                "value": "Malachite"
                            }
                        },
                        {
                            "name": {
                                "value": "Jade"
                            }
                        },
                        {
                            "name": {
                                "value": "Maximum Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue (I)"
                            }
                        },
                        {
                            "name": {
                                "value": "Deep Space Sparkle"
                            }
                        },
                        {
                            "name": {
                                "value": "Sea Serpent"
                            }
                        },
                        {
                            "name": {
                                "value": "Middle Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Indigo"
                            }
                        },
                        {
                            "name": {
                                "value": "Blueberry"
                            }
                        },
                        {
                            "name": {
                                "value": "Blizzard Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Wintergreen Dream"
                            }
                        },
                        {
                            "name": {
                                "value": "Cyber Grape"
                            }
                        },
                        {
                            "name": {
                                "value": "Plump Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Polished Pine"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue Jeans"
                            }
                        },
                        {
                            "name": {
                                "value": "Maximum Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Steel Teal"
                            }
                        },
                        {
                            "name": {
                                "value": "Forest Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Shiny Shamrock"
                            }
                        },
                        {
                            "name": {
                                "value": "Eggplant"
                            }
                        },
                        {
                            "name": {
                                "value": "Fern"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue-Violet"
                            }
                        },
                        {
                            "name": {
                                "value": "Amethyst"
                            }
                        },
                        {
                            "name": {
                                "value": "Purple Heart"
                            }
                        },
                        {
                            "name": {
                                "value": "Van Dyke Brown"
                            }
                        },
                        {
                            "name": {
                                "value": "Raw Umber"
                            }
                        },
                        {
                            "name": {
                                "value": "Screamin' Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Granite Gray"
                            }
                        },
                        {
                            "name": {
                                "value": "Royal Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Medium Chrome Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Turquoise Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Cerulean Frost"
                            }
                        },
                        {
                            "name": {
                                "value": "Green Sheen"
                            }
                        },
                        {
                            "name": {
                                "value": "Grape"
                            }
                        },
                        {
                            "name": {
                                "value": "Celestial Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Violet (I)"
                            }
                        },
                        {
                            "name": {
                                "value": "Maximum Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Charcoal Gray"
                            }
                        },
                        {
                            "name": {
                                "value": "Smoke"
                            }
                        },
                        {
                            "name": {
                                "value": "Sonic Silver"
                            }
                        },
                        {
                            "name": {
                                "value": "Violet-Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Fresh Air (Sky Blue)"
                            }
                        },
                        {
                            "name": {
                                "value": "Sky Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Shadow Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Wild Blue Yonder"
                            }
                        },
                        {
                            "name": {
                                "value": "Asparagus"
                            }
                        },
                        {
                            "name": {
                                "value": "Middle Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Vivid Violet"
                            }
                        },
                        {
                            "name": {
                                "value": "Burnt Umber"
                            }
                        },
                        {
                            "name": {
                                "value": "Mummy's Tomb"
                            }
                        },
                        {
                            "name": {
                                "value": "Smokey Topaz"
                            }
                        },
                        {
                            "name": {
                                "value": "Violet (II)"
                            }
                        },
                        {
                            "name": {
                                "value": "Shadow"
                            }
                        },
                        {
                            "name": {
                                "value": "Alien Armpit"
                            }
                        },
                        {
                            "name": {
                                "value": "Gold Fusion"
                            }
                        },
                        {
                            "name": {
                                "value": "Fuzzy Wuzzy"
                            }
                        },
                        {
                            "name": {
                                "value": "Spring Frost"
                            }
                        },
                        {
                            "name": {
                                "value": "Twilight Lavender"
                            }
                        },
                        {
                            "name": {
                                "value": "Middle Blue Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Gray"
                            }
                        },
                        {
                            "name": {
                                "value": "Pewter Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Cobalt Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Razzmic Berry"
                            }
                        },
                        {
                            "name": {
                                "value": "Manatee"
                            }
                        },
                        {
                            "name": {
                                "value": "Middle Blue Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Plum"
                            }
                        },
                        {
                            "name": {
                                "value": "Medium Violet"
                            }
                        },
                        {
                            "name": {
                                "value": "Sheen Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Light Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Sugar Plum"
                            }
                        },
                        {
                            "name": {
                                "value": "Beaver"
                            }
                        },
                        {
                            "name": {
                                "value": "Gold (I)"
                            }
                        },
                        {
                            "name": {
                                "value": "Citrine"
                            }
                        },
                        {
                            "name": {
                                "value": "Cornflower"
                            }
                        },
                        {
                            "name": {
                                "value": "Sea Green"
                            }
                        },
                        {
                            "name": {
                                "value": "Aquamarine"
                            }
                        },
                        {
                            "name": {
                                "value": "Blue Bell"
                            }
                        },
                        {
                            "name": {
                                "value": "Dirt"
                            }
                        },
                        {
                            "name": {
                                "value": "Big Dip O' Ruby"
                            }
                        },
                        {
                            "name": {
                                "value": "Purple Plum"
                            }
                        },
                        {
                            "name": {
                                "value": "Metallic Sunburst"
                            }
                        },
                        {
                            "name": {
                                "value": "Granny Smith Apple"
                            }
                        },
                        {
                            "name": {
                                "value": "Sepia"
                            }
                        },
                        {
                            "name": {
                                "value": "Rose Dust"
                            }
                        },
                        {
                            "name": {
                                "value": "Winter Wizard"
                            }
                        },
                        {
                            "name": {
                                "value": "Burnished Brown"
                            }
                        },
                        {
                            "name": {
                                "value": "Jazzberry Jam"
                            }
                        },
                        {
                            "name": {
                                "value": "Middle Red Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Blast Off Bronze"
                            }
                        },
                        {
                            "name": {
                                "value": "Maximum Red Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Quick Silver"
                            }
                        },
                        {
                            "name": {
                                "value": "Fresh Air"
                            }
                        },
                        {
                            "name": {
                                "value": "Green Lizard"
                            }
                        },
                        {
                            "name": {
                                "value": "Sweet Brown"
                            }
                        },
                        {
                            "name": {
                                "value": "Cadet Blue"
                            }
                        },
                        {
                            "name": {
                                "value": "Ruby"
                            }
                        },
                        {
                            "name": {
                                "value": "Magic Mint"
                            }
                        },
                        {
                            "name": {
                                "value": "Glossy Grape"
                            }
                        },
                        {
                            "name": {
                                "value": "Peridot"
                            }
                        },
                        {
                            "name": {
                                "value": "Maximum Blue Purple"
                            }
                        },
                        {
                            "name": {
                                "value": "Middle Green Yellow"
                            }
                        },
                        {
                            "name": {
                                "value": "Mystic Maroon"
                            }
                        },
                        {
                            "name": {
                                "value": "Copper Penny"
                            }
                        },
                        {
                            "name": {
                                "value": "Lilac Luster"
                            }
                        },
                        {
                            "name": {
                                "value": "Pet Shop (Brown)"
                            }
                        },
                        {
                            "name": {
                                "value": "Brown"
                            }
                        },
                        {
                            "name": {
                                "value": "Brown Sugar"
                            }
                        },
                        {
                            "name": {
                                "value": "Inchworm"
                            }
                        },
                        {
                            "name": {
                                "value": "Giant's Club"
                            }
                        },
                        {
                            "name": {
                                "value": "Pink Pearl"
                            }
                        },
                        {
                            "name": {
                                "value": "Lime"
                            }
                        },
                        {
                            "name": {
                                "value": "Dark Venetian Red"
                            }
                        },
                        {
                            "name": {
                                "value": "Tiger's Eye"
                            }
                        },
                        {
                            "name": {
                                "value": "Olive Green"
                            }
                        },
                        {
                            "name": {
...

This file has been truncated, please download it to see its full contents.

Name the Crayon - AWS Lambda

JavaScript
use this to upload to AWS Lambda
No preview (download only).

Credits

Ron Dagdag

Ron Dagdag

47 projects • 438 followers
Microsoft MVP award / Lead Software Engineer / Augmented Reality. Developer Passionate to learn about Robotics, VR, AR, ML, IOT

Comments