> For the complete documentation index, see [llms.txt](https://docs.omnileads.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnileads.net/mensajes-masivos-pro/campanas-de-turnos.md).

# Campañas de Turnos

A los efectos de poder trabajar con campañas de turnos según sea el segmento vertical de negocio deseado (de salud, de taller de automóviles, etc.), el campo "TurnoID" de la vista de creación de envios se reserva como una variable de identificación del contacto a la hora de confirmar o cancelar un turno.

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

### Caso de Uso:

Supongamos el siguiente caso de uso, donde diseñamos un template con 3 CTAs (Click To Actions):

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

**Ejemplo:** "Hola, \[nombre]. Te recordamos tu turno \[turnoID] para el \[fecha] a las \[hora]. Responde CONFIRMAR para asegurar tu asistencia, CANCELAR si no puedes asistir, CHATEAR si deseas cambiarlo. Gracias!"

La elección del TurnoID tiene 2 efectos:

* mostrar el identificador del turno al paciente dentro del cuerpo del mensaje personalizado,
* crear una URL tipo HASH (unívoca) para llevar adelante la acción de confirmación o cancelación del turno.

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

La URL dinámica utilizada en la configuración del template en Gupshup tendrá la sigiuente sintaxis:

`https://<OMniLeads_FQDN>/bulk_messages/confirm/`

`https://<OMniLeads_FQDN>/bulk_messages/cancel/`

Donde "OMniLeads\_FQDN" responderia al nombre de dominio de internet de la instancia, bajo un certificado SSL válido.

A los efectos de generar un HASH unívoco y seguro de la URL para la confirmación del turno, se generará una nueva variable de nombre <#Turno-ID> para ser utilizada en las CTAs respectivas.

Veamos cómo luce la acción de Confirmar un turno desde el click del usuario receptor del mensaje al CTA "***Sí, confirmo!***":

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

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

Y **Listo!** Ya contamos con un turno confirmado en la base de datos de OMniLeads Enterprise :)


---

# 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.omnileads.net/mensajes-masivos-pro/campanas-de-turnos.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.
