question

Matt Kruse avatar image
Matt Kruse asked

Update: alexa-app 2.0 for Node.js - Alexa skills for Lambda, Express, etc!

I have updated my alexa-app Node module to version 2.0 and it now offers a lot of new functionality: https://www.npmjs.com/package/alexa-app 1. Simple integration into AWS Lambda, Node express, and other frameworks 2. Auto-generation of schema definition and many sample utterances from a few example utterances 3. Asynchronous handler functions supported 4. New ability to define custom error handlers 5. Persistent session values across multiple requests 6. A simplified API for dealing with Alexa apps/skills: response.say("Done!") - it couldn't be easier! Just take a look at this fully-functional Alexa Skill for AWS Lambda to trigger the "find my iphone" alert on my wife's phone: var alexa = require('alexa-app'); var find = require('find-my-iphone'); var app = new alexa.app(); app.launch(function(request,response) { find( 'me@icloud.com','mypassword','iPhone',function() { response.say("OK").send(); }); return false; }); // Connect to lambda exports.handler = app.lambda(); With such simplified implementation, now you can focus on writing your application features, rather than learning the details of the Alexa API! I would love to hear feedback! Matt Kruse
alexa skills kitcommunity projects
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sushil Singh avatar image
Sushil Singh answered
Thanks Matt for the app framework. It make it fairly easy to get up and running quickly for someone new to this. I used the app-framework to create an application for controlling my home media center. http://sushilks.blogspot.com/2015/07/connecting-alexa-to-logitech-harmony.html Some feedback > Would be nice to package https example for the web server, It was not hard to figure it out but nevertheless it will save time. > It's not clear to me how Can just create a repo on github for the application code only and have it be served. Would be nice if the server code was a npm package. > Opening a port on internet seems very risky. The only validation is for application id which does not give me lot of comfort. It would be nice to also validate the header and make sure the request's are coming from amazon. Will post more feedback as I work on it.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Kruse avatar image
Matt Kruse answered
> Would be nice to package https example for the web server, It was not hard to figure it out but nevertheless it will save time. Since the solution for https depends so much on the hosting environment, I didn't want to include a general solution. > It's not clear to me how Can just create a repo on github for the application code only and have it be served. Would be nice if the server code was a npm package. I am working on converting the server code into a module itself, so it can be more easily used. I'm not sure what you mean about github. > Opening a port on internet seems very risky. The only validation is for application id which does not give me lot of comfort. It would be nice to also validate the header and make sure the request's are coming from amazon. Indeed, validation should be done, but that's what each app's pre() method is for. You need to figure out what checks you feel comfortable with. :)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.