New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alexa-actions

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alexa-actions

This is a lightweight wrapper to make the Dialogflow callbacks compatible with an Alexa Skill.

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Alexa Actions

This is a npm module which adds support for API.ai on the Alexa-SDK to support e.g. Actions on Google.

Usage

The simple way:
Just replace require('alexa-sdk') by require('alexa-actions').

The more advanced usage if something does not work for you:

const AlexaActions = require('alexa-actions');
// [...]
exports.handler = (event, context) => {
    const alexa = Alexa.handler(AlexaActions.toAlexaStyle(event),
                                AlexaActions.addApiAiAttributes(context));
    alexa.app_id = APP_ID;
    alexa.resources = languageStrings;
    alexa.registerHandlers(handlers);
    alexa.execute();
};

The Intents on API.ai have to be the same as in your Alexa Skill, the parameters of your intent API.ai have to be named equal to the slots in your skill.

Examples

Real world examples on Google Home:

  • "Okay Google, ask Dependency Lookup where is the class AdView?""

License

Apache 2.0

Keywords

FAQs

Package last updated on 18 Oct 2017

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