# Special considerations for building master process flows - trigger settings

## Introduction

Currently, the [trigger shape](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape) cannot be replaced as part of [virtual environment configuration](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version). As such, you should consider how the trigger settings in your master process flow will operate when run in virtual environments.

{% hint style="info" %}
The ability to replace trigger settings as part of virtual environment configuration will be added soon - please keep an eye on [release notes](https://doc.wearepatchworks.com/product-documentation/release-information/core-release-notes) for upcoming updates.
{% endhint %}

## Schedules

If your process flow needs to run on an automated schedule, does the *same* schedule apply to all virtual environments?

* **Yes**\
  No further action/consideration required - define the required trigger schedule(s) in the master process flow.
* **No**\
  Currently, it's not possible to create different trigger schedules for different virtual environments. As such, you should create different process flows (or different versions of the same process flow) for each required schedule, and deploy the appropriate flow/version to each virtual environment.

## Webhooks & callbacks

When you add/edit a [webhook ](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-webhook)or [callback](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-callback) URL via the [trigger shape](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape) in a master process flow, you have the option to select a virtual environment - for example:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2F8zoHktflwEtqtwZukXeJ%2Ftrigger%20webhook%20settings%202.png?alt=media&#x26;token=612ac003-cf38-4593-8841-476aa81bab53" alt="" width="375"><figcaption></figcaption></figure></div>

When a virtual environment is selected here, any webhook or callback URLs will be generated as required to trigger the process flow in the corresponding virtual environment. For more information, please refer to the following pages:

* [Trigger shape (webhook)](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-webhook)
* [Trigger shape (callback)](https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-callback)
