-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex_lambda.js
30 lines (22 loc) · 946 Bytes
/
index_lambda.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use strict';
// =================================================================================
// The below code is used to set up a server and a webhook at /webhook.
// Danger Zone: Editing might break your app.
// =================================================================================
const app = require('jovo-framework').Jovo;
exports.handler = function(event, context, callback) {
app.handleRequest(event, callback, handlers);
app.execute();
};
// =================================================================================
// Below is where the logic of your voice app should be happening
// Get started by adding some intents and Jovo functions
// =================================================================================
let handlers = {
'LAUNCH': function() {
app.toIntent('HelloWorldIntent');
},
'HelloWorldIntent': function() {
app.tell('Hello World!');
}
};