# Klaviyo Discount Reminder

Automatically send a personalized follow-up email through Klaviyo that reminds customers of their unique discount code after they complete your survey.

#### Step #1: Create a Survey with a Dynamic Discount Code

1. Go to **Surveys → Select your survey → Slides**.
2. Create a **Promo Code** slide.
3. Select **Dynamic** as the discount type.

Every participant will now receive a unique discount code upon completing the survey.

#### Step #2: Connect Klaviyo to Zigpoll

1. Go to **Settings → Manage Integrations**.
2. Enable the **Klaviyo** integration.
3. Paste in your Klaviyo API key.

Survey response data — including the customer's email and their discount code — will now flow into Klaviyo in real time.

#### Step #3: Build Your Klaviyo Flow

1. In Klaviyo, create a new **Flow**.
2. Set the trigger to the custom event: **\[Zigpoll] Completed Survey: Your Survey Title**.
3. Add an **Email** action after the trigger.
4. In the email body, reference the discount code using:

```
{{ person|lookup:'discount_code' }}
```

**Example email copy:**

> Thanks for completing our survey! Here's your exclusive discount code: **{{ person|lookup:'discount\_code' }}** — be sure to use it at checkout before it expires!

{% hint style="info" %}
You can also add a time delay and follow-up reminder if the code hasn't been used, increasing the chance of conversion.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zigpoll.com/tutorials/klaviyo-discount-reminder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
