Objective
This article shows you how to add and configure the Set Variables widget so your Studio flow stores values it can reuse later — a customer name, a computed total, or a JSON object, and how to edit or remove those variables 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
- 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 Set Variables onto the canvas.
- Select the new widget to open its configuration panel.
- To add a variable:
- Select Add variable.
- Enter the variable's name as the key and its content as the value.
- Select Parse as JSON Object if the value should be stored as structured JSON rather than a string.
- Select Save to add it to the variables table.
- Repeat for each variable you need. They all appear in the variables table in the panel.
- To change a variable, select its edit action in the table, adjust the key or value, and select Save.
- To remove a variable, select its delete action in the table and confirm with Delete.
- Select Save in the configuration panel.
- Open the Transitions tab and choose where the flow goes next for If next.
- Select Publish to make the change live.
Additional Information
- Variables set here are available to every widget that runs after this one in the same execution.
- Parse as JSON Object lets later widgets read individual fields out of the value instead of treating the whole thing as text.
- You can add several variables to a single widget rather than chaining multiple Set Variables widgets together.
This content was generated by AI and reviewed, edited, and verified by a human.