> For the complete documentation index, see [llms.txt](https://docs.giftcardfactory.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.giftcardfactory.app/integrations/klaviyo/klaviyo-flows.md).

# Klaviyo Flows

With Klaviyo Flows, you can send emails using Klaviyo templates in response to Gift Card Factory events.

### Prerequisites

* [Klaviyo account connected with Gift Card Factory](/integrations/klaviyo/connect-klaviyo.md)

### Available Metrics

If selected, Gift Card Factory sends following events as metrics to Klaviyo:

* **Gift Card Factory - Bulk Send**: Sent anytime a gift card is created using [Bulk Operations - Bulk Send](/bulk-operations/bulk-send.md)
* **Gift Card Factory - Import From File**: Sent anytime a gift card is created using [Bulk Operations - Import From File](/bulk-operations/import-from-file.md)
* **Gift Card Factory - Rewards**: Sent when a gift card is created and sent through a [Gift Card Rewards](/campaigns/gift-card-rewards.md) campaign
* **Gift Card Factory - Refund:** Sent when a [Refund on Gift Card](/gift-card-refunds/introduction.md) is created.
* **Gift Card Balance Reminder:** Sent when gift card is created and sent through a [Gift Card Reminders](/campaigns/gift-card-reminders.md) campaign
* **GCP Gift Card Email:** Sent to the recipient of a purchased gift card ([Gift Card Postman](/campaigns/gift-card-postman.md))
* **GCP Gift Card Sender Email:** Sent to the sender of a purchased gift card ([Gift Card Postman](/campaigns/gift-card-postman.md))

### Creating a Klaviyo Flow

To create a Klaviyo Flow you need to follow these steps:

1. In Klaviyo navigate to Flows and create a new flow
2. Select a trigger
3. Add an action
4. Enable the flow
5. *(Optional)* Apply for transactional status

#### 1. Navigate to Klaviyo to create a new flow

Open the Klaviyo dashboard, then go to **Flows → Create Flow → Build Your Own**. You should then see a new screen where you can select the trigger.

#### 2. Select trigger

From the tabbed menu on the right, select **Your Metrics → API**.\
Now find the Gift Card Factory metrics for which you want to send emails.\
For the purpose of this guide, we will use **GCP Gift Card Email**. This metric is registered against a contact in Klaviyo whenever someone purchases a gift card for someone else.

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

#### 3. Add action

From left hand side navigation select Email action.<br>

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

Now you can configure all your email properties, such as:

* Subject
* Preview text
* Template

When editing the template, you can use any variables that were sent alongside the metric.

<figure><img src="/files/gtA93ZxVEWkWrofIHP4Y" alt="" width="375"><figcaption></figcaption></figure>

#### 4. Enable flow

Now you can enable your newly created flow. Click the **button** in the top-right section. Whenever Gift Card Factory sends the metric, the email will be sent to the contact who received the metric.

#### 5. (Optional) Apply for transactional status

By default, Klaviyo considers all emails sent through flows as marketing emails. To send transactional emails, you need to apply for a review. To apply for transactional status, select your Email action and, on the right panel, select the **Apply for transactional status** checkbox.<br>

<figure><img src="/files/7PuO14nNUVQWeebWKRaV" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
It might take up to few hours for the status to be approved.
{% endhint %}

***

### Additional resources

* [Builing Klaviyo Flows](https://help.klaviyo.com/hc/en-us/articles/115002774932)
