Skip to content

intresrl/alexa-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alexa-workshop

Initial setup

  • Navigate to ./.ask directory, copy config.example file and rename it to config
  • Navigate to ./lambda/custom directory and run npm install to install the dependencies listed in package.json

Useful commands

  • ASK CLI
    • ask deploy: deploy the latest changes to AWS
  • BST CLI
    • bst launch: simulate a launch request
    • bst utter <UTTERANCE> -m models/it-IT.json: simulate an utterance

Exercises

Exercise 1

You must implement code for the following handlers:

  • help
  • start
  • stop
  • error

The following diagrams show the expected behavior for each handler.

Help handler
help

Start handler
start

Stop handler
stop

Error handler
error

Tips:

  • You must list all the intents in models/it-IT.json
  • The canHandle method must return true if the handler should manage the user's request, false otherwise
  • handlerInput.requestEnvelope.request.type is equal to 'IntentRequest' if the request is an intent
  • handlerInput.requestEnvelope.request.intent.name contains the name of the intent that matched the request (if any)
  • You can close the session by passing true to the withShouldEndSession method

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors