# Bot Configuration Options

## Bot-Wide Environment Variables

When you need to access some static values across all your users and all your flows, you should use **Bot Environment Variables**.

These values are injected in your conversations under the `_env` global variable and are accessible everywhere, without ever being injected in the current user's memory. They are also encrypted for enhanced security.

This is a perfect use case for API keys or secrets, as well as global configuration options.

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-MbLYkbmlAHgMw4rCn99%2F-MbLalOkESKQJcovN6LE%2FCleanShot%202021-06-04%20at%2012.39.10%402x.png?alt=media\&token=fcb11a4c-c469-4406-a225-ad9f78656ab0)

## Self-Hosted CSML Engine

If you have strong requirements for data hosting or prefer hosting the CSML Engine on your own servers, you may want to use the On-Premise feature. By using this feature, you have full control over what version of CSML Engine is used at any given time (the Studio will always default to the latest available version otherwise), but you also have the responsibility of maintaining and scaling the engine according to your usage. We recommend that you only use this option if you really know what you are doing or if you have strong legal (i.e data privacy, compliance) requirements for doing so.

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-MbLYkbmlAHgMw4rCn99%2F-MbLas8JDty2wtpJAXd-%2FCleanShot%202021-06-04%20at%2012.39.35%402x.png?alt=media\&token=8da33581-6ebc-4217-bd47-e6f175423bba)


---

# 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.csml.dev/studio/getting-started/bot-configuration-options.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.
