Add all answers and intents for saburly skill

This commit is contained in:
MirnaM
2017-11-29 12:10:47 +01:00
parent 630e812654
commit 6c6874fb9a

View File

@@ -20,24 +20,61 @@ alexaApp.express({
debug: true
});
// now POST calls to /test in express will be handled by the app.request() function
// from here on you can setup any other express routes or middlewares as normal
app.set("view engine", "ejs");
const responseMessages = {
WELCOME:'We are Saburly. Team of design and build software. We are located in Bosnia and Herzegovina. To ask us about our services, say: what do you do? If you want to know about technologies say: what do you know? If you\'re interested in projects we worked on, say: tell me about your projects. If you want to know about how we approach work, say: tell me about your process. If you are confused, just say: help!',
PROCESS: 'We collaborate closely with our clients at each step of the developmentprocess. From designing the UX to developing the front-end andarchitecting the back-end.',
SERVICES: 'We are a team of creative, open minded, skilled and fun loving engineers that ship success every day. Here are the 3 things we can do for you: UX and UI design, web development and mobile development.',
TECHNOLOGIES: 'Some of the technologies we use are: html5, react, nodejs, ruby, amazon aws, docker, jenkins, elastic etc.',
PROJECTS: 'Some of our projects are: Agritech IoT Solution, real-estate search website, online shop for baby products, students registry for Ministry of Education etc.',
WELCOME_REPROMPT: 'For instructions on what you can say, please say help!',
HELP: 'To ask us about our services, say: what do you do? If you want to know about technologies say: what do you know? If you\'re interested in projects we worked on, say: tell me about your projects. If you want to know about how we approach work, say: tell me about your process.',
STOP: 'Goodbye!'
};
alexaApp.launch(function(request, response) {
response.say("You launched Saburly app!");
response.say(responseMessages.WELCOME);
response.reprompt(responseMessages.WELCOME_REPROMPT);
});
alexaApp.intent("AMAZON.HelpIntent", {
utterances: [],
},
function (request, response) {
response.say(responseMessages.HELP);
});
alexaApp.intent("GetProcessIntent", {
"utterances": [
"tell me about projects", "say something about your project", "what are your projects"
]
"utterances": []
},
function(request, response) {
response.say("We collaborate closely with our clients at each step of the developmentprocess. From designing the UX to developing the front-end andarchitecting the back-end.");
response.say();
}
);
alexaApp.intent("GetTechnologiesIntent", {
"utterances": []
},
function(request, response) {
response.say(responseMessages.TECHNOLOGIES);
}
);
alexaApp.intent("GetServicesIntent", {
"utterances": []
},
function(request, response) {
response.say(responseMessages.SERVICES);
}
);
alexaApp.intent("GetProjectsIntent", {
"utterances": []
},
function(request, response) {
response.say(responseMessages.PROJECTS);
}
);
app.listen(PORT);
console.log("Listening on port " + PORT + ", try http://localhost:" + PORT + "/step1");