# Using Variables

Variables play a crucial role in scenarios within Directual and are an integral part of the [Templating system](https://readme.directual.com/template-system/basics-of-template-system).

There are two primary types of variables:

* [Global Variables](https://readme.directual.com/scenarios/using-variables/global-constants): These variables are accessible and applicable throughout your entire application. They can store data that needs to be shared across multiple scenarios or components within your app
* [Context Variables](https://readme.directual.com/scenarios/using-variables/context-variables): Context variables are scoped to a particular scenario run. They are used to store and manipulate data for the duration of a specific scenario's execution


---

# 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.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.
