SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I redirect a Studio flow to TwiML?

Objective

This article shows you how to add and configure the Add TwiML Redirect widget so your Studio flow hands control to your own TwiML, and optionally returns to the flow afterwards.

 

Product

Studio

 

Environment

Twilio Console

 

User Account Permission/Role(s) Required

Editing a flow requires the Studio flows create and update permissions on the account.

 

Procedure

  1. In the Twilio Console, select Orchestration in the left sidebar.
  2. Select Studio, then Flows.
  3. Select the flow you want to edit to open the Editor tab.
  4. Open the widget library and drag Add TwiML Redirect onto the canvas.
  5. Select the new widget to open its configuration panel.
  6. Enter the address that returns your TwiML in URL.
  7. Choose GET or POST in Method.
  8. Set Timeout to the number of seconds to wait for a response before giving up.
  9. Select Save.
  10. Open the Transitions tab and choose where the flow goes next for If return, If timeout, and If failed.
  11. Select Publish to make the change live.

 

Additional Information

  • If return fires when your TwiML hands control back to the flow, so use it to continue the flow after the redirect completes.
  • Set Timeout conservatively: a slow endpoint holds the caller on the line until the timeout expires and the If timeout transition fires.
  • This widget is the escape hatch for behaviour Studio's widgets do not cover — use a TwiML Bin, a TwiML App, or your own web endpoint to supply the TwiML.

 

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk