Skip to content

Instantly share code, notes, and snippets.

View mattmakai's full-sized avatar
💭
bit.ly/fspython

Matt Makai mattmakai

💭
bit.ly/fspython
View GitHub Profile
@mattmakai
mattmakai / it-support.js
Last active July 10, 2017 17:11
IT Support Line
// Code for Twilio Functions (https://www.twilio.com/functions) that builds an automated speech recognition IT support desk.
// Read the companion blog post (https://www.twilio.com/blog/2017/07/building-the-it-crowd-answering-machine-using-twilio-functions.html) for full explanations.
/**************** Version 1 ******************/
exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.VoiceResponse();
twiml.say({ voice: 'man', language: 'en-gb' }, 'Welcome to the IT support hotline. Sorry, we are currently closed. We don not have any open hours.');
callback(null, twiml);
};