> For the complete documentation index, see [llms.txt](https://help.sesami.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sesami.co/es/automatizaciones/sesami-flows-and-klaviyo/klaviyo-transactional-sms.md). Agents can also search and read this documentation through its [MCP server](https://help.sesami.co/~gitbook/mcp).

# SMS transaccionales de Klaviyo

Esta configuración permite a Sesami enviar notificaciones transaccionales por SMS a través de Klaviyo para eventos relacionados con reservas, como confirmaciones, recordatorios, cancelaciones y reprogramaciones.

{% hint style="info" %}
**Importante:** Esta configuración es para **SMS transaccionales, no SMS Marketing**.
{% endhint %}

### Requisitos previos

Antes de comenzar la configuración, asegúrate de que la cuenta de Klaviyo tenga:

* **Un plan de SMS de Klaviyo de pago** — requerido para SMS transaccionales.
* **SMS habilitados** en Klaviyo.
* **Un número de envío de SMS activo** que admita la región del cliente.
* Un **Clave API privada** con los permisos necesarios.

{% hint style="info" %}
Klaviyo requiere que los SMS estén habilitados y que se configure un número de envío adecuado para la región del cliente.
{% endhint %}

***

### 1. App de Sesami → Flujos

Una vez que [el preset de Klaviyo esté habilitado](https://help.sesami.co/es/automatizaciones/sesami-flows-and-klaviyo.md#step-2-choose-a-klaviyo-preset), el cuerpo del flujo en Sesami **debe incluir el número de teléfono del cliente** usando el campo `phone_number` .

Agrega lo siguiente al cuerpo del flujo:

```
"profile": {
  "data": {
    "type": "profile",
    "attributes": {
      "email": "{{CustomerEmail}}",
      "phone_number": "{{CustomerPhone}}"
    }
  }
}
```

### 2. Klaviyo → Flujo

Crea un flujo usando la métrica deseada como disparador. Sigue [este paso](https://help.sesami.co/es/automatizaciones/sesami-flows-and-klaviyo.md#step-1-create-a-flow-in-klaviyo)&#x20;

Ejemplo: \
**Estructura del flujo:** `Reserva creada en Sesami → Consentimiento para SMS transaccionales → Esperar 5 minutos → Mensaje SMS`

### 3. Consentimiento para SMS transaccionales

1\. Agrega un **webhook** como primera acción.

<figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FK7d2OYgrdyEy81NmyNAW%2FScreenshot%202026-10-28%20at%2012.04.08.png?alt=media&amp;token=148df9e9-af71-4feb-8617-d3b94c5dd86a" alt=""><figcaption></figcaption></figure>

2\. Configura los **detalles del webhook** usando la configuración siguiente.

<figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FclCTHD8fZAwXs24fU6ud%2FScreenshot%202026-10-28%20at%2012.06.18.png?alt=media&amp;token=acba24ca-f1da-4fdd-a61e-e5f8378cdfbd" alt=""><figcaption></figcaption></figure>

* **Nombre del webhook:** Introduce un nombre para el webhook, por ejemplo `Sesami - SMS transaccionales`&#x20;

* **Configuración:**
  * **URL de destino: copia la siguiente:**

`https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs`

* **Encabezados**

**Crea el siguiente "Key" y "Value"**

```
Content-Type application/json
revision 2026-07-15
Authorization Klaviyo-API-Key YOUR_PRIVATE_API_KEY
```

<figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FaMIfqgjLlugG9b487td2%2FScreenshot%202026-10-28%20at%2012.15.23.png?alt=media&amp;token=f20c0e05-35c7-453e-b682-bea1fd839509" alt=""><figcaption></figcaption></figure>

**Cuerpo JSON**\
Copia lo siguiente:

```
{
  "data": {
    "type": "profile-subscription-bulk-create-job",
    "attributes": {
      "profiles": {
        "data": [
          {
            "type": "profile",
            "attributes": {
              "email": "{{ person.email }}",
              "phone_number": "{{ person.phone_number }}",
              "subscriptions": {
                "sms": {
                  "transactional": {
                    "consent": "SUBSCRIBED"
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
}
```

<figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FVyDh22hfdQxWoEyPFaNU%2FScreenshot%202026-10-28%20at%2012.18.18.png?alt=media&amp;token=de7ac4fe-67cc-43d8-872f-5ff2469b681e" alt=""><figcaption></figcaption></figure>

### 4. Mensaje SMS

Después del webhook de consentimiento:

1. Agrega un **retraso de 5 minutos**.
2. Agrega la acción de SMS.
3. Configura la notificación de la reserva.
4. Configura el SMS como **estado transaccional**.&#x20;
5. Pon el flujo en vivo.

<div><figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FgVT6xv8dSen0Rg0JzgEd%2FScreenshot%202026-10-28%20at%2012.19.54.png?alt=media&amp;token=6598bdf7-d27a-443b-ba9f-e6c033f171da" alt=""><figcaption></figcaption></figure> <figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FmYlOGy0AgC2QnRw7TZ8R%2FScreenshot%202026-10-28%20at%2012.20.28.png?alt=media&amp;token=d0d530f7-24b1-44a7-8c77-458d7b5f3939" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
El consentimiento transaccional y el estado transaccional son independientes:

* **Consentimiento transaccional** = el permiso del cliente para recibir SMS transaccionales.
* **estado transaccional** = la clasificación del mensaje SMS como transaccional.

Un perfil con solo consentimiento transaccional puede recibir SMS transaccionales, pero no SMS de marketing.
{% endhint %}

### 5. Prueba

**Crea una nueva reserva en Sesami y verifica:**

* El webhook de consentimiento transaccional se completa
* Perfil → SMS transaccionales: **Suscrito**
* El flujo continúa después del retraso de 5 minutos
* Se recibe el SMS

La API de suscripción de Klaviyo es asíncrona, así que permite algo de tiempo para que aparezca el resultado de la suscripción.

<div><figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FYBJh3teX9nGdtObpWCDn%2F1%20webhook%20.png?alt=media&amp;token=917ee541-2e35-4a1a-8160-1e8250fd1714" alt=""><figcaption></figcaption></figure> <figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FAQy7tJdnr5jmYIIZwKRS%2F2%20subscribed.png?alt=media&amp;token=d4d84723-1ade-4285-8ec8-0369727e0302" alt=""><figcaption></figcaption></figure> <figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2FjzLj0OEVJKK4WGw9g3hS%2F3%20delay%20.png?alt=media&amp;token=0c778095-b752-4d7c-b84d-92dc95fbd8bd" alt=""><figcaption></figcaption></figure> <figure><img src="https://2678756615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnDgiM1CWSLWRIbhORANO%2Fuploads%2F8G5SlULFgjuofWHFi4xO%2F4%20Message%20Appointment%20Confirmation-.png?alt=media&amp;token=670ac409-edb2-40c5-ac8a-164eb565cf04" alt=""><figcaption></figcaption></figure></div>

***

### Solución de problemas

#### HTTP 400 — Región del teléfono

Si Klaviyo informa que el número de teléfono no es compatible con la cuenta, verifica: **Klaviyo → Configuración → Mensajería de texto**

Asegúrate de que la cuenta tenga un número de envío activo para el país/región de ese cliente.

#### El flujo no se activa

Primero revisa el **disparador del flujo y los filtros del disparador**.

* El disparador debe ser una [**métrica de Sesami**](https://help.sesami.co/es/automatizaciones/sesami-flows-and-klaviyo.md)
* Elimina cualquier filtro que haga referencia a una propiedad del evento

#### Los SMS transaccionales no están disponibles

Confirma que el comerciante tenga un **plan de SMS de Klaviyo de pago**.

El plan gratuito no admite aplicar el estado transaccional a los mensajes SMS.

***

### Lista de verificación final

**Cuenta de Klaviyo**

* Plan de SMS de pago
* SMS habilitados
* Número de envío configurado
* El número de envío admite la región del cliente
* Clave API privada con los permisos necesarios

**Sesami**

* Webhook de API de eventos configurado
* Teléfono incluido

**Flujo de Klaviyo**

* Disparador = `Reserva creada en Sesami`
* Sin filtros de disparador inválidos
* Webhook de consentimiento para SMS transaccionales
* `{{ person.phone_number }}`
* `SUSCRITO` consentimiento transaccional
* retraso de 5 minutos
* El SMS tiene estado transaccional
* Flujo en vivo


---

# 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://help.sesami.co/es/automatizaciones/sesami-flows-and-klaviyo/klaviyo-transactional-sms.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.
