Skip to content

The purpose of this project is to make it as easy as possible to set up a new Hello World Alexa Skill that runs as a nodejs Lambda function on AWS.

Notifications You must be signed in to change notification settings

hous/alexa-nodejs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alexa-nodejs-template

The purpose of this project is to make it as easy as possible to set up a new Hello World Alexa Skill that runs as a nodejs Lambda function on AWS.

Getting Started / Installation Instructions

  1. Create an AWS Account.
  2. Install and configure the AWS Command Line Interface. Info here and here.
  3. Make sure NodeJS is installed.
  4. Go to the Amazon Developer Portal. Click "Get Started" with Alexa Skills Kit.
  5. In a separate tab, go to the Lambda Function Portal on AWS.
  6. Go through the steps to create a new Lambda function - skip the blueprint step, choose a name for your function (save this for later), and write down the Application ID. You'll need it later. Then select "Upload a .ZIP file" under "Lambda function code".
  7. Now you'll need to upload a zip file to get started with code for your Lambda function. Switch over to your terminal where you checked out this project, and do an npm install.
  8. Run gulp zip to generate a zip file in the ./dist folder.
  9. Switch back to the browser on Lambda and select the "archive.zip" under Upload.
  10. Choose a role for your Lambda function - either create a Basic execution role or use a one you previously set up.
  11. Click "Next" and then "Create Function"
  12. Switch to the "Event Sources" tab and add an event source type for "Alexa Skills Kit"
  13. Switch back to the Alexa Developer Console tab and choose "Add a New Skill"
  14. Choose a Name and Invocation Name for your skill (see docs for more info) - or just Use "Hello World" and "Greeter" to follow the Hello World example.
  15. Under "Intent Schema", copy the contents of ./speechAssets/IntentSchema.json. Under "Sample Utterances", do the same with SampleUtterances.txt.
  16. Click Next, then switch over to the Lambda Function tab and copy the value for ARN which should be in the top right corner of the page when viewing your Lambda Function.
  17. Paste this in the "Configuration > Endpoint" field of the Alexa developer console and hit "Next".
  18. Open src/config.js and replace the appropriate values with Lambda ARN, Lambda Function Name, Amazon App ID (found here), region (defaults to us-east-1), and skill title.
  19. At this point you should be able to test your skill with your Amazon Echo by using the phrase you configured in the Invocation Name.

Testing

gulp test or AWS_PROFILE=MY_PROFILE_NAME gulp test

TODO - You'll need to configure appropriate intent test files to do this.

About

The purpose of this project is to make it as easy as possible to set up a new Hello World Alexa Skill that runs as a nodejs Lambda function on AWS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published