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

# Klaviyo Discount Reminder

Automatically send a follow-up discount reminder email using Klaviyo

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 → Questions**.
2. Create a **Promo Code** question.
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 **Integrations** in the account sidebar.
2. Enable the **Klaviyo** integration.
3. Paste in your Klaviyo public and private API keys and save.

Survey response data will now flow into Klaviyo shortly after each response. The response needs an email address, for example from an email question, a Shopify order, or a link sent from Klaviyo. See [Klaviyo](/integrations/klaviyo.md).

#### 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 from the triggering event using:

```
{{ event.discount_code }}
```

The code is sent as a property of the **Completed Survey** event, not saved on the profile, so use `event.` rather than `person|lookup`.

**Example email copy:**

> Thanks for completing our survey! Here's your exclusive discount code: **{{ event.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
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://docs.zigpoll.com/tutorials/klaviyo-discount-reminder.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.
