# Flow deployment

## Introduction

Having built or updated a process flow, it must be deployed and enabled before it runs automatically, according to defined [trigger shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape.md) settings (or [API requests](/product-documentation/developer-hub/patchworks-core-api.md)). How you do this depends on whether the [virtual environments](/product-documentation/virtual-environments/about-virtual-environments.md) feature is enabled for your company profile.&#x20;

* If yes, you have the option to deploy any version of a process flow to multiple environments, or to `no environment`. You do this via the `view deployments` modal within process flow settings. For details, please refer to [Deploying a process flow (with virtual environments)](/product-documentation/process-flows/managing-process-flows/flow-deployment/deploying-a-process-flow-with-virtual-environments.md).
* If no, you will only ever deploy a draft or inactive version of a flow, and you don't need to decide *where* this is deployed - by default, the deployment is made to `no environment`. For details, please refer to [Deploying a process flow (without virtual environments)](/product-documentation/process-flows/managing-process-flows/flow-deployment/deploying-a-process-flow-without-virtual-environments.md).

## How do I know if virtual environments are enabled?

If you're not sure whether virtual environments are enabled, check the left-hand navigation menu - if you see a `virtual environments` section, this feature is enabled:

<div align="left"><figure><img src="/files/YLGvNKOkglPZvbFx37Lr" alt=""><figcaption></figcaption></figure></div>

## Pages in this section

* [Deploying a process flow (with virtual environments)](/product-documentation/process-flows/managing-process-flows/flow-deployment/deploying-a-process-flow-with-virtual-environments.md)
* [Deploying a process flow (without virtual environments)](/product-documentation/process-flows/managing-process-flows/flow-deployment/deploying-a-process-flow-without-virtual-environments.md)


---

# Agent Instructions: 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/process-flows/managing-process-flows/flow-deployment.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.
