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
bynpm install --save [email protected]
. - Or alternatively, you could copy the entire slidingPuzzle folder, change directory to
slidingPuzzle/lambda/custom
and typenpm install
which will install all dependencies and packages specified inpackage.json
- If you want to strictly follow our Alexa Skill code base, please install a legacy version 1 of the
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:
-
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.
-
Testing directly from terminal is also possible using
ask simulate
- Check your IAM Role, make sure at least you have
lambda_basic_execution_access
,dynamodb_execution
permissions.