> For the complete documentation index, see [llms.txt](https://flowtestai.gitbook.io/flowtestai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flowtestai.gitbook.io/flowtestai/environments.md).

# Environments

An environment is a set of one or more variables that you can reference when designing workflows. Environments help you segregate different variable values for different context. For instance you might  have a variable `{{baseUrl}}` being used in a workflow that has one value for a staging environment but a different value for production environment. All the variables referenced in the current workflow take their values from the selected environment (until and unless they are defined using other means. See [Request Node](/flowtestai/flow-nodes/request-node.md) and  [Set Variable Node](/flowtestai/flow-nodes/set-variable-node.md) for other ways to define variables)

## Create an environment

1. Select `Environments` from the sidebar
2. Click the kebab menu icon and select create new environment.
3. Enter the name of the new environment and you should see it in the sidebar when created.

<figure><img src="/files/s97BwWTkDkPnoA1JGo2M" alt=""><figcaption></figcaption></figure>

## Add environment variables

1. Select an environment from the sidebar that you wish to edit.
2. Once the selected environment tab is open, select `Add Variable` , enter key and value pair.
3. After adding click save in the top right corner to start using the added variables.
4. Each added environment variable is displayed in a list that you can remove/delete using the delete icon.

<figure><img src="/files/SujmX1leYdhPPzHfTota" alt=""><figcaption></figcaption></figure>

## Switch between environments

Select any workflow, then from the top right corner select `Select environment`. It will display a drop down list of all available environments. Choose any one of them to starting using it's set of variables.

<figure><img src="/files/7id0qWUrzesC6F4EtnK3" alt="" width="312"><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://flowtestai.gitbook.io/flowtestai/environments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
