> 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/fr/automatisations/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 transactionnels Klaviyo

Cette configuration permet à Sesami d’envoyer des notifications SMS transactionnelles via Klaviyo pour les événements liés aux réservations, tels que les confirmations, les rappels, les annulations et les reprogrammations.

{% hint style="info" %}
**Important :** Cette configuration est destinée à **SMS transactionnels, et non au marketing par SMS**.
{% endhint %}

### Prérequis

Avant de commencer la configuration, assurez-vous que le compte Klaviyo dispose de :

* **Un forfait SMS Klaviyo payant** — requis pour les SMS transactionnels.
* **SMS activés** dans Klaviyo.
* **Un numéro d’envoi SMS actif** qui prend en charge la région du client.
* Un **Private API Key** avec les autorisations requises.

{% hint style="info" %}
Klaviyo exige que les SMS soient activés et qu’un numéro d’envoi approprié soit configuré pour la région du client.
{% endhint %}

***

### 1. Application Sesami → Flows

Une fois que le [preset Klaviyo est activé](https://help.sesami.co/fr/automatisations/sesami-flows-and-klaviyo.md#step-2-choose-a-klaviyo-preset), le corps du Flow dans Sesami **doit inclure le numéro de téléphone du client** en utilisant le champ `phone_number` .

Ajoutez ce qui suit au corps du Flow :

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

### 2. Klaviyo → Flow

Créez un Flow en utilisant la métrique souhaitée comme déclencheur. Suivez [cette étape](https://help.sesami.co/fr/automatisations/sesami-flows-and-klaviyo.md#step-1-create-a-flow-in-klaviyo)&#x20;

Exemple : \
**Structure du Flow :** `Création de rendez-vous Sesami → Consentement aux SMS transactionnels → Attendre 5 minutes → Message SMS`

### 3. Consentement aux SMS transactionnels

1\. Ajoutez un **Webhook** comme première action.

<figure><img src="https://401080738-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\. Configurez les **détails du Webhook** en utilisant les paramètres ci-dessous.

<figure><img src="https://401080738-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>

* **Nom du Webhook :** Saisissez un nom pour le Webhook, par exemple `Sesami - SMS transactionnels`&#x20;

* **Paramètres :**
  * **URL de destination : copiez celle ci-dessous :**

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

* **En-têtes**

**Créez la "Key" et la "Value" suivantes**

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

<figure><img src="https://401080738-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>

**Corps JSON**\
Copiez ce qui suit :

```
{
  "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://401080738-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. Message SMS

Après le webhook de consentement :

1. Ajoutez un délai de **5 minutes**.
2. Ajoutez l’action SMS.
3. Configurez la notification de réservation.
4. Définissez le SMS comme **statut transactionnel**.&#x20;
5. Mettez le Flow en direct.

<div><figure><img src="https://401080738-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://401080738-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" %}
Le consentement transactionnel et le statut transactionnel sont distincts :

* **Consentement transactionnel** = l’autorisation du client de recevoir des SMS transactionnels.
* **statut transactionnel** = la classification du message SMS comme transactionnel.

Un profil avec uniquement le consentement transactionnel peut recevoir des SMS transactionnels, mais pas des SMS marketing.
{% endhint %}

### 5. Test

**Créez une nouvelle réservation dans Sesami et vérifiez :**

* Le webhook de consentement transactionnel se termine
* Profil → SMS transactionnels : **Abonné**
* Le Flow se poursuit après le délai de 5 minutes
* Le SMS est reçu

L’API d’abonnement de Klaviyo est asynchrone, donc laissez un peu de temps pour que le résultat de l’abonnement apparaisse.

<div><figure><img src="https://401080738-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://401080738-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://401080738-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://401080738-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>

***

### Dépannage

#### HTTP 400 — Région du téléphone

Si Klaviyo indique que le numéro de téléphone n’est pas pris en charge pour le compte, vérifiez : **Klaviyo → Paramètres → Messagerie texte**

Assurez-vous que le compte dispose d’un numéro d’envoi actif pour le pays/la région de ce client.

#### Le Flow ne se déclenche pas

Vérifiez d’abord le **déclencheur du Flow et les filtres de déclenchement**.

* Le déclencheur doit être une [**métrique Sesami**](https://help.sesami.co/fr/automatisations/sesami-flows-and-klaviyo.md)
* Supprimez tout filtre faisant référence à une propriété d’événement

#### Les SMS transactionnels ne sont pas disponibles

Confirmez que le marchand dispose d’un **forfait SMS Klaviyo payant**.

Le forfait gratuit ne permet pas d’appliquer le statut transactionnel aux messages SMS.

***

### Liste de vérification finale

**Compte Klaviyo**

* Forfait SMS payant
* SMS activés
* Numéro d’envoi configuré
* Le numéro d’envoi prend en charge la région du client
* Private API Key avec les autorisations requises

**Sesami**

* Webhook de l’API d’événements configuré
* Téléphone inclus

**Flow Klaviyo**

* Déclencheur = `Création de rendez-vous Sesami`
* Aucun filtre de déclenchement invalide
* Webhook de consentement aux SMS transactionnels
* `{{ person.phone_number }}`
* `SUBSCRIBED` consentement transactionnel
* 5 minutes
* Le SMS a le statut transactionnel
* Flow en direct


---

# 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/fr/automatisations/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.
