1.3.2 • Published 8 years ago
alexa-express v1.3.2
alexa-express
Create Amazon Alexa apps with expressjs
-like middleware.
Installation
Install with npm
npm install alexa-express
Example
Create app
app = new require("alexa-express")()
module.exports = app.handler
Handle LaunchRequest
app.use "/launch", ( req, res, next ) ->
res.tell "Welcome!"
Built-in Intents
# AMAZON.HelpIntent
app.use "/intent/amazon/help", ( req, res, next ) ->
res.ask "How can I help you today?"
Custom Intents
# StartGameIntent
app.use "/intent/startGame", ( req, res, next ) ->
res.ask "What do you want to play?"