> 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/no/automatiseringer/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).

# Klaviyo transaksjons-SMS

Denne konfigurasjonen lar Sesami sende transaksjonelle SMS-varsler via Klaviyo for hendelser knyttet til booking, som bekreftelser, påminnelser, avlysninger og ombookinger.

{% hint style="info" %}
**Viktig:** Denne konfigurasjonen er for **Transaksjonelle SMS-er, ikke SMS-markedsføring**.
{% endhint %}

### Forutsetninger

Før du starter konfigurasjonen, må du sørge for at Klaviyo-kontoen har:

* **Et betalt Klaviyo SMS-abonnement** — kreves for transaksjonelle SMS-er.
* **SMS aktivert** i Klaviyo.
* **Et aktivt avsendernummer for SMS** som støtter kundens region.
* En **privat API-nøkkel** med nødvendige tillatelser.

{% hint style="info" %}
Klaviyo krever at SMS er aktivert og at et passende avsendernummer er konfigurert for kundens region.
{% endhint %}

***

### 1. Sesami-app → Flyter

Når [Klaviyo-forhåndsinnstillingen er aktivert](https://help.sesami.co/no/automatiseringer/sesami-flows-and-klaviyo.md#step-2-choose-a-klaviyo-preset), må flytinnholdet i Sesami **inneholde kundens telefonnummer** ved å bruke `phone_number` -feltet.

Legg til følgende i flytinnholdet:

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

### 2. Klaviyo → Flyt

Opprett en flyt ved å bruke ønsket metrikk som utløser. Følg [dette trinnet](https://help.sesami.co/no/automatiseringer/sesami-flows-and-klaviyo.md#step-1-create-a-flow-in-klaviyo)&#x20;

Eksempel: \
**Flytstruktur:** `Sesami-avtale opprettet → Samtykke til transaksjonelle SMS-er → Vent 5 minutter → SMS-melding`

### 3. Samtykke til transaksjonelle SMS-er

1\. Legg til en **webhook** som den første handlingen.

<figure><img src="https://340721960-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\. Konfigurer **webhook-detaljene** ved å bruke innstillingene nedenfor.

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

* **Navn på webhook:** Skriv inn et navn for webhooken, for eksempel `Sesami - transaksjonelle SMS-er`&#x20;

* **Innstillinger:**
  * **Destinasjons-URL: kopier den nedenfor:**

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

* **Overskrifter**

**Opprett følgende "Nøkkel" og "Verdi"**

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

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

**JSON-brødtekst**\
Kopier følgende:

```
{
  "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://340721960-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. SMS-melding

Etter samtykke-webhooken:

1. Legg til en **5-minutters forsinkelse**.
2. Legg til SMS-handlingen.
3. Konfigurer bookingvarslingen.
4. Sett SMS-en som **transaksjonell status**.&#x20;
5. Sett flyten til aktiv.

<div><figure><img src="https://340721960-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://340721960-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" %}
Samtykke til transaksjonelle SMS-er og transaksjonell status er separate:

* **Samtykke til transaksjonelle SMS-er** = kundens tillatelse til å motta transaksjonelle SMS-er.
* **transaksjonell status** = klassifiseringen av SMS-meldingen som transaksjonell.

En profil med bare samtykke til transaksjonelle SMS-er kan motta transaksjonelle SMS-er, men ikke markedsførings-SMS-er.
{% endhint %}

### 5. Test

**Opprett en ny booking i Sesami og bekreft:**

* Webhook for samtykke til transaksjonelle SMS-er fullføres
* Profil → Transaksjonelle SMS-er: **Abonnert**
* Flyten fortsetter etter 5-minutters forsinkelsen
* SMS mottas

Klaviyos abonnement-API er asynkron, så la det gå litt tid før abonnementsresultatet vises.

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

***

### Feilsøking

#### HTTP 400 — Telefonregion

Hvis Klaviyo rapporterer at telefonnummeret ikke støttes for kontoen, sjekk: **Klaviyo → Innstillinger → Tekstmeldinger**

Sørg for at kontoen har et aktivt avsendernummer for det kundens land/region.

#### Flyten utløses ikke

Sjekk **flytutløseren og utløserfiltrene først**.

* Utløseren må være en [**Sesami-metrikk**](https://help.sesami.co/no/automatiseringer/sesami-flows-and-klaviyo.md)
* Fjern eventuelle filtre som refererer til en hendelsesegenskap

#### Transaksjonelle SMS-er er ikke tilgjengelig

Bekreft at forhandleren har en **betalt Klaviyo SMS-abonnement**.

Gratisabonnementet støtter ikke å bruke transaksjonell status på SMS-meldinger.

***

### Sjekkliste til slutt

**Klaviyo-konto**

* Betalt SMS-abonnement
* SMS aktivert
* Avsendernummer konfigurert
* Avsendernummer støtter kundens region
* Privat API-nøkkel med nødvendige tillatelser

**Sesami**

* Webhook for Events API konfigurert
* Telefon inkludert

**Klaviyo-flyt**

* Utløser = `Sesami-avtale opprettet`
* Ingen ugyldige utløserfiltre
* Webhook for samtykke til transaksjonelle SMS-er
* `{{ person.phone_number }}`
* `ABONNERT` transaksjonelt samtykke
* 5-minutters forsinkelse
* SMS har transaksjonell status
* Flyt aktiv


---

# 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/no/automatiseringer/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.
