This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
}; |
OlderNewer