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?

Twilio Autopilot Stub

// Description
// Twilio Autopilot Stub Response
// Parse Remember Action and Returns Say Action
// Additional Autopilot Actions -

exports.handler = function (context, event, callback) {
  let memory = JSON.parse(event.Memory);
  console.log('User Identifier: ' + event.UserIdentifier);
  console.log('Task: ' + event.CurrentTask);
  let message = '😸 Hello from Winston 😸';
  let responseObject = {
    actions: [
        say: message,
  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.