Sending quiz results to customers via Klaviyo
Learn how to create an email with quiz results in Klaviyo.
Last updated
Was this helpful?
Learn how to create an email with quiz results in Klaviyo.
Last updated
Was this helpful?
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.
Caution: To set up this feature, you need to be familiar with and in Klaviyo.
Before you start setting up your email flow and dynamic blocks, you need to ensure you have completed the following:
You have successfully .
You have connected.
At least one customer has completed the quiz so that custom properties start appearing. Once a customer profile gets created, their custom properties appear.
Familiarize yourself with . You need them for this tutorial.
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
From your Klaviyo dashboard, click Flows.
Click Create Flow.
Click Build your own.
Name your flow and click Create Flow.
Under Select a trigger, click the Your Metrics tab, then click API.
Choose the event that should trigger your flow. Click Quiz Completed to trigger the email to be sent when the customer completes your quiz.
Click Save, then Confirm and save.
Under Actions, drag and drop the Email action into the flow.
Click the email, and in the right-hand menu, enter your email details.
Click Select template, choose one of the templates, then click Use template.
From the left-hand menu under Blocks, drag and drop the Table block.
From the left-hand menu, click the Styles tab.
Under Data, click Dynamic.
In the Row collection text field, copy and paste event.Products
.
In the Row alias text field, copy and paste item
.
Click the Content tab.
Click the Content tab to return to the table content editor.
Click on Dynamic row 1 or 2, then click Text or Image to change the cell type.
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.
Click to expand
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.
For advanced users: You need to be knowledgeable in coding to complete these steps.
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:
product.title
product.price
product.link
product.image
product.id
Familiarize yourself with to see how to use these variables.
After you've connected Klaviyo and have custom properties for your quiz, you can set up the flow and dynamic content in Klaviyo. .