/.ask
- ASK CLI (Command Line Interface) Configuration/lambda/custom
- Back-End Logic for the Alexa Skill hosted on AWS Lambda/models
- Voice User Interface and Language Specific Interaction Models/instructions
- Step-by-Step Instructions for Getting Startedskill.json
- Skill Manifest
- Node.js (version 8+)
- Register for an AWS Account
- Register for an Amazon Developer Account
- Install and Setup ASK CLI
Note: If you would like to setup the ASK CLI using AWS Cloud9 (a cloud-based IDE with pay-as-you-go pricing and is eligible for AWS Free Tier pricing), step-by-step instructions can be found here.
-
Clone the repository.
git clone https://github.com/alexa/skill-sample-nodejs-decision-tree/
-
Install npm dependencies by navigating into the
/lambda/custom
directory and running the npm command:npm install
cd lambda/custom npm install
ASK CLI will create the skill and the lambda function for you. The Lambda function will be created in us-east-1 (Northern Virginia)
by default.
-
Deploy the skill and the lambda function in one step by running the following command:
ask deploy
-
Simulate a dialog in an interactive text chat with your skill using the following example. Replace the skill-id value with the appId from your skill. This is shown when the CLI deploy is complete; and you can find it in the developer console, on the build tab, Endpoints section.
ask dialog --locale en-US --skill-id amzn1.ask.skill.1c85444...etc.. start decision tree
-
Simulate a request or intent with your skill through the command line using the following example:
ask simulate -l en-US -t "start decision tree" ✓ Simulation created for simulation id: 4a7a9ed8-94b2-40c0-b3bd-fb63d9887fa7 ◡ Waiting for simulation response{ "status": "SUCCESSFUL", ...