> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/webhooks/variables.md).

# Variables

Aprende a usar las variables para integrar Videsk con terceros.

Las variables como debes conocer permiten almacenar datos para luego utilizarlos en partes del código y hacer referencia a ellas.

En el caso de nuestros Webhooks, permiten que puedas inyectar variables que dependerán de condiciones, estados, etc.

Por ejemplo, esta oración que indica una orden posee dos variables:

```handlebars
Computadora ejecuta {{action}} dentro de {{period}} días.
```

Dependiendo del valor de `action` y `period` la oración podrá tener distintos resultados, pero siempre obtendrás una oración con acción y periodo.

## Variables por evento

En caso de webhooks, cada evento posee sus propias variables, algo similar a un diccionario de variables por evento.

Estos eventos los podrás encontrar directamente en el modo editor cuando creas un nuevo webhook, que están ubicados en la parte lateral junto con la pestaña de documentación.

![Ejemplo de diccionario](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FOUaw55F0BX6ndLumhdxc%2Fimage.png?alt=media\&token=f1ce4cfb-7d2d-4ed6-84fd-01154500226f)

Como cada evento posee sus propias variables, podrás obtener información de cada una de ellas como tipo, descripción y nombre.

* `type` corresponde al tipo de dato ya sea `array`, `string`, `boolean`, `object`.
* `description` corresponde al contexto de la variable.
* `name` corresponde al nombre de la variable.

{% hint style="warning" %}
Para el caso de variables tipo `array`, solo es posible acceder mediante helpers de tipo `#array` o indicando el indice que deseas obtener en sintaxis handlebars.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.videsk.io/es-developers/webhooks/variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
