Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.58 KB

File metadata and controls

70 lines (47 loc) · 2.58 KB

Setup w/ ASK CLI

Repository Contents

Pre-requisites

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.

Installation

  1. Clone the repository.

    git clone https://github.com/alexa/skill-sample-nodejs-decision-tree/
  2. Install npm dependencies by navigating into the /lambda/custom directory and running the npm command: npm install

    cd lambda/custom
    npm install

Deployment

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.

  1. Deploy the skill and the lambda function in one step by running the following command:

    ask deploy

Testing with the CLI Dialog command

  1. 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

Testing with the CLI Simulate command

  1. 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",
      ...

NEXT: Testing in the Console

Next