Objective
This article shows you how to create a Studio flow by pasting in an existing flow definition in JSON, which is the quickest way to copy a flow between accounts or restore a definition you exported earlier.
Product
Studio
Environment
Twilio Console
User Account Permission/Role(s) Required
Creating 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 Create flow, then select From JSON.
- In the Create from JSON dialog, enter a name in Flow name.
- Paste your definition into the JSON flow definition editor.
- Select Create flow.
- A Flow created confirmation appears and the imported flow opens in the editor.
Additional Information
- The definition is validated before the flow is created:
- If the text is not valid JSON, you see Invalid JSON. Please check your flow definition.
- If the JSON is valid but does not have the required fields and a trigger state, you see Invalid flow definition structure. Ensure it contains required fields and a trigger state.
- A flow definition may reference other Twilio resources, such as Functions, Assets, messaging services, or TaskRouter workflows. Those references are not copied when the flow is imported, so check and update them after import.
This content was generated by AI and reviewed, edited, and verified by a human.