Objective
This article shows you how to add and configure the Split Based On... widget so your Studio flow branches down different paths depending on a value — a caller's keypress, a reply, or any variable your flow has collected.
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
- In the Twilio Console, select Orchestration in the left sidebar.
- Select Studio, then Flows.
- Select the flow you want to edit to open the Editor tab.
- Open the widget library and drag Split Based On... onto the canvas.
- Select the new widget to open its configuration panel.
- In Variable to test, choose or enter the variable whose value should decide the branch.
- Select Save.
- Open the Transitions tab and add each branch:
- Select New condition.
- Enter a name for the branch in Condition name.
- Choose a comparison in the operator list, such as Greater Than or Less Than.
- Enter the value to compare against in Value.
- In Transition to, choose the widget the flow should move to when the condition matches.
- Save the condition.
- Repeat for each additional branch you need.
- In If no condition matches, choose a fallback widget so the flow always has somewhere to go.
- Select Publish to make the change live.
Additional Information
- Conditions are evaluated in order, and the first match wins — put your most specific conditions first.
- Always set If no condition matches. Without it, a value that matches nothing leaves the flow with no path forward.
- Add the variable you are testing before this widget in the flow, using Set Variables, Gather Input on Call, or Send and wait for reply.
This content was generated by AI and reviewed, edited, and verified by a human.