Menu

Expand
Rate this page:

Run Subflow

BETA

This Twilio product is currently available as a beta release. Some features are not yet implemented and others may be changed before the product is declared as Generally Available. Beta products are not covered by a Twilio SLA. Learn more about beta product support.

Subflow Widget

Description:

Run Subflow allows you to invoke a Subflow from a parent Flow.

Required Configuration

Name

Description

Example

Default

Flow SID

The Flow SID of the Flow to use as a Subflow

FW12341234...

None

Flow Revision

The revision of the Subflow to use at runtime. Select "Latest Draft" or "Latest Published" to have Studio dynamically select the correct revision at runtime.

Note: Multiple references to the same Subflow within a parent Flow must all target the same Flow Revision.

Latest Published Revision

None

Optional Configuration

Name

Description

Default

Parameters

Zero or more extra parameters that will be passed to the Subflow expressed as key/value pairs. String literals and variables are supported.

None

Parameters are referenceable in the Subflow via the trigger object: {{trigger.parent.parameters.foo}}

Transitions:

This Widget has two events that trigger transitions.

Name

Description

Completed

The Subflow reached the end of its widgets

Failed

The Subflow could not be loaded or executed.


Variables:

Variables can be returned from the Subflow to the parent Flow using the Set Variables widget.

For example, if you use Set Variables in the Subflow to set foo=bar, that variable can be referenced in the parent as {{widgets.subflow_widget.foo}}.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

        
        
        

        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more