This repo will jump-start you on the code you need to respond to Amazon Alexa Skills requests using AWS Lambda functions.
Pre-requisite: Install and login to the AWS Command-line Interface (CLI)
- Clone this repo.
- Run
npm install
to install the required Wordsmith Node SDK. - Update the package.json scripts to point to your Lambda function and to the location where you've cloned this repo
- Configure
index.js
to use your Wordsmith API key, project slug, template slug, and data - Update the sample Lambda invocation data in
test/invocation.json
. This JSON file simulates what the Alexa service will send you during anIntentRequest
for your Skill. The most important bit to update is therequest.intent
key with your intent's name and any slot data you need. - Run
npm test
to test out your Lambda locally - Use
npm run update
to upload your code to your AWS Lambda function - Run
npm test
to see the result of calling your actual, cloud-based Lambda function with the invocation data
Once everything is working like you want, you can use the Alexa developer console to test out your Alexa Utterances using your new Lambda function.