> 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-dashboard/gestion-del-dashboard/segmentos/evento.md).

# Evento

Un segmento como evento te permite utilizar el widget como centralización de otros canales que utilices ya sean enlaces a otros sitios/apps, o bien a otros widgets y/o elementos en la misma sitio sin necesidad de recargar/redirigir.

Existen dos modalidades:

* URL: Redirige a un enlace en particular al darle clic
* Evento: Emite un evento en la página el cuál puede ser capturado programáticamente para realizar alguna acción personalizada.

## Crear un segmento como evento

Primero deberás ir al menú segmentos, posteriormente dar clic en **Crear segmento**.

<figure><img src="https://707854291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4PSLcae00pEGrc2J6%2Fuploads%2FO1zGjxFKs28oZjP99P9b%2Fimage.png?alt=media&amp;token=d90ff73c-9ff9-4dee-8e84-d0f26712a4b7" alt=""><figcaption></figcaption></figure>

Luego, deberás seleccionar **Evento**.

<figure><img src="https://707854291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4PSLcae00pEGrc2J6%2Fuploads%2Firo1b9Q21Zb0gRKwKolF%2Fimage.png?alt=media&amp;token=f8c9106f-0e5c-4ffb-b4a6-cb987f85e69b" alt=""><figcaption></figcaption></figure>

### URL

En el caso de seleccionar una URL deberás ingresar un enlace válido que comience por http\:// o https\://, por ejemplo, <https://mywebsite.com/contact>

Esto es útil si requieres hacer integraciones con WhatsApp, Telegram y/o redes sociales.

### Evento

En el caso de un evento, podrás ingresar valores como argumentos los cuales permiten al desarrollador diferenciar qué acción personalizada debe realizar. Esto ya que disparamos un evento con un nombre estático llamado `custom-event` y es gracias a los argumentos que definas, como tú desarrollador podrá diferenciar entre diferentes acciones.

Por ejemplo, si defines un argumento como `chat`, tu desarrollador podrá usar este valor para abrir o cerrar un chat integrado en tu sitio.

<figure><img src="https://707854291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4PSLcae00pEGrc2J6%2Fuploads%2FgfNO5Sf6pE588FKldx6M%2Fimage.png?alt=media&amp;token=b4fad862-2ec4-4ea9-9c5c-a6df3232ca13" alt=""><figcaption></figcaption></figure>


---

# 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-dashboard/gestion-del-dashboard/segmentos/evento.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.
