Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Simple Response

The Function below is a simple example of an Autopilot response.

exports.handler = function(context, event, callback) {
  let taskName = event.CurrentTask;
  let memory = JSON.parse(event.Memory);

  responseObject = {
    "actions": [
        "say": "This is your sample response from a function" 
   callback(null, responseObject);
Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.