Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Latest commit

 

History

History
29 lines (21 loc) · 2.73 KB

1-build-alexa-skill.md

File metadata and controls

29 lines (21 loc) · 2.73 KB

Build Alexa Skill

There are many excellent resources on how to create custom Alexa Skill using nodejs-sdk and ask-cli, to avoid being repetitive, I will not go into details on each steps. Please refer to the following better documented tutorials:

  • Quick Start Alexa Skill Kit CLI
    • MUST READ, unless you're all familiar with the development cycle.
    • ask new by default will gives a "HelloWorld" skill template, you could play around with this sample with ASK-CLI commands.
  • Alexa Skill Kit SDK for nodejs
    • If you want to strictly follow our Alexa Skill code base, please install a legacy version 1 of the ask-sdk by npm install --save [email protected].
    • Or alternatively, you could copy the entire slidingPuzzle folder, change directory to slidingPuzzle/lambda/custom and type npm install which will install all dependencies and packages specified in package.json

After installing and configuring, simply copy everything under slidingPuzzle/ folder, except .ask/ folder but including .gitignore. ( NOTE: after your first ask new, you should hit ask deploy which will automatically update your .ask/config with the correct skill_id field).

All Alexa Skill code should be pretty self-explanatory, if you bumped into any syntax or alien usage of ask-sdk, please submit an issue or usually you'll find documentation in:

Testing

  • The best testing channel is amazon alexa developer console, where you could see all details on your Interaction Model, typing in your command to test your skill should come handy and agile. alexa testing panel

  • Testing directly from terminal is also possible using ask simulate

Encountered Problems?

  • Check your IAM Role, make sure at least you have lambda_basic_execution_access, dynamodb_execution permissions.