# 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="/files/JbwP9oaPf4xTYmvep0bF" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/eyUOAbRXnTVtGszNoBbl" 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="/files/jpbKlfQMioKT7XB1kRE8" alt=""><figcaption></figcaption></figure>


---

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