Skip to content

A simple, no-dependency bootstrapping tool for quickly creating Amazon Alexa Skills in Node.js

License

Notifications You must be signed in to change notification settings

StuartPearlman/amazon-echo-onlaunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amazon-echo-onlaunch

A simple, no-dependency bootstrapping tool for quickly creating Amazon Alexa Skills in Node.js

Installation

$ npm i --save amazon-echo-onlaunch

Usage

In the index.js file of your Alexa Skill:

const Alexa = require('amazon-echo-onlaunch');
const myCustomOnLaunchFunc = require('./myCustomOnLaunchCode');

exports.handler = (event, context) => new Alexa(event, context, myCustomOnLaunchFunc);

In your custom code file:

function myCustomOnLaunchFunc(callback) {
  callback('The custom string you want Alexa to say');
}

module.exports = myCustomOnLaunchFunc;

Limitations

  • The function you pass into the Alexa constructor must take a callback as an argument and invoke that callback with a string.

  • This package currently only supports simple "call-and-response" interactions with Alexa. For more advanced interactions that require persisting state or managing authentication, see Amazon's official documentation.

About

A simple, no-dependency bootstrapping tool for quickly creating Amazon Alexa Skills in Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published