Sending quiz results to customers via Klaviyo

Learn how to create an email with quiz results in Klaviyo.

You can send your customers their quiz results using Klaviyo.

This page details the steps of creating the email trigger in Klaviyo, the email's dynamic table, and the variables that you need to know to set up the dynamic content.

In this section


Before you begin

Note:

This integration feature is available for the Basic plan or higher.

Before you start setting up your email flow and dynamic blocks, you need to ensure you have completed the following:

When you have successfully set up the email to use dynamic date, Quiz Kit passes you the following variables:

  • Result name

  • Quiz name

  • Quiz completion date

  • Customer answers

  • Discount code

  • Products recommended

  • Result URL

Familiarize yourself with this doc to see how to use these variables.


Setting up the email in Klaviyo

After you've connected Klaviyo and have custom properties for your quiz, you can set up the flow and dynamic content in Klaviyo. Learn more about how to add a dynamic table and metric-triggered flow in Klaviyo.

Step 1: Create the trigger

  1. From your Klaviyo dashboard, click Flows.

  2. Click Create Flow.

  3. Click Build your own.

  4. Name your flow and click Create Flow.

  5. Under Select a trigger, click the Your Metrics tab, then click API.

  6. Choose the event that should trigger your flow. Click Quiz Completed to trigger the email to be sent when the customer completes your quiz.

  7. Click Save, then Confirm and save.

Step 2: Add the email template and table

  1. Under Actions, drag and drop the Email action into the flow.

  2. Click the email, and in the right-hand menu, enter your email details.

  3. Click Select template, choose one of the templates, then click Use template.

  4. From the left-hand menu under Blocks, drag and drop the Table block.

  5. From the left-hand menu, click the Styles tab.

  6. Under Data, click Dynamic.

  7. In the Row collection text field, copy and paste event.Products.

  8. In the Row alias text field, copy and paste item.

  9. Click the Content tab.

Step 3: Edit the dynamic table

Note:

To complete this step, you need to understand Klaviyo's custom variables.

Learn more about custom variables, or contact Klaviyo support for questions.

  1. Click the Content tab to return to the table content editor.

  2. Click on Dynamic row 1 or 2, then click Text or Image to change the cell type.

  3. Add any dynamic product variables that you want to include to the table.

Below is an example of code for showing the "Result title": {{ person | lookup: 'Result title' | default: '' }}. You can set default value inside of '' if needed.


Previewing your email

When you've set up the email flow and dynamic table, you should preview and test the email to ensure it works as expected. To do so, from the Klaviyo email editor, click Preview & test.

When you've ensured everything is working correctly, click Done.

Note:

If there are any errors, check the spelling and structure of your variables, as well as your Table Settings tab.


Showing your products using custom code

To loop through the products and display the correct data, you need to use the "for" cycle: {% for product in person.Products %}{{ product.title }} - {{ product. price }}{% endfor %}

In each product you can display:

  1. product.title

  2. product.price

  3. product.link

  4. product.image

  5. product.id

Last updated

Was this helpful?