interaction music playback making to-do lists setting alarms streaming podcasts playing audiobooks providing weather, traffic, and other real-time information can control compatible smart devices such as light bulbs, TVs etc.
= intent.slots.WiggleIndicators; var wiggleIndicatorName; if (wiggleIndicatorsSlot && wiggleIndicatorsSlot.value) { wiggleIndicatorName = wiggleIndicatorsSlot.value.toLowerCase(); } /* YOUR SKILL LOGIC HERE */ var output = “SOMETHING FOR ALEXA TO SAY"; var speechletResponse = buildSSMLSpeechletResponse(output, "", "false"); callback(session.attributes, speechletResponse); } else { /* SOMETHING WRONG, HANDLE IT ! */ } } function handleFailRequest(intent, session, callback, wrongPlayOption, wiggleIndicatorName) { /* YOU KNOW THE PLAYER FAILED IF YOU ARE HERE, SO NO NEED TO INTERROGATE INTENT AND THE SLOT */ /* LOGIC TO GATHER GAME SCORES etc. HERE */ output = “SOMETHING FOR ALEXA TO SAY UPON PLAYER”S FAILURE OR GAME ENDED"; speechletResponse = buildSSMLSpeechletResponse(output, "", "true"); callback(session.attributes, speechletResponse); } }
- Do away with web forms ? • Improve accessibility with a new way to solve problems - Take commands by voice DEMO - JobSearch skill • Natural Language Processing (NLP) APIs - use them to create organisation specific NLP universe and host them on-premise using Alexa for business. • Amazon Lex - sophisticated, natural language chatbots with flexibility of natural language understanding (NLU) and automatic speech recognition (ASR)