0

I was able to create a callback task but its not associating the phone number with it which in turn doesnt show the callback button in twilio flex panel.

here is the api used: https://taskrouter.twilio.com/v1/Workspaces/workspaceId/Tasks

here is the payload sent.

task channel: callback,
workflowsid : "",
attributes: {}

so is it possible to create a callback task with phone number associated to it?

SO-user
  • 1,458
  • 2
  • 21
  • 43

1 Answers1

0

It's absolutely possible to create a callback flow in Twilio Flex/Taskrouter. There are a few things you need to do though.

  1. You would create a task as a "callback" task type.

  2. When you create the task you need to write the task attributes like to and from to that task.

  3. Then you need a Flex plugin which when afterAccept of callback tasks triggers an outbound call to the "to" number of that task. This can be done using Twilio Flex Actions and Event Listeners. See the documentation.

If you are looking for something pre-built, then there are a few partner solutions like Ciptex Race that have this functionality out of the box which sits on top of your Twilio Flex.

ouflak
  • 2,458
  • 10
  • 44
  • 49
Matthew
  • 51
  • 1
  • Thanks for your contributions recently, but please abstain from adding boilerplate like greetings or signatures - answers should focus strictly on actually answering the question. – tripleee Jan 19 '22 at 12:55
  • @tripleee I can point out many examples where Twilio Evangelists have started an answer with "Twilio Evangelist Here!" I believe that is done to add context and trust worthiness to the answer. – Matthew Mar 08 '22 at 15:11
  • Please be invited to submit edit suggestions to remove those where you find them. – tripleee Mar 09 '22 at 05:07