Code Monkey home page Code Monkey logo

alexa-reprompt's Introduction

Alexa Skills Kit re-prompt sample

This sample shows off an approach how one can have multiple skill utterances requiring some data to operate on. As user input is not predictable, any slot value can be missing. Of cause, you can do a re-prompt. But what happens if your skill takes 2 slot values? And what happens if your skill have 2 utterances that can take the same values? This skill covers following use case:

  • You have number of devices that allows to set or read values. Example: light switches. You should be able to turn on or off any switch, or read current switch operational mode.
  • It must be possible to assign a specific value to a specific device.
  • It must be possible to get current reading of a value on specific device.

How to deploy the skill: You need an account at AWS to deploy Lambda function. Also you need an account at developer.amazon.com to configure the skill. Read more about registering the skill at https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/registering-and-managing-alexa-skills-in-the-developer-portal As soon as you see skill ID (example skill ID: amzn1.ask.skill.dd7ff3a8-1841-4167-aee5-abcd12345 ), enter it in SpeechletStreamHandler APPLICATION_ID field. You can now deploy lambda. Read more about how to deploy your lambda function here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/developing-an-alexa-skill-as-a-lambda-function

How to test the skill: Make sure you followed steps described here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/testing-an-alexa-skill As soon as you have your skill deployed in testing mode and linked to your alexa account, say "Alexa, open your_skill_name". You should here "Hello". This is the value returned from ca.appspace.ask.RepromptSpeechlet.onLaunch(SpeechletRequestEnvelope) method. Say "Alexa, tell your_skill_name for help". You should here "Helping". Look into SampleUtterances.txt file for other utterances you can say to your skill.

alexa-reprompt's People

Contributors

eugene-mobile avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.