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 create a Studio flow from a JSON definition?

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

  1. In the Twilio Console, select Orchestration in the left sidebar.
  2. Select Studio, then Flows.
  3. Select Create flow, then select From JSON.
  4. In the Create from JSON dialog, enter a name in Flow name.
  5. Paste your definition into the JSON flow definition editor.
  6. Select Create flow.
  7. 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.

Have more questions? Submit a request
Powered by Zendesk