> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/creating-a-master-process-flow/special-considerations-for-building-master-process-flows/special-considerations-for-building-master-process-flows-run-process-flow-shape.md).

# Special considerations for building master process flows - run process flow shape

## Introduction

The [run process flow](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/run-process-flow-shape.md) shape is used to initialise another (sub) process flow from the current process flow.&#x20;

## Deploying parent & sub-process flows&#x20;

If a process flow is running in a [virtual environment](/product-documentation/virtual-environments/about-virtual-environments.md) and it includes a [run process flow](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/run-process-flow-shape.md) shape, the process flow version being called (i.e. the sub-process flow) must exist in the same virtual environment.&#x20;

Make sure that you [deploy](/product-documentation/virtual-environments/implementing-virtual-environments/deploying-a-single-process-flow-to-a-virtual-environment.md) any required sub-process flows to the same environment as the 'parent' process flows. If a required sub-process flow version can't be found in a virtual environment, the flow run will fail with an error.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/creating-a-master-process-flow/special-considerations-for-building-master-process-flows/special-considerations-for-building-master-process-flows-run-process-flow-shape.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
