# Create Global Variable

**Introduction**&#x20;

This step creates a new global variable that persists beyond the execution of a single automation and can be accessed across different automations.

**Configuration**

1. **Name**: Set the name for the global variable. Must be between 1 and 40 characters. This is a required field.
2. **Description**: (Optional) Provide a description for the variable. Up to 500 characters.
3. **Schema**: Define the schema for the global variable. This determines the type of data the variable will store. Choose from the available data types. This is a required field.
4. **Value**: Input the initial value for the global variable. The value must match the defined schema.

**Outputs**

* **Variable**: The created global variable. It contains a "Value" that adheres to the defined schema and can be used in subsequent steps.

**Usage**&#x20;

Commonly used to create global variables within a template setup automation.


---

# 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.flexy.bot/modules/variables/steps/create-global-variable.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.
