Run Workflow
This section explains how to use the Run Workflow block.
Use Cases
The Run Workflow block lets you run one workflow inside another, giving your workflow modularity and reusability.
When a workflow becomes too complex, you can split certain steps into sub-workflows. This keeps your main workflow clean, simple, and easier to maintain.

Example:
A common use case is when you have two workflows:
- product-details – extracts product details, and can also be used on its own
- product-list – extracts a list of products
When you want to automatically open each product’s detail page from the list and extract data, you can simply use the Run Workflow block inside product-list to run product-details. This way, you avoid rebuilding the same steps and keep your workflow much cleaner.
Workflow
Select a workflow you own, a public workflow, or a workflow shared with your account.
Arguments
These are the input parameters for the workflow, written in JSON format.
When you pick a workflow, the editor can fill in arguments from its most recent run on this device. You can edit the arguments at any time. Set the data-clearing option when starting the main workflow.
You can also use Template Syntax to dynamically reference variables and build the final parameters.
Assign to Variable
To assign a value in the calling workflow, set Assign to Variable and use a Return block on the path that produces the result. If the sub-workflow finishes without reaching Return, the destination stays unset.
For example, suppose a sub-workflow returns the following data:

In the main workflow, if you assign it to a variable named result, you can access the data with {{$vars.result}}:
{
"name": "The Seed Keeper",
"author": "Diane Wilson",
"price": 14.88
}
And to access just the name field, use:
{{$vars.result.name}} // The Seed Keeper