# Send a tier upgrade email via Klaviyo

> In this tutorial, let's set up Klaviyo to send a congratulatory email to a customer when they reach a new loyalty tier in Talon.One.

> For the complete documentation index, see [llms.txt](https://docs.talon.one/llms.txt).

## Before you start

### Talon.One requirements

- You have completed the
  [setup](/docs/dev/technology-partners/klaviyo/set-up-klaviyo-integration.md) of the
  Klaviyo integration and configured the [loyalty
  sync](/docs/dev/technology-partners/klaviyo/set-up-klaviyo-integration.md#optional-configure-the-loyalty-sync)
  to sync tier data to a `loyalty_tier` [profile
  property](https://help.klaviyo.com/hc/en-us/articles/115005074627) in Klaviyo.
- You have set up [an Application][App].
- Your Application is connected to a [loyalty program with
  tiers](/docs/product/loyalty-programs/profile-based/use-loyalty-tiers.md).

### Klaviyo requirements

- You have enabled [multi-factor authentication
  (MFA)](https://help.klaviyo.com/hc/en-us/articles/360026617692) for your account.
- Your [user role](https://help.klaviyo.com/hc/en-us/articles/115005231648) is Manager,
  Admin, or Owner.

## Workflow overview

In the sections below, we set up the following workflow:

- A customer reaches a new loyalty tier in Talon.One.
- Talon.One syncs the new tier to the customer's `loyalty_tier` profile property in
  Klaviyo and sends a tier upgrade
  [event](https://developers.klaviyo.com/en/reference/events_api_overview) to Klaviyo.
- A flow in Klaviyo triggers on the event and sends the customer an email that includes
  their new loyalty tier.

## Set up the integration

<StepsContainer>

### Create a tier upgrade flow in Klaviyo

1. In Klaviyo, open **Flows** > **Create Flow** > **Build your own**.
1. Enter `Tier upgrade email` as the flow name, and click **Create Flow**.
1. In the sidebar, choose **Your metrics** > **Talon.One** >
   **Tier Upgrade** as the flow trigger, and click **Save**.
1. Add an **Email** action to the flow and name it `Tier upgrade email`.
1. In the sidebar, under **Templates**, click **...** > **Create text only email**.
1. Add the following content to the email body, where `TIER_FIELD_NAME` is the name of the
   profile property in Klaviyo that stores the loyalty tier. In this tutorial, we use
   `loyalty_tier`.

   ```text
   Congratulations, {{ first_name }}!
   You've reached the {{ person|lookup:"TIER_FIELD_NAME" }} tier.
   ```

1. (Optional) To send a test email:
   1. Click **Preview email**.
   1. Choose a recent tier upgrade event.
   1. Choose **Send as an email**, enter the email address of a test profile, and click
      **Preview Now**.
1. Click **Save**, provide a subject line, sender name, and sender email address, and
   click **Done**.
1. Click **Review and turn on** to activate the flow.

The flow should now look like this:

### Test the setup

Let's test our setup by triggering a loyalty tier upgrade for a customer:

1. In Klaviyo, choose a customer profile to test the tier upgrade email with. Ensure you
   have access to the inbox for that profile's email address, so you can check that the
   email arrives.
1. Open the same customer profile in Talon.One and [manually add loyalty
   points](/docs/product/loyalty-programs/profile-based/manage-pb-lp-data.md#manually-add-loyalty-points)
   to it. Add enough points to trigger a tier change, for example, from Silver to Gold.
1. Verify that the customer receives the tier upgrade email in their inbox, with the
   correct loyalty tier displayed.

</StepsContainer>

[App]: /docs/product/applications/overview.md
