Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alexa-lambda-skill

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alexa-lambda-skill

Create Alexa Skills for AWS Lambda, easily.

  • 0.1.28
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by118.18%
Maintainers
1
Weekly downloads
 
Created
Source

alexa-lambda-skill

Easily create Alexa Skills to run on AWS Lambda using ES6.

Example

import { Handler, Response } from "alexa-lambda-skill";

class MySkill {
  // Called when a LaunchRequest is triggered
  launch() {
    console.log("My skill launched!");
  }

  // Called when the IntentRequest "speak" is triggered
  speak(slots) {
    const { sentence } = slots;
    return Response.say(sentence).card("MySkill", `Said "${sentence}"`);
  }

  // Called when the IntentRequest doesn't have a specific handler
  intent(name, slots) {
    return Promise.reject(`Unhandled intent "${name}"`);
  }

  // Called when a SessionEndedRequest is triggered
  sessionEnded(reason) {
    console.log(`Session ended: "${reason}"`);
  }
}

export default new Handler(new MySkill());

Keywords

FAQs

Package last updated on 26 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc