# Global Variables

In Directual, there is a [system structure](/data/data-structures/system-structures.md) that contains variables (for scenarios, they act as constants) accessible throughout the entire app. These global variables provide a centralized data store for your application.

![](/files/-M6jCoCQNPdT43LI9S5L)

Within this structure, you have the capability to create objects with two fields: ID and value.

![{{GlobalVar.email}} will return 'hello@directual.com'](/files/-M6jDE4KFi8KOOA_3tO0)

The ID serves as a unique key for each global variable. You can invoke these global variables from scenarios, API-endpoint settings, or filters by using the syntax {{GlobalVar.ID}}.

{% hint style="info" %}
It's important to note that global variables are not automatically included in a snapshot of your app. If you need to preserve and transport them, you must handle their export and import manually when necessary.
{% endhint %}


---

# 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://readme.directual.com/scenarios/using-variables/global-constants.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.
