Git Product home page Git Product logo

alexa_smarthome_nodejs_lambda's Introduction

Alexa Skills

(https://developer.amazon.com/docs/ask-overviews/build-skills-with-the-alexa-skills-kit.html)

A skill is an app available for alexa's users ( https://alexa.amazon.com/spa/index.html )

Available skill types:

  • Custom Skills (custom interaction model)
  • Smart Home Skills
  • Flash Briefing Skills
  • Video Skills

The skill determines how words and phrases are interpreted by alexa an it's relation to code execution. In the case of smarthome skills, the interaction model and utterances are fixed https://developer.amazon.com/docs/smarthome/smart-home-skill-api-message-reference.html https://developer.amazon.com/docs/device-apis/message-guide.html https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html#what-kind-of-devices-are-supported

Implementing a skill:

  • amazon lambda function
  • webservices (custom skill only)

Smarthome skill:

https://developer.amazon.com/docs/smarthome/steps-to-build-a-smart-home-skill.html

LWA (login with amazon)

https://sellercentral.amazon.com/gp/homepage.html?cor=login_NA& we register a new app and obtain a client-id used for account linking of the skill

HOW IT WORKS (maybe?)

  • we ask alexa to do something
  • alexa checks which skill can handle it
  • alexa sends a request to our lambda with a token identifying the user, and the command sent (directive)
  • we use the lambda as a proxy to communicate with our server
  • the server verifies that the token sent is valid and the user is registered in our system (LWA)
  • the server sends a request to the home but using stored credentials
  • the server receives a response, and sends it back to the lambda
  • lambda parses the response and replies to alexa
  • alexa says OK

alexa_smarthome_nodejs_lambda's People

Contributors

biagioni84 avatar

Watchers

James Cloos avatar NickArthur avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.