# Laika Environments

### Creating a new Environment and defining a Variable

Click on the **\[ Environment ]** Icon.

![](/files/NGpOqu5wZzBhg9PcMaW6)

Click on **\[ New ]** to create a new Environment space

![](/files/enXunRI1Sb3hcjIGhLha)

Name the Environment then add a new variable in that Environment by clicking on the **\[ + ]** button. When naming environment variables. your variables have to satisfy this rules.

* Start with alphabets (a-z,A-Z) or underscore (\_)&#x20;
* Consist of alphabets (a-z,A-Z), underscore (\_)  or Numbers (0-9)

`Notes: Two Variables in the same Environment cannot have the same name.`

then hit the **\[ Create ]** button.

![](/files/xiZofBrek1Hk8kjtW8lt)

And that's it!

### Using variables from environments

Select the environment that you want to use by selecting the Environment dropdown on the top right of the UI.

![](/files/aLg5veu0GBrvV8q8gwyj)

Then, pick an environment of your choice.

![](/files/2Hqj4QGyYVeEQhIG5uPo)

In the request that you want to use variables from Environment. Put the name of variables in the form of {{ variable\_name }}

`Tip: The Input form to use environment variables will have a suggestions dropdown so you can easily identify and use them.`

![](/files/f6U3PQnQtEF2zYvKMMHi)


---

# 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://docs.getlaika.app/docs/fundamentals/laika-environments.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.
