Run across environments
Point the same Flows at staging or production with Values, recipes, and tags.
Most suites need the same journeys on more than one environment. Keep one Flow, drive URLs and credentials with Values, then change those Values per Run with a Run Recipe. Use tags only when the journey itself differs between environments.
Use the Flow Builder for this walkthrough.
Put environment data in Values
Create Values for anything that changes by environment, such as:
BASE_URLUSERNAMEandPASSWORDFeature flags or region codes your steps read
Keep the Flow free of hard-coded staging or production URLs.
Use those Values in the Flow
Open with the environment URL
Start with Open. In the URL field, type $ and pick BASE_URL (or your Value title).
Fill credentials from Values
Add Set value for username and password fields. Use $USERNAME and $PASSWORD from the Value Store.

Overwrite Values per environment
Go to Settings → Run Recipes. Create one recipe per environment, or one recipe that iterates over several value sets.
In Value Overwrites, replace the defaults for that Run:
For several environments in one recipe, use an array of objects. Add primaryValue so results show which set ran:
When the journey differs by environment
Some steps exist only in one environment, such as a cookie-consent banner on production.
After shared setup, add a Flow Branch.
On each path, add Tag Test with an environment tag, such as
productionornonprod.Put environment-only steps on the matching path.
In each recipe, set Test Case Filters → Include Tags to that environment tag, and keep the Value Overwrites for that environment’s URL and credentials.
For packs that share paths but differ only by data, skip the branch and use overwrites alone. See Build smoke and regression coverage for tag and filter detail.
Related
Last updated