Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.39 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.39 KB

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