> For the complete documentation index, see [llms.txt](https://docs.flowiseai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowiseai.com/espanol/documentacion-oficial/usar-flowise/variables.md).

# Variables

***

Flowise permite a los usuarios crear variables que pueden ser utilizadas en los nodos. Las variables pueden ser Estáticas o de Tiempo de Ejecución.

### Estáticas

La variable estática se guardará con el valor especificado y se recuperará tal cual.

<figure><img src="/files/C7Slp9ecCrAy8OQuALqI" alt="" width="542"><figcaption></figcaption></figure>

### Tiempo de Ejecución

El valor de la variable se obtendrá del archivo **.env** usando `process.env`

<figure><img src="/files/RfUjAeN3S4uiYf1refhU" alt="" width="537"><figcaption></figcaption></figure>

### Sobrescribir o establecer variables a través de la API

Para sobrescribir el valor de una variable, el usuario debe habilitarlo explícitamente desde la pestaña **Configuración del Flujo de Chat** -> **Seguridad**:

<figure><img src="/files/4aZy0jdKKouM02aRZdFJ" alt=""><figcaption></figcaption></figure>

Si existe una variable creada, el valor de la variable proporcionado en la API sobrescribirá el valor existente.

```json
{
    "question": "hola",
    "overrideConfig": {
        "vars": {
            "var": "algun-valor-sobrescrito"
        }
    }
}
```

### Usando Variables

Las variables pueden ser utilizadas por los nodos en Flowise. Por ejemplo, se crea una variable llamada **`character`**:

<figure><img src="/files/S7UbDr1iZ6LwffOulKD1" alt=""><figcaption></figcaption></figure>

Luego podemos usar esta variable como **`$vars.<nombre-variable>`** en la Función de los siguientes nodos:

* [Herramienta Personalizada](https://github.com/FlowiseAI/FlowiseDocs/blob/main/esp/integrations/langchain/tools/custom-tool.md)
* [Función Personalizada](https://github.com/FlowiseAI/FlowiseDocs/blob/main/esp/integrations/utilities/custom-js-function.md)
* [Cargador Personalizado](https://github.com/FlowiseAI/FlowiseDocs/blob/main/esp/integrations/langchain/document-loaders/custom-document-loader.md)
* [Si No](https://github.com/FlowiseAI/FlowiseDocs/blob/main/esp/integrations/utilities/if-else.md)

<figure><img src="/files/7B3ikqdDWtBir7KZK2Ez" alt="" width="283"><figcaption></figcaption></figure>

Además, el usuario también puede usar la variable en la entrada de texto de cualquier nodo con el siguiente formato:

**`{{$vars.<nombre-variable>}}`**

Por ejemplo, en el Mensaje del Sistema del Agente:

<figure><img src="/files/oDB6rrOIauyecNgnMgSQ" alt="" width="508"><figcaption></figcaption></figure>

En la Plantilla de Prompt:

<figure><img src="/files/phnHMJ1drSoJPGCtvUgw" alt=""><figcaption></figcaption></figure>

## Recursos

* [Pasar Variables a Función](https://github.com/FlowiseAI/FlowiseDocs/blob/main/esp/integrations/langchain/tools/custom-tool.md#pass-variables-to-function)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.flowiseai.com/espanol/documentacion-oficial/usar-flowise/variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
