-
Notifications
You must be signed in to change notification settings - Fork 9
/
app.js
44 lines (37 loc) · 1.26 KB
/
app.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var Alexa = require('alexa-app')
var app = new Alexa.app('app') // eslint-disable-line
app.launch(function (request, response) {
var launchOutput = 'Welcome to Your Skill. The purpose of this skill is... To start using the skill, say Alexa, ask ....'
response.say(launchOutput)
response.shouldEndSession(false)
})
app.intent('AMAZON.HelpIntent', {
'slots': {},
'utterances': []
}, function (request, response) {
var helpOutput = 'Welcome to Your Skill. The purpose of this skill is... To start using the skill, say Alexa, ask .... What would you like to do?'
response.say(helpOutput)
response.shouldEndSession(false)
})
app.intent('AMAZON.StopIntent', {
'slots': {},
'utterances': []
}, function (request, response) {
var stopOutput = 'Stopping your Request and Exiting Skill'
response.say(stopOutput).send()
})
app.intent('AMAZON.CancelIntent', {
'slots': {},
'utterances': []
}, function (request, response) {
var cancelOutput = 'Canceling your Request and Exiting Skill'
response.say(cancelOutput).send()
})
app.intent('SampleIntent', {
'slots': {},
'utterances': ['to say the skill', 'to tell me the name', 'to recite the time']
}, function (request, response) {
var output = 'Hi there'
response.say(output).send()
})
module.exports = app