twiliotwilio-autopilot

How to create customizable collects in Autopilot(Twilio)?


I would like to know how o create a customizable Collect for a task in Autopilot. i.e if I want to add new questions to the Collect, all I would be needing is to change the collect from the backend of my application. Is there any method for doing the same?


Solution

  • You can use the REST API to update the actions for a task.

    Or, if you set an actions URL for the task to point to your own application, then you can handle the questions in your application. That way you could build an interface that allows you to create Collect questions in your application and when Twilio Autopilot makes a webhook request to the actions URL for the task, your application can return the Actions JSON containing the up to date Collect questions.