Skip to content

How to Send Quiz Leads to Klaviyo

Apart from giving your customers personalized product recommendations, you can connect your quiz to Klaviyo. This way all the contacts coming from the quiz will be added to your Klaviyo account and you can create targeted email campaigns to upsell them.

This article walks you through the process of connecting your quiz to Klavviyo and setting up post-quiz email flow. You can also follow our step-by-step tutorial.

Tutorial

You can also follow our step-by-step tutorial to learn how to connect your quiz to Klaviyo and send leads to Klaviyo: Sending Follow-up Emails with Klaviyo

Tutorial

You can also follow our step-by-step tutorial to learn how to connect your quiz to Klaviyo and send leads to Klaviyo: Sending Follow-up Emails with Klaviyo

Tutorial

You can also follow our step-by-step tutorial to learn how to connect your quiz to Klaviyo and send leads to Klaviyo: Sending Follow-up Emails with Klaviyo

Tutorial

You can also follow our step-by-step tutorial to learn how to connect your quiz to Klaviyo and send leads to Klaviyo: Sending Follow-up Emails with Klaviyo

Tutorial

You can also follow our step-by-step tutorial to learn how to connect your quiz to Klaviyo and send leads to Klaviyo: Sending Follow-up Emails with Klaviyo

Tutorial

You can also follow our step-by-step tutorial to learn how to connect your quiz to Klaviyo and send leads to Klaviyo: Sending Follow-up Emails with Klaviyo

To connect the quiz to Klaviyo you’ll have to provide your Klaviyo Public API Key. Public API Key is essential because it allows us to send information to Klaviyo Profiles.

  1. To find your Public Key login to your Klaviyo account. In account Settings open the API Keys tab and copy the public API Key. You can get your Klaviyo Public API Key here. how to send leads to klaviyo public api key
  2. Navigate back to the RevenueHunt app.
  3. In the Quiz > Connect tab, scroll to Klaviyo and edit the connection. Paste your Public API Key and save. how to send leads to klaviyo public api key provided1 how to send leads to klaviyo public api key provided2

  4. Publish the changes with the top-right Publish button.

  5. Test quiz all the way to the results. Make sure to provide a sample email that doesn’t already exist in your Kalviyo account.
  6. To verify the test, open Kalviyo > Audeince > Profiles section. If a new profile was added the integration was successful.

From now on all the contacts coming from the quiz will be added to your Klaviyo account.

Custom Properties

Following these steps ensures that every quiz participant's contact information, alongside their responses and product recommendations, are forwarded to your Klaviyo account, registering as custom properties within Klaviyo customer Profiles. These properties are instrumental in personalizing Klaviyo email templates.

how to send leads to klaviyo customer profile

To connect the quiz to Klaviyo you’ll have to provide your Klaviyo Public API Key. Public API Key is essential because it allows us to send information to Klaviyo Profiles.

  1. To find your Public Key login to your Klaviyo account. In account Settings open the API Keys tab and copy the public API Key. You can get your Klaviyo Public API Key here. how to send leads to klaviyo public api key
  2. Navigate back to the RevenueHunt app.
  3. In the Integrations tab, scroll to Klaviyo and edit the connection. Paste your Public API Key and save. how to send leads to klaviyo public api key provided1

  4. Publish the changes with the top Save button.

  5. Test quiz all the way to the results. Make sure to provide a sample email that doesn’t already exist in your Kalviyo account.
  6. To verify the test, open Kalviyo > Audeince > Profiles section. If a new profile was added the integration was successful.

From now on all the contacts coming from the quiz will be added to your Klaviyo account.

Custom Properties

Following these steps ensures that every quiz participant's contact information, alongside their responses and product recommendations, are forwarded to your Klaviyo account, registering as custom properties within Klaviyo customer Profiles. These properties are instrumental in personalizing Klaviyo email templates.

how to send leads to klaviyo customer profile

To connect the quiz to Klaviyo you’ll have to provide your Klaviyo Public API Key. Public API Key is essential because it allows us to send information to Klaviyo Profiles.

  1. To find your Public Key login to your Klaviyo account. In account Settings open the API Keys tab and copy the public API Key. You can get your Klaviyo Public API Key here. how to send leads to klaviyo public api key
  2. Navigate back to the RevenueHunt app.
  3. In the Quiz > Connect tab, scroll to Klaviyo and edit the connection. Paste your Public API Key and save. how to send leads to klaviyo public api key provided1 how to send leads to klaviyo public api key provided2

  4. Publish the changes with the top-right Publish button.

  5. Test quiz all the way to the results. Make sure to provide a sample email that doesn’t already exist in your Kalviyo account.
  6. To verify the test, open Kalviyo > Audeince > Profiles section. If a new profile was added the integration was successful.

From now on all the contacts coming from the quiz will be added to your Klaviyo account.

Following these steps ensures that every quiz participant's contact information, alongside their responses and product recommendations, are forwarded to your Klaviyo account, registering as custom properties within Klaviyo customer Profiles. These properties are instrumental in personalizing Klaviyo email templates.

how to send leads to klaviyo customer profile

To connect the quiz to Klaviyo you’ll have to provide your Klaviyo Public API Key. Public API Key is essential because it allows us to send information to Klaviyo Profiles.

  1. To find your Public Key login to your Klaviyo account. In account Settings open the API Keys tab and copy the public API Key. You can get your Klaviyo Public API Key here. how to send leads to klaviyo public api key
  2. Navigate back to the RevenueHunt app.
  3. In the Quiz > Connect tab, scroll to Klaviyo and edit the connection. Paste your Public API Key and save. how to send leads to klaviyo public api key provided1 how to send leads to klaviyo public api key provided2

  4. Publish the changes with the top-right Publish button.

  5. Test quiz all the way to the results. Make sure to provide a sample email that doesn’t already exist in your Kalviyo account.
  6. To verify the test, open Kalviyo > Audeince > Profiles section. If a new profile was added the integration was successful.

From now on all the contacts coming from the quiz will be added to your Klaviyo account.

Custom Properties

Following these steps ensures that every quiz participant's contact information, alongside their responses and product recommendations, are forwarded to your Klaviyo account, registering as custom properties within Klaviyo customer Profiles. These properties are instrumental in personalizing Klaviyo email templates.

how to send leads to klaviyo customer profile

To connect the quiz to Klaviyo you’ll have to provide your Klaviyo Public API Key. Public API Key is essential because it allows us to send information to Klaviyo Profiles.

  1. To find your Public Key login to your Klaviyo account. In account Settings open the API Keys tab and copy the public API Key. You can get your Klaviyo Public API Key here. how to send leads to klaviyo public api key
  2. Navigate back to the RevenueHunt app.
  3. In the Quiz > Connect tab, scroll to Klaviyo and edit the connection. Paste your Public API Key and save. how to send leads to klaviyo public api key provided1 how to send leads to klaviyo public api key provided2

  4. Publish the changes with the top-right Publish button.

  5. Test quiz all the way to the results. Make sure to provide a sample email that doesn’t already exist in your Kalviyo account.
  6. To verify the test, open Kalviyo > Audeince > Profiles section. If a new profile was added the integration was successful.

From now on all the contacts coming from the quiz will be added to your Klaviyo account.

Custom Properties

Following these steps ensures that every quiz participant's contact information, alongside their responses and product recommendations, are forwarded to your Klaviyo account, registering as custom properties within Klaviyo customer Profiles. These properties are instrumental in personalizing Klaviyo email templates.

how to send leads to klaviyo customer profile

To connect the quiz to Klaviyo you’ll have to provide your Klaviyo Public API Key. Public API Key is essential because it allows us to send information to Klaviyo Profiles.

  1. To find your Public Key login to your Klaviyo account. In account Settings open the API Keys tab and copy the public API Key. You can get your Klaviyo Public API Key here. how to send leads to klaviyo public api key
  2. Navigate back to the RevenueHunt app.
  3. In the Quiz > Connect tab, scroll to Klaviyo and edit the connection. Paste your Public API Key and save. how to send leads to klaviyo public api key provided1 how to send leads to klaviyo public api key provided2

  4. Publish the changes with the top-right Publish button.

  5. Test quiz all the way to the results. Make sure to provide a sample email that doesn’t already exist in your Kalviyo account.
  6. To verify the test, open Kalviyo > Audeince > Profiles section. If a new profile was added the integration was successful.

From now on all the contacts coming from the quiz will be added to your Klaviyo account.

Custom Properties

Following these steps ensures that every quiz participant's contact information, alongside their responses and product recommendations, are forwarded to your Klaviyo account, registering as custom properties within Klaviyo customer Profiles. These properties are instrumental in personalizing Klaviyo email templates.

how to send leads to klaviyo customer profile

Klaviyo Limitations

Processing Time: Klaviyo may have some delay in displaying new leads.

Character Limitations: Special characters (e.g., è, é, ê) may impede data transmission.

Sending Follow-up Emails via Klaviyo

It’s possible to send the product recommendation follow-up emails via Klaviyo, although this is not something that’s a one-click install. It should be built by someone with technical knowledge and experience in Klaviyo.

Below you’ll find some basic instructions that can be forwarded to a developer.

RevenueHunt Support Scope

Once the quiz is connected to Klaviyo (and the data is sent there), it’s out of our app’s scope, and any particular questions on how to set up the flows and how to build the email templates should be directed to Klaviyo.

  1. Add Email Question: To send contacts to Klaviyo your quiz needs to have an email question. You can add it to the quiz from the Quiz Builder tab by clicking + and selecting email from the dropdown list. You can also ask for marketing consent directly in the quiz.
  2. Connect Quiz to Klaviyo: Follow the instructions in this section to learn how to connect your quiz to Klaviyo correctly.
  3. Create a Segment: All quiz contacts can be grouped into a segment in Klaviyo.

    1. To create a new segment in Klaviyo go to Audience > List & Segements and click Create New > New Segment.
    2. Name the segment and set up the definition.
    3. The Permalink-QuizID property is unique for profiles coming from the quiz.
    4. If you don't see the permalink property in the dropdown menu, you may need to take a test quiz and try again.
    5. Click Create a segment.
  4. Create an Email Flow: You’ll have to create a flow that is triggered when someone gets added to the segment we created in the previous step. This is the trickiest part, the emails you send have to be custom-built in Klaviyo.

    Trigger Flow

    1. To create an email flow that includes only quiz takers open the Flows tab in Klaviyo.
    2. Click Create flow and then Build from scratch.
    3. Name the flow and click Create flow.
    4. Next, you'll be asked to set up a flow trigger.
    5. Choose the trigger to be Added to a segment and select the segment created in the previous step. Click Confirm and Confirm and save. This way whenever someone enters the segment they will trigger the email flow.

    Optional: Update Marketing Consent

    If you've asked for marketing consent in the quiz, you can update it in the Klaviyo email flow. Just follw these steps:

    1. Right below the flow trigger, add a Profile property update action.
    2. Click + Step.
    3. A menu will appear letting up set up the profile property update.
    4. Select to Update existing property, from the Select property dropdown menu select Accepts marketing and set the value to true.
    5. Turn this action LIVE.
  5. Edit the Email: In the next steps, you should edit the email template.

    Add Email Action

    1. Click on the three dots and edit the email.
    2. Edit the name/subject/email to your liking and select the HTML email template.
    3. From the Connect > Klaviyo tab you can download a ready-to-use email template.

      how to send leads to klaviyo email tempalte download1 how to send leads to klaviyo email tempalte download2

      Tip

      If you would rather create your own email template, check this section for more details.

    4. Copy the code and go back to Klaviyo.

    5. Open the HTML email template and remove the existing code.
    6. Paste the new template code.
    7. You can then preview the email as one of your segment subscribers.
    8. Make sure to Save the changes and click Done.
    9. Return to your flow and turn your email LIVE.

    From that moment on, all the quiz takers, who leave their email, will be automatically added to your Kalviyo Segment and will be sent a follow-up email.

  6. Re-trigger the flow: If you want to send an email with each quiz retake, you can do that by adding a Profile property update action at the end of the flow. Follow these steps:

    1. Add a Profile property update action at the end of the flow.
    2. Click + Step.
    3. Select Delete existing property.
    4. From the Select property dropdown menu select the property that was used to create a segment in earlier steps.

      Example

      Select Delete existing property > PERMALINK-QuizID.

      how to send leads to klaviyo resend email with each quiz retake

      How to send an email every time someone completes the quiz?

      First, you need to set up a segment based on the PERMALINK-{{quiz_id}} property to filter quiz takers. Once the segment is created, you can build a flow that triggers when users are added to this segment, sends them their quiz results via email, and then removes the PERMALINK-{{quiz_id}} property from their profile to allow for re-entry if they retake the quiz.

      For example:

      how to send leads to klaviyo resend email with each quiz retake

    5. Save the changes and turn the action LIVE.

    This way, each time a quiz taker takes the quiz again, they will be re-added to the segment and will trigger the email flow again.

Deactive App Emails

Remember to deactivate the email Notifications from the Quiz Builder once the Klaviyo flow is set up.

  1. Add Email Question: To send contacts to Klaviyo your quiz needs to have an email question. You can add it to the quiz from the Quiz Builder tab by clicking + and selecting email from the dropdown list.

    Tip

    You can ask for marketing consent directly in the quiz.

  2. Connect Quiz to Klaviyo: Follow the instructions in this section to learn how to connect your quiz to Klaviyo correctly.

  3. Create a Segment: All quiz contacts can be grouped into a segment in Klaviyo.

    1. To create a new segment in Klaviyo go to Audience > List & Segements and click Create New > New Segment.
    2. Name the segment and set up the definition.
    3. Segment definition: Select Properties about someone and add a property that will be unique for profiles coming from the quiz. This can be any of the custom properties that RevenueHunt sends to Klaviyo Profiles.

      Example

      • ANSWERS_BY_BLOCK-QuizID property is unique for profiles coming from the quiz.

      • If you don't see the ANSWERS_BY_BLOCK-QuizID property in the dropdown menu, you may need to take a test quiz and try again.

    4. Segment definition: As segment definition set up a rule that follows this format: Custom property from the Quiz is set Type: text.

      Example

      • ANSWERS_BY_BLOCK-QuizID is set Type: text.
    5. Click Create a segment and wait for Klaviyo to load all the contacts that match the segment definition. This may take a few minutes.

    6. Once the agent finishes loading, all the profiles that already match the segment definition will be added to the segment. New contacts coming from the quiz will be added to the segment automatically.
  4. Create an Email Flow: You’ll have to create a flow that is triggered when someone gets added to the segment we created in the previous step. This is the trickiest part, the emails you send have to be custom-built in Klaviyo.

    Trigger the Flow

    1. To create an email flow that includes only quiz takers open the Flows tab in Klaviyo.
    2. Click Create flow and then Build from scratch.
    3. Name the flow and click Create flow.
    4. Next, you'll be asked to set up a flow trigger.
    5. Choose the trigger to be Added to a segment and select the segment created in the previous step. Click Confirm and Confirm and save. This way whenever someone enters the segment they will trigger the email flow.

    Optional: Update Marketing Consent

    If you've asked for marketing consent in the quiz, you can update it in the Klaviyo email flow. Just follw these steps:

    1. Right below the flow trigger, add a Profile property update action.
    2. Click + Step.
    3. A menu will appear letting up set up the profile property update.
    4. Select to Update existing property, from the Select property dropdown menu select Accepts marketing and set the value to true.
    5. Turn this action LIVE.
  5. Edit the Email: In the next steps, you should edit the email template.

    Add Email Action

    how to send leads to klaviyo shopify v2 create email flow

    1. Grab the EMAIL action and drop it below the flow trigger.

    Edit the Email Template

    1. In Email details section edit the Subject.
    2. Then, click Select template. You'll be taken to the Templates section in Klaviyo.
    3. To create a new email template, click Create. You'll be redirected to the Klaviyo email builder.
    4. In the Klaviyo email builder you can use pre-designed blocs to add images or text to your template.
    5. To add the quiz content and quiz recommended products you'll need to add an HTML block. Drag and drop the HTML block to the email builder.
    6. In the Quiz Settings > Integrations section, you'll find a button to download a Klaviyo Template. Click the Klaviyo Template button and a new window will open. There, click Copy code to copy the existing template.

      Klaviyo Template

      how to send leads to klaviyo email tempalte download1 how to send leads to klaviyo email tempalte download2

      The code contains several ready-to-use code snippets that allow you to display:

      • Quiz question answers (section {# REFERENCE: INFORMATION GATHERED FROM THE QUESTIONS #})
      • Recommended products (section {# REFERENCE: INDIVIDUAL ITEM RECOMMENDATIONS BY SLOT #})
      • A Static Results Page content that contains all the elements of your results page and adds content upon each quiz retake (section {# REFERENCE: INDIVIDUAL ITEM RECOMMENDATIONS BY SLOT #})
      • A Dynamic Results Page content that contains all the elements of your results page and replaces content upon each quiz retake (section {# RECOMMENDED: DYNAMIC RESULT PAGE CONTENT (LOOPS THROUGH RESULT_SECTIONS-jGzry2) #}) 👈 this section is the recommended one to use
    7. Paste the code in the HTML block in Klaviyo email.

      how to send leads to klaviyo shopify v2 example template in klaviyo

    8. Next, Preview the email as one of your segment subscribers to check what information is displayed.

    9. You can freely edit the email template to your liking. For example, you can remove all the sections of the code that you don't need. You can also style the provided email code. Keep in mind, that you may need help from a developer to edit the tempalte code. Alternatively, you can try asking Quiz Copilot or another AI agent like ChatGPT or Claude for help in styling the email.

      Create your own email template

      Check the Use quiz data in Klaviyo email templates article to learn how to customize your Klaviyo email template with quiz properties.

    10. Once you're happy with the email template, click Exit then Done and return to your flow.

    11. Turn your email LIVE.

    From that moment on, all the quiz takers, who leave their email, will be automatically added to your Kalviyo Segment and will be sent a follow-up email.

  6. Re-trigger the flow: If you want to send an email with each quiz retake, you can do that by adding a Profile property update action at the end of the flow. Follow these steps:

    1. Add a Profile property update action at the end of the flow.
    2. Click + Step.
    3. Select Delete existing property.
    4. From the Select property dropdown menu select the property that was used to create a segment in earlier steps.

      Example

      Select Delete existing property > ANSWERS_BY_BLOCK-QuizID.

      how to send leads to klaviyo resend email with each quiz retake

      How to send an email every time someone completes the quiz?

      First, you need to set up a segment based on (for example) the ANSWERS_BY_BLOCK-{{quiz_id}} property to filter quiz takers. Once the segment is created, you can build a flow that triggers when users are added to this segment, sends them their quiz results via email, and then removes the ANSWERS_BY_BLOCK-{{quiz_id}} property from their profile to allow for re-entry if they retake the quiz.

      For example:

      how to send leads to klaviyo resend email with each quiz retake

    5. Save the changes and turn the action LIVE.

    This way, each time a quiz taker takes the quiz again, they will be re-added to the segment and will trigger the email flow again.

  1. Add Email Question: To send contacts to Klaviyo your quiz needs to have an email question. You can add it to the quiz from the Quiz Builder tab by clicking + and selecting email from the dropdown list. You can also ask for marketing consent directly in the quiz.
  2. Connect Quiz to Klaviyo: Follow the instructions in this section to learn how to connect your quiz to Klaviyo correctly.
  3. Create a Segment: All quiz contacts can be grouped into a segment in Klaviyo.

    1. To create a new segment in Klaviyo go to Audience > List & Segements and click Create New > New Segment.
    2. Name the segment and set up the definition.
    3. The Permalink-QuizID property is unique for profiles coming from the quiz.
    4. If you don't see the permalink property in the dropdown menu, you may need to take a test quiz and try again.
    5. Click Create a segment.
  4. Create an Email Flow: You’ll have to create a flow that is triggered when someone gets added to the segment we created in the previous step. This is the trickiest part, the emails you send have to be custom-built in Klaviyo.

    Trigger Flow

    1. To create an email flow that includes only quiz takers open the Flows tab in Klaviyo.
    2. Click Create flow and then Build from scratch.
    3. Name the flow and click Create flow.
    4. Next, you'll be asked to set up a flow trigger.
    5. Choose the trigger to be Added to a segment and select the segment created in the previous step. Click Confirm and Confirm and save. This way whenever someone enters the segment they will trigger the email flow.

    Optional: Update Marketing Consent

    If you've asked for marketing consent in the quiz, you can update it in the Klaviyo email flow. Just follw these steps:

    1. Right below the flow trigger, add a Profile property update action.
    2. Click + Step.
    3. A menu will appear letting up set up the profile property update.
    4. Select to Update existing property, from the Select property dropdown menu select Accepts marketing and set the value to true.
    5. Turn this action LIVE.
  5. Edit the Email: In the next steps, you should edit the email template.

    Add Email Action

    1. Click on the three dots and edit the email.
    2. Edit the name/subject/email to your liking and select the HTML email template.
    3. From the Connect > Klaviyo tab you can download a ready-to-use email template.

      how to send leads to klaviyo email tempalte download1 how to send leads to klaviyo email tempalte download2

      Tip

      If you would rather create your own email template, check this section for more details.

    4. Copy the code and go back to Klaviyo.

    5. Open the HTML email template and remove the existing code.
    6. Paste the new template code.
    7. You can then preview the email as one of your segment subscribers.
    8. Make sure to Save the changes and click Done.
    9. Return to your flow and turn your email LIVE.

    From that moment on, all the quiz takers, who leave their email, will be automatically added to your Kalviyo Segment and will be sent a follow-up email.

  6. Re-trigger the flow: If you want to send an email with each quiz retake, you can do that by adding a Profile property update action at the end of the flow. Follow these steps:

    1. Add a Profile property update action at the end of the flow.
    2. Click + Step.
    3. Select Delete existing property.
    4. From the Select property dropdown menu select the property that was used to create a segment in earlier steps.

      Example

      Select Delete existing property > PERMALINK-QuizID.

      how to send leads to klaviyo resend email with each quiz retake

      How to send an email every time someone completes the quiz?

      First, you need to set up a segment based on the PERMALINK-{{quiz_id}} property to filter quiz takers. Once the segment is created, you can build a flow that triggers when users are added to this segment, sends them their quiz results via email, and then removes the PERMALINK-{{quiz_id}} property from their profile to allow for re-entry if they retake the quiz.

      For example:

      how to send leads to klaviyo resend email with each quiz retake

    5. Save the changes and turn the action LIVE.

    This way, each time a quiz taker takes the quiz again, they will be re-added to the segment and will trigger the email flow again.

Deactive App Emails

Remember to deactivate the email Notifications from the Quiz Builder once the Klaviyo flow is set up.

  1. Add Email Question: To send contacts to Klaviyo your quiz needs to have an email question. You can add it to the quiz from the Quiz Builder tab by clicking + and selecting email from the dropdown list. You can also ask for marketing consent directly in the quiz.
  2. Connect Quiz to Klaviyo: Follow the instructions in this section to learn how to connect your quiz to Klaviyo correctly.
  3. Create a Segment: All quiz contacts can be grouped into a segment in Klaviyo.

    1. To create a new segment in Klaviyo go to Audience > List & Segements and click Create New > New Segment.
    2. Name the segment and set up the definition.
    3. The Permalink-QuizID property is unique for profiles coming from the quiz.
    4. If you don't see the permalink property in the dropdown menu, you may need to take a test quiz and try again.
    5. Click Create a segment.
  4. Create an Email Flow: You’ll have to create a flow that is triggered when someone gets added to the segment we created in the previous step. This is the trickiest part, the emails you send have to be custom-built in Klaviyo.

    Trigger Flow

    1. To create an email flow that includes only quiz takers open the Flows tab in Klaviyo.
    2. Click Create flow and then Build from scratch.
    3. Name the flow and click Create flow.
    4. Next, you'll be asked to set up a flow trigger.
    5. Choose the trigger to be Added to a segment and select the segment created in the previous step. Click Confirm and Confirm and save. This way whenever someone enters the segment they will trigger the email flow.

    Optional: Update Marketing Consent

    If you've asked for marketing consent in the quiz, you can update it in the Klaviyo email flow. Just follw these steps:

    1. Right below the flow trigger, add a Profile property update action.
    2. Click + Step.
    3. A menu will appear letting up set up the profile property update.
    4. Select to Update existing property, from the Select property dropdown menu select Accepts marketing and set the value to true.
    5. Turn this action LIVE.
  5. Edit the Email: In the next steps, you should edit the email template.

    Add Email Action

    1. Click on the three dots and edit the email.
    2. Edit the name/subject/email to your liking and select the HTML email template.
    3. From the Connect > Klaviyo tab you can download a ready-to-use email template.

      how to send leads to klaviyo email tempalte download1 how to send leads to klaviyo email tempalte download2

      Tip

      If you would rather create your own email template, check this section for more details.

    4. Copy the code and go back to Klaviyo.

    5. Open the HTML email template and remove the existing code.
    6. Paste the new template code.
    7. You can then preview the email as one of your segment subscribers.
    8. Make sure to Save the changes and click Done.
    9. Return to your flow and turn your email LIVE.

    From that moment on, all the quiz takers, who leave their email, will be automatically added to your Kalviyo Segment and will be sent a follow-up email.

  6. Re-trigger the flow: If you want to send an email with each quiz retake, you can do that by adding a Profile property update action at the end of the flow. Follow these steps:

    1. Add a Profile property update action at the end of the flow.
    2. Click + Step.
    3. Select Delete existing property.
    4. From the Select property dropdown menu select the property that was used to create a segment in earlier steps.

      Example

      Select Delete existing property > PERMALINK-QuizID.

      how to send leads to klaviyo resend email with each quiz retake

      How to send an email every time someone completes the quiz?

      First, you need to set up a segment based on the PERMALINK-{{quiz_id}} property to filter quiz takers. Once the segment is created, you can build a flow that triggers when users are added to this segment, sends them their quiz results via email, and then removes the PERMALINK-{{quiz_id}} property from their profile to allow for re-entry if they retake the quiz.

      For example:

      how to send leads to klaviyo resend email with each quiz retake

    5. Save the changes and turn the action LIVE.

    This way, each time a quiz taker takes the quiz again, they will be re-added to the segment and will trigger the email flow again.

Deactive App Emails

Remember to deactivate the email Notifications from the Quiz Builder once the Klaviyo flow is set up.

  1. Add Email Question: To send contacts to Klaviyo your quiz needs to have an email question. You can add it to the quiz from the Quiz Builder tab by clicking + and selecting email from the dropdown list. You can also ask for marketing consent directly in the quiz.
  2. Connect Quiz to Klaviyo: Follow the instructions in this section to learn how to connect your quiz to Klaviyo correctly.
  3. Create a Segment: All quiz contacts can be grouped into a segment in Klaviyo.

    1. To create a new segment in Klaviyo go to Audience > List & Segements and click Create New > New Segment.
    2. Name the segment and set up the definition.
    3. The Permalink-QuizID property is unique for profiles coming from the quiz.
    4. If you don't see the permalink property in the dropdown menu, you may need to take a test quiz and try again.
    5. Click Create a segment.
  4. Create an Email Flow: You’ll have to create a flow that is triggered when someone gets added to the segment we created in the previous step. This is the trickiest part, the emails you send have to be custom-built in Klaviyo.

    Trigger Flow

    1. To create an email flow that includes only quiz takers open the Flows tab in Klaviyo.
    2. Click Create flow and then Build from scratch.
    3. Name the flow and click Create flow.
    4. Next, you'll be asked to set up a flow trigger.
    5. Choose the trigger to be Added to a segment and select the segment created in the previous step. Click Confirm and Confirm and save. This way whenever someone enters the segment they will trigger the email flow.

    Optional: Update Marketing Consent

    If you've asked for marketing consent in the quiz, you can update it in the Klaviyo email flow. Just follw these steps:

    1. Right below the flow trigger, add a Profile property update action.
    2. Click + Step.
    3. A menu will appear letting up set up the profile property update.
    4. Select to Update existing property, from the Select property dropdown menu select Accepts marketing and set the value to true.
    5. Turn this action LIVE.
  5. Edit the Email: In the next steps, you should edit the email template.

    Add Email Action

    1. Click on the three dots and edit the email.
    2. Edit the name/subject/email to your liking and select the HTML email template.
    3. From the Connect > Klaviyo tab you can download a ready-to-use email template.

      how to send leads to klaviyo email tempalte download1 how to send leads to klaviyo email tempalte download2

      Tip

      If you would rather create your own email template, check this section for more details.

    4. Copy the code and go back to Klaviyo.

    5. Open the HTML email template and remove the existing code.
    6. Paste the new template code.
    7. You can then preview the email as one of your segment subscribers.
    8. Make sure to Save the changes and click Done.
    9. Return to your flow and turn your email LIVE.

    From that moment on, all the quiz takers, who leave their email, will be automatically added to your Kalviyo Segment and will be sent a follow-up email.

  6. Re-trigger the flow: If you want to send an email with each quiz retake, you can do that by adding a Profile property update action at the end of the flow. Follow these steps:

    1. Add a Profile property update action at the end of the flow.
    2. Click + Step.
    3. Select Delete existing property.
    4. From the Select property dropdown menu select the property that was used to create a segment in earlier steps.

      Example

      Select Delete existing property > PERMALINK-QuizID.

      how to send leads to klaviyo resend email with each quiz retake

      How to send an email every time someone completes the quiz?

      First, you need to set up a segment based on the PERMALINK-{{quiz_id}} property to filter quiz takers. Once the segment is created, you can build a flow that triggers when users are added to this segment, sends them their quiz results via email, and then removes the PERMALINK-{{quiz_id}} property from their profile to allow for re-entry if they retake the quiz.

      For example:

      how to send leads to klaviyo resend email with each quiz retake

    5. Save the changes and turn the action LIVE.

    This way, each time a quiz taker takes the quiz again, they will be re-added to the segment and will trigger the email flow again.

Deactive App Emails

Remember to deactivate the email Notifications from the Quiz Builder once the Klaviyo flow is set up.

  1. Add Email Question: To send contacts to Klaviyo your quiz needs to have an email question. You can add it to the quiz from the Quiz Builder tab by clicking + and selecting email from the dropdown list. You can also ask for marketing consent directly in the quiz.
  2. Connect Quiz to Klaviyo: Follow the instructions in this section to learn how to connect your quiz to Klaviyo correctly.
  3. Create a Segment: All quiz contacts can be grouped into a segment in Klaviyo.

    1. To create a new segment in Klaviyo go to Audience > List & Segements and click Create New > New Segment.
    2. Name the segment and set up the definition.
    3. The Permalink-QuizID property is unique for profiles coming from the quiz.
    4. If you don't see the permalink property in the dropdown menu, you may need to take a test quiz and try again.
    5. Click Create a segment.
  4. Create an Email Flow: You’ll have to create a flow that is triggered when someone gets added to the segment we created in the previous step. This is the trickiest part, the emails you send have to be custom-built in Klaviyo.

    Trigger Flow

    1. To create an email flow that includes only quiz takers open the Flows tab in Klaviyo.
    2. Click Create flow and then Build from scratch.
    3. Name the flow and click Create flow.
    4. Next, you'll be asked to set up a flow trigger.
    5. Choose the trigger to be Added to a segment and select the segment created in the previous step. Click Confirm and Confirm and save. This way whenever someone enters the segment they will trigger the email flow.

    Optional: Update Marketing Consent

    If you've asked for marketing consent in the quiz, you can update it in the Klaviyo email flow. Just follw these steps:

    1. Right below the flow trigger, add a Profile property update action.
    2. Click + Step.
    3. A menu will appear letting up set up the profile property update.
    4. Select to Update existing property, from the Select property dropdown menu select Accepts marketing and set the value to true.
    5. Turn this action LIVE.
  5. Edit the Email: In the next steps, you should edit the email template.

    Add Email Action

    1. Click on the three dots and edit the email.
    2. Edit the name/subject/email to your liking and select the HTML email template.
    3. From the Connect > Klaviyo tab you can download a ready-to-use email template.

      how to send leads to klaviyo email tempalte download1 how to send leads to klaviyo email tempalte download2

      Tip

      If you would rather create your own email template, check this section for more details.

    4. Copy the code and go back to Klaviyo.

    5. Open the HTML email template and remove the existing code.
    6. Paste the new template code.
    7. You can then preview the email as one of your segment subscribers.
    8. Make sure to Save the changes and click Done.
    9. Return to your flow and turn your email LIVE.

    From that moment on, all the quiz takers, who leave their email, will be automatically added to your Kalviyo Segment and will be sent a follow-up email.

  6. Re-trigger the flow: If you want to send an email with each quiz retake, you can do that by adding a Profile property update action at the end of the flow. Follow these steps:

    1. Add a Profile property update action at the end of the flow.
    2. Click + Step.
    3. Select Delete existing property.
    4. From the Select property dropdown menu select the property that was used to create a segment in earlier steps.

      Example

      Select Delete existing property > PERMALINK-QuizID.

      how to send leads to klaviyo resend email with each quiz retake

      How to send an email every time someone completes the quiz?

      First, you need to set up a segment based on the PERMALINK-{{quiz_id}} property to filter quiz takers. Once the segment is created, you can build a flow that triggers when users are added to this segment, sends them their quiz results via email, and then removes the PERMALINK-{{quiz_id}} property from their profile to allow for re-entry if they retake the quiz.

      For example:

      how to send leads to klaviyo resend email with each quiz retake

    5. Save the changes and turn the action LIVE.

    This way, each time a quiz taker takes the quiz again, they will be re-added to the segment and will trigger the email flow again.

Deactive App Emails

Remember to deactivate the email Notifications from the Quiz Builder once the Klaviyo flow is set up.

Adding Quiz Contacts to Klaviyo List

RevenueHunt app allows you to add contacts from the quiz directly to a list in Klaviyo.

  1. To do that you’ll need to provide a Private API Key.
  2. To create a new Private Key for the RevenueHunt app login to your Klaviyo account.
  3. In account Settings open the API Keys tab and create a new Private API Key. For list-specific contact additions, you can get your Klaviyo Private API Key here. how to send leads to klaviyo private api key

  4. Allow Full access.

  5. Copy the private key.
  6. In the Quiz Connect tab scroll to Klaviyo and edit the connection.
  7. Paste your Private API Key.
  8. Choose to mark all profiles as true and select a list that contacts should be added to.

    Warning

    Keep in mind that contacts from the quiz can be added only to a Single Opt-in List in Klaviyo.

  9. Save the changes and publish them with the top-right Publish button.

  10. Remember to test the connection with a sample email.

RevenueHunt app allows you to add contacts from the quiz directly to a list in Klaviyo. To do that you'll need to provide a Private API Key.

  1. First, make sure that you have a Klaviyo list ready to add contacts to. If you don't have one, you can create a new one in Klaviyo > Lists & segmenets section. In the list settings, make sure to set it to Single Opt-in.

    Warning

    Keep in mind that contacts from the quiz can be added only to a Single Opt-in List in Klaviyo.

  2. To create a new Private Key for the RevenueHunt app in your Klaviyo account.

  3. In account Settings open the API Keys tab and click Create Private API Key.

    how to send leads to klaviyo private api key

  4. Give it a name and allow Full access. Click Create. The agent will generate a new private key.

  5. Copy the generated private key.
  6. Go back to the RevenueHunt app and open the Quiz Settings.
  7. In the Integrations section find Klaviyo and paste the Private API Key in the correct field.

    how to klaviyo shopify v2 private api

  8. Click Save to confirm the changes.

  9. Go to the Quiz Builder Questions section and find the email block.
  10. In the email block settings, find the Klaviyo list section.
  11. From the dropdown menu select the list you want to add contacts to.

    how to klaviyo shopify v2 email question settings

  12. Save the changes with the top-right Save button.

  13. Remember to Preview the quiz to test the connection with a sample email.

RevenueHunt app allows you to add contacts from the quiz directly to a list in Klaviyo.

  1. To do that you’ll need to provide a Private API Key.
  2. To create a new Private Key for the RevenueHunt app login to your Klaviyo account.
  3. In account Settings open the API Keys tab and create a new Private API Key. For list-specific contact additions, you can get your Klaviyo Private API Key here. how to send leads to klaviyo private api key

  4. Allow Full access.

  5. Copy the private key.
  6. In the Quiz Connect tab scroll to Klaviyo and edit the connection.
  7. Paste your Private API Key.
  8. Choose to mark all profiles as true and select a list that contacts should be added to.

    Warning

    Keep in mind that contacts from the quiz can be added only to a Single Opt-in List in Klaviyo.

  9. Save the changes and publish them with the top-right Publish button.

  10. Remember to test the connection with a sample email.

RevenueHunt app allows you to add contacts from the quiz directly to a list in Klaviyo.

  1. To do that you’ll need to provide a Private API Key.
  2. To create a new Private Key for the RevenueHunt app login to your Klaviyo account.
  3. In account Settings open the API Keys tab and create a new Private API Key. For list-specific contact additions, you can get your Klaviyo Private API Key here. how to send leads to klaviyo private api key

  4. Allow Full access.

  5. Copy the private key.
  6. In the Quiz Connect tab scroll to Klaviyo and edit the connection.
  7. Paste your Private API Key.
  8. Choose to mark all profiles as true and select a list that contacts should be added to.

    Warning

    Keep in mind that contacts from the quiz can be added only to a Single Opt-in List in Klaviyo.

  9. Save the changes and publish them with the top-right Publish button.

  10. Remember to test the connection with a sample email.

RevenueHunt app allows you to add contacts from the quiz directly to a list in Klaviyo.

  1. To do that you’ll need to provide a Private API Key.
  2. To create a new Private Key for the RevenueHunt app login to your Klaviyo account.
  3. In account Settings open the API Keys tab and create a new Private API Key. For list-specific contact additions, you can get your Klaviyo Private API Key here. how to send leads to klaviyo private api key

  4. Allow Full access.

  5. Copy the private key.
  6. In the Quiz Connect tab scroll to Klaviyo and edit the connection.
  7. Paste your Private API Key.
  8. Choose to mark all profiles as true and select a list that contacts should be added to.

    Warning

    Keep in mind that contacts from the quiz can be added only to a Single Opt-in List in Klaviyo.

  9. Save the changes and publish them with the top-right Publish button.

  10. Remember to test the connection with a sample email.

RevenueHunt app allows you to add contacts from the quiz directly to a list in Klaviyo.

  1. To do that you’ll need to provide a Private API Key.
  2. To create a new Private Key for the RevenueHunt app login to your Klaviyo account.
  3. In account Settings open the API Keys tab and create a new Private API Key. For list-specific contact additions, you can get your Klaviyo Private API Key here. how to send leads to klaviyo private api key

  4. Allow Full access.

  5. Copy the private key.
  6. In the Quiz Connect tab scroll to Klaviyo and edit the connection.
  7. Paste your Private API Key.
  8. Choose to mark all profiles as true and select a list that contacts should be added to.

    Warning

    Keep in mind that contacts from the quiz can be added only to a Single Opt-in List in Klaviyo.

  9. Save the changes and publish them with the top-right Publish button.

  10. Remember to test the connection with a sample email.
Tip: Segmented Campaigns Work Better

It is possible to add contacts to Klaviyo List but there may be a better way: instead of adding them to a general list you can create dynamic segments based on your customers’ responses to send them hyper-targeted campaigns. Highly segmented campaigns return more than 3X the revenue per recipient as unsegmented campaigns.

With Klaviyo you can create segments to filter your leads and assign email flows to each segment. Read more about how to create and use segments on Klaviyo.

Use Quiz Data In Klaviyo Email Templates

If you need to modify our Klaviyo email template to match your brand’s style guide, you’ll need a developer because email templates in Klaviyo are built using HTML, CSS and the Django templating system.

We send all the responses to the quiz and the recommended products along with the contact information to the customer’s Klaviyo profile. This information will appear in the customer’s profile as custom properties.

how to send leads to klaviyo customer profile

If you need to add any additional information to the email template, your developer can do so by pulling the appropriate custom properties from the user profile.

If you need to modify our Klaviyo email template to match your brand’s style guide, you’ll need a developer because email templates in Klaviyo are built using HTML, CSS and the Django templating system.

Custom Properties in Klaviyo

We send all the responses to the quiz and the recommended products along with the contact information to the customer’s Klaviyo profile. This information will appear in the customer’s profile as custom properties.

how to send leads to klaviyo customer profile

If you need to add any additional information to the email template, your developer can do so by pulling the appropriate custom properties from the user profile.

Learn the person|lookup function

To build your own email template based on the custom properties we send to Klaviyo, you should familiarize yourself with the message personalization reference in Klaviyo, aka the {{ person|lookup:"..." }} function.

Overwriting or Appending Custom Properties

Some custom properties sent to Klaviyo from the quiz such as ANSWER_BY_BLOCK, CHOICE, RESPONSE_ID, RESULT_REF, RESULT_SECTIONS or TAGS are sent as an array, meaning that their values get overwritten with new data upon each quiz completion.

However, properties such as RECOMMENDATIONS_BY_SLOT or RESULT_CONTENT_BY_BLOCK are sent as a JSON object, meaning that their values get appended to the existing data upon each quiz completion.

If you want to make sure that in your Klaviyo template, the values get overwritten with new data upon each quiz completion and you want to use our pre-defined Klaviyo email tempalte which you can download from Integrations tab, make sure to only use the code snippet that starts with the following comment:

{# ================================================================= #}
{# DYNAMIC RESULT PAGE CONTENT (LOOPS THROUGH RESULT_SECTIONS-lBJ9bk) #}
{# This template loops through the result sections and blocks          #}
{# It will adapt if you change the results page structure in the quiz editor #}
{# ================================================================= #}

If you need to modify our Klaviyo email template to match your brand’s style guide, you’ll need a developer because email templates in Klaviyo are built using HTML, CSS and the Django templating system.

We send all the responses to the quiz and the recommended products along with the contact information to the customer’s Klaviyo profile. This information will appear in the customer’s profile as custom properties.

how to send leads to klaviyo customer profile

If you need to add any additional information to the email template, your developer can do so by pulling the appropriate custom properties from the user profile.

If you need to modify our Klaviyo email template to match your brand’s style guide, you’ll need a developer because email templates in Klaviyo are built using HTML, CSS and the Django templating system.

We send all the responses to the quiz and the recommended products along with the contact information to the customer’s Klaviyo profile. This information will appear in the customer’s profile as custom properties.

how to send leads to klaviyo customer profile

If you need to add any additional information to the email template, your developer can do so by pulling the appropriate custom properties from the user profile.

If you need to modify our Klaviyo email template to match your brand’s style guide, you’ll need a developer because email templates in Klaviyo are built using HTML, CSS and the Django templating system.

We send all the responses to the quiz and the recommended products along with the contact information to the customer’s Klaviyo profile. This information will appear in the customer’s profile as custom properties.

how to send leads to klaviyo customer profile

If you need to add any additional information to the email template, your developer can do so by pulling the appropriate custom properties from the user profile.

If you need to modify our Klaviyo email template to match your brand’s style guide, you’ll need a developer because email templates in Klaviyo are built using HTML, CSS and the Django templating system.

We send all the responses to the quiz and the recommended products along with the contact information to the customer’s Klaviyo profile. This information will appear in the customer’s profile as custom properties.

how to send leads to klaviyo customer profile

If you need to add any additional information to the email template, your developer can do so by pulling the appropriate custom properties from the user profile.

Example Email Templates

In this example, we’re using our quiz ID dbqHqN, which you’ll need to replace for your quiz ID. Here is the code for reference:

Example: Basic Slots Template
<h3>Hello {{ person|lookup:'Q-dbqHqN ZMiXjj: .Before we get started... what\'s your name?'|default:'' }}!</h3>
<p>Here we are making sure the product exists:</p>
{% if person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url' %}
<p>Cleanser</p>
<p><img alt="This is the cleanser image" src="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url'|default:'' }}" /></p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_price'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_sku'|default:'' }}</p>
<p><a href="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_url'|default:'' }}">Buy now</a></p>
{% endif %}
{% if person|lookup:'T-dbqHqN: 40s' %}
<p>You are in your forties</p>
{% endif %}

This example demonstrated that you can not only include custom properties that are passed from the quiz to your Klaviyo account, but you can also use IF-ELSE conditional statements to show/hide content based on the customer’s responses to the quiz.

Note: Counting Products

Note that when looping through the products, the count starts in 0 (zero), so for example, if you were to display the name of 3 products in a slot you’d have to do it like this:

```html
<p>{{ person|lookup:'SLOT-dbqHqN - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_1_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_2_name'|default:'' }}</p>
```

Here are some other email templates that you can use as a reference:

Note: These templates won’t work as is

Bear in mind that these templates (unlike the one generated from the Connect > Klaviyo tab) won’t work as is. They were created for a sample quiz. Your developer will have to modify the custom properties to match the ones that are passed from the quiz to your Klaviyo account. The quiz ID is different, so are other property names.

Use Copilot to generate Klaviyo Email Template

QuizCopilot can assist in creating Klaviyo email templates for your quiz email flow.

  1. Open the Quiz Copilot or start a new conversation by clicking the New conversation button in the top-right corner of the pop-up window, or head over to the Quiz Settings > Integrations page, find the Klaviyo integration and click on the Edit template with AI button.
  2. Paste your desired layout message, and Quiz Copilot will generate the template code.

    QuizCopilot Building Klaviyo Templates

  3. The generated code for the Klaviyo email template can be copied by clicking the Copy icon.

  4. Paste the generated code directly into an HTML block in your Klaviyo email template.

In this example, a quiz with ID YN5L9G recommends a simple list of products.

Example: List of Recommended Products in Klaviyo Template

how_to_shipifyv2_klaviyo_template_productlist1

  1. To show the recommended products in the email, you can use the following code copied from the Klaviyo template in the Integrations tab:

    how_to_klaviyo_shopify_v2_get_template

    Example: Code from QuizIntegrations tab
    {# ======================================== #}
    {# INDIVIDUAL ITEM RECOMMENDATIONS BY SLOT  #}
    {# ======================================== #}
    <p>
    <b>Display recommendation of item 0 for slot rsbss-ca4fba94 </b>
    <br>
    Title: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'title' }}
    <br>
    Description: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'description' }}
    <br>
    Price: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'price'|lookup:'currencyCode' }}
    <br>
    Online URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'onlineUrl' }}
    <br>
    Image URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'image'|lookup:'url' }}
    </p>
    
    <p>
    <b>Display recommendation of item 1 for slot rsbss-ca4fba94 </b>
    <br>
    Title: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'title' }}
    <br>
    Description: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'description' }}
    <br>
    Price: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'price'|lookup:'currencyCode' }}
    <br>
    Online URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'onlineUrl' }}
    <br>
    Image URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'image'|lookup:'url' }}
    </p>
    
    <p>
    <b>Display recommendation of item 2 for slot rsbss-ca4fba94 </b>
    <br>
    Title: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'title' }}
    <br>
    Description: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'description' }}
    <br>
    Price: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'price'|lookup:'currencyCode' }}
    <br>
    Online URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'onlineUrl' }}
    <br>
    Image URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'image'|lookup:'url' }}
    </p>
    
    <p>
    <b>Display recommendation of item 3 for slot rsbss-ca4fba94 </b>
    <br>
    Title: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'title' }}
    <br>
    Description: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'description' }}
    <br>
    Price: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'price'|lookup:'currencyCode' }}
    <br>
    Online URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'onlineUrl' }}
    <br>
    Image URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'image'|lookup:'url' }}
    </p>h3>
    
  2. If you paste this code into an HTML block in a Klaviyo template and preview the email as one of the quiz subscribers, you will see the recommended products.

    how_to_shipifyv2_klaviyo_template_productlist2

  3. To style the recommended products, your developer will need to add CSS classes to the HTML code and style it the way you want.

    For example, this is a styled version of the code above:

    Example: Styled version of the code above

    In Klaviyo, it will look like this:

    how_to_shipifyv2_klaviyo_template_productlist3

    <!-- Two-Column Product Grid for Klaviyo Email -->
    
    <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" align="center" style="font-family: sans-serif;">
    <tr>
        <!-- Product 0 -->
        <td style="width: 50%; padding: 10px; vertical-align: top;">
        <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="border: 1px solid #ddd; border-radius: 8px; padding: 16px;">
            <tr>
            <td style="text-align: center;">
                <img src="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'image'|lookup:'url' }}" alt="Product 0" style="width: 100%; max-width: 250px; border-radius: 6px; margin-bottom: 12px;">
                <h3 style="font-size: 18px; color: #333; margin: 10px 0;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'title' }}
                </h3>
                <p style="font-size: 14px; color: #555; margin-bottom: 10px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'description' }}
                </p>
                <p style="font-size: 16px; color: #111; font-weight: bold; margin-bottom: 12px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'price'|lookup:'currencyCode' }}
                </p>
                <a href="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'onlineUrl' }}" style="background-color: #1a73e8; color: #fff; padding: 10px 16px; text-decoration: none; border-radius: 4px; display: inline-block;">
                View Product
                </a>
            </td>
            </tr>
        </table>
        </td>
    
        <!-- Product 1 -->
        <td style="width: 50%; padding: 10px; vertical-align: top;">
        <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="border: 1px solid #ddd; border-radius: 8px; padding: 16px;">
            <tr>
            <td style="text-align: center;">
                <img src="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'image'|lookup:'url' }}" alt="Product 1" style="width: 100%; max-width: 250px; border-radius: 6px; margin-bottom: 12px;">
                <h3 style="font-size: 18px; color: #333; margin: 10px 0;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'title' }}
                </h3>
                <p style="font-size: 14px; color: #555; margin-bottom: 10px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'description' }}
                </p>
                <p style="font-size: 16px; color: #111; font-weight: bold; margin-bottom: 12px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'price'|lookup:'currencyCode' }}
                </p>
                <a href="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'1'|lookup:'onlineUrl' }}" style="background-color: #1a73e8; color: #fff; padding: 10px 16px; text-decoration: none; border-radius: 4px; display: inline-block;">
                View Product
                </a>
            </td>
            </tr>
        </table>
        </td>
    </tr>
    
    <tr>
        <!-- Product 2 -->
        <td style="width: 50%; padding: 10px; vertical-align: top;">
        <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="border: 1px solid #ddd; border-radius: 8px; padding: 16px;">
            <tr>
            <td style="text-align: center;">
                <img src="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'image'|lookup:'url' }}" alt="Product 2" style="width: 100%; max-width: 250px; border-radius: 6px; margin-bottom: 12px;">
                <h3 style="font-size: 18px; color: #333; margin: 10px 0;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'title' }}
                </h3>
                <p style="font-size: 14px; color: #555; margin-bottom: 10px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'description' }}
                </p>
                <p style="font-size: 16px; color: #111; font-weight: bold; margin-bottom: 12px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'price'|lookup:'currencyCode' }}
                </p>
                <a href="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'2'|lookup:'onlineUrl' }}" style="background-color: #1a73e8; color: #fff; padding: 10px 16px; text-decoration: none; border-radius: 4px; display: inline-block;">
                View Product
                </a>
            </td>
            </tr>
        </table>
        </td>
    
        <!-- Product 3 -->
        <td style="width: 50%; padding: 10px; vertical-align: top;">
        <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="border: 1px solid #ddd; border-radius: 8px; padding: 16px;">
            <tr>
            <td style="text-align: center;">
                <img src="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'image'|lookup:'url' }}" alt="Product 3" style="width: 100%; max-width: 250px; border-radius: 6px; margin-bottom: 12px;">
                <h3 style="font-size: 18px; color: #333; margin: 10px 0;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'title' }}
                </h3>
                <p style="font-size: 14px; color: #555; margin-bottom: 10px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'description' }}
                </p>
                <p style="font-size: 16px; color: #111; font-weight: bold; margin-bottom: 12px;">
                {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'price'|lookup:'currencyCode' }}
                </p>
                <a href="{{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'3'|lookup:'onlineUrl' }}" style="background-color: #1a73e8; color: #fff; padding: 10px 16px; text-decoration: none; border-radius: 4px; display: inline-block;">
                View Product
                </a>
            </td>
            </tr>
        </table>
        </td>
    </tr>
    </table>
    
    Tip: Use Copilot or AI to style the code

    You can use Quiz Copilot or another AI agent like ChatGPT or Gemini to generate a styled version of the code.

  4. You can use elements of the code in your Klaviyo template elements.

    Example: Display Product Title in Text Block

    For example, you can use the {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'title' }} to display the title of the first product in a text block.

    how_to_shipifyv2_klaviyo_template_productlist4

    Sample Product Object Structure

    In this example, here's a product object structure that was sent to Klaviyo:

    • Display recommendation of item 0 for slot rsbss-ca4fba94
    • Title: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'title' }}
    • Description: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'description' }}
    • Price: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'price'|lookup:'amount' }} {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'price'|lookup:'currencyCode' }}
    • Online URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'onlineUrl' }}
    • Image URL: {{ person|lookup:'RECOMMENDATIONS_BY_SLOT-YN5L9G'|lookup:'rsbss-ca4fba94'|lookup:'0'|lookup:'image'|lookup:'url' }}

Example 2 - Display Quiz Answers

A Skincare Quiz with ID YN5L9G wants to display all customer answers in the email.

  1. To do this, you can use the following code copied from the Klaviyo template in the Integrations tab:

    how_to_klaviyo_shopify_v2_get_template

    Example: Code from Quiz Integrations tab
    {# ======================================= #}
    {# INFORMATION GATHERED FROM THE QUESTIONS #}
    {# ======================================= #}
    <p>
    <p>
    <b>Display quiz name</b>
    <br>
    Quiz name: {{ person|lookup:'QUIZ_NAME-YN5L9G' }}
    </p>
    <p>
    <b>Display personal information</b>
    <br>
    First name: {{ person.first_name }}
    <br>
    Last name: {{ person.last_name }}
    </p>
    </p><p><b>Display all answers for a specific block</b>
    <br>
    
    {# Display answer for a block of type input and ref qbi-6c4248f5 #}
    Q2: BEFORE WE BEGIN
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbi-6c4248f5-YN5L9G' }}
    <br>
    
    {# Display answer for a block of type choice and ref qbc-dd744cf3 #}
    Q3: AGE GROUP
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbc-dd744cf3-YN5L9G' }}
    <br>
    
    {# Display answer for a block of type choice and ref qbc-485600ce #}
    Q4: SKIN TYPE
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbc-485600ce-YN5L9G' }}
    <br>
    
    {# Display answer for a block of type choice and ref qbc-e8cf3180 #}
    Q9: SKIN CONCERNS
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbc-e8cf3180-YN5L9G' }}
    <br>
    
    {# Display answer for a block of type choice and ref qbc-329aaeff #}
    Q10: ALERGIES
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbc-329aaeff-YN5L9G' }}
    <br>
    
    {# Display answer for a block of type input and ref qbi-29f016cf #}
    Q11: WE'VE GOT YOUR RESULTS - #1 [email]
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbi-29f016cf-YN5L9G' }}
    <br>
    
    {# Display answer for a block of type choice and ref qbc-cb601cf6 #}
    Q11: WE'VE GOT YOUR RESULTS - #2 [multiple_choice]
    <br>
    {{ person|lookup:'ANSWER_BY_BLOCK-qbc-cb601cf6-YN5L9G' }}
    <br>
    </p>
    
  2. When this code is copied into an HTML block in a Klaviyo template and previewd as one of the quiz subscribes is will display a full list of all the answers.

    how_to_shipifyv2_klaviyo_template_answerslist1

  3. If you want to show specific answers in your email template, you can copy parts of the code.

    Example: Display Answer for Q3: AGE GROUP

    For example, you can use {{ person|lookup:'ANSWER_BY_BLOCK-qbc-dd744cf3-YN5L9G' }} to display answer for Q3: AGE GROUP (ref qbc-dd744cf3).

    Here's how to use it in a Klaviyo template text block:

    how_to_shipifyv2_klaviyo_template_answerslist2

    Sample Answer Object Structure

    In this example, here's how to get answers for a specific question:

    Quiz name: {{ person|lookup:'QUIZ_NAME-YN5L9G' }}

    First name: {{ person.first_name }}

    Last name: {{ person.last_name }}

    Q2: BEFORE WE BEGIN: {{ person|lookup:'ANSWER_BY_BLOCK-qbi-6c4248f5-YN5L9G' }}

    Q3: AGE GROUP: {{ person|lookup:'ANSWER_BY_BLOCK-qbc-dd744cf3-YN5L9G' }}

    Q4: SKIN TYPE: {{ person|lookup:'ANSWER_BY_BLOCK-qbc-485600ce-YN5L9G' }}

    Q9: SKIN CONCERNS: {{ person|lookup:'ANSWER_BY_BLOCK-qbc-e8cf3180-YN5L9G' }}

    Q10: ALERGIES: {{ person|lookup:'ANSWER_BY_BLOCK-qbc-329aaeff-YN5L9G' }}

    Q11: WE'VE GOT YOUR RESULTS - #1 [email]: {{ person|lookup:'ANSWER_BY_BLOCK-qbi-29f016cf-YN5L9G' }}

    Q11: WE'VE GOT YOUR RESULTS - #2 [multiple_choice]: {{ person|lookup:'ANSWER_BY_BLOCK-qbc-cb601cf6-YN5L9G' }}

Use the RESPONSE_ID-QuizID to create a link to the quiz results page.

  1. Just add #response-{{ person|lookup:'RESPONSE_ID-QuizID' }} to the end of your results page href attribute in any link or URL.

    Example: Link to Quiz Results

    <a href="https://yourwebsite.com/#response-{{ person|lookup:'RESPONSE_ID-Gli0KD' }}">View your quiz results</a>

    where Gli0KD is the quiz ID and

    • {{ person|lookup:'RESPONSE_ID-Gli0KD' }} fetches the dynamic response ID (e.g., eVgV0Y).

In this example, we’re using our quiz ID dbqHqN, which you’ll need to replace for your quiz ID. Here is the code for reference:

Example: Basic Slots Template
<h3>Hello {{ person|lookup:'Q-dbqHqN ZMiXjj: .Before we get started... what\'s your name?'|default:'' }}!</h3>
<p>Here we are making sure the product exists:</p>
{% if person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url' %}
<p>Cleanser</p>
<p><img alt="This is the cleanser image" src="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url'|default:'' }}" /></p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_price'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_sku'|default:'' }}</p>
<p><a href="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_url'|default:'' }}">Buy now</a></p>
{% endif %}
{% if person|lookup:'T-dbqHqN: 40s' %}
<p>You are in your forties</p>
{% endif %}

This example demonstrated that you can not only include custom properties that are passed from the quiz to your Klaviyo account, but you can also use IF-ELSE conditional statements to show/hide content based on the customer’s responses to the quiz.

Note: Counting Products

Note that when looping through the products, the count starts in 0 (zero), so for example, if you were to display the name of 3 products in a slot you’d have to do it like this:

```html
<p>{{ person|lookup:'SLOT-dbqHqN - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_1_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_2_name'|default:'' }}</p>
```

Here are some other email templates that you can use as a reference:

Note: These templates won’t work as is

Bear in mind that these templates (unlike the one generated from the Connect > Klaviyo tab) won’t work as is. They were created for a sample quiz. Your developer will have to modify the custom properties to match the ones that are passed from the quiz to your Klaviyo account. The quiz ID is different, so are other property names.

In this example, we’re using our quiz ID dbqHqN, which you’ll need to replace for your quiz ID. Here is the code for reference:

Example: Basic Slots Template
<h3>Hello {{ person|lookup:'Q-dbqHqN ZMiXjj: .Before we get started... what\'s your name?'|default:'' }}!</h3>
<p>Here we are making sure the product exists:</p>
{% if person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url' %}
<p>Cleanser</p>
<p><img alt="This is the cleanser image" src="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url'|default:'' }}" /></p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_price'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_sku'|default:'' }}</p>
<p><a href="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_url'|default:'' }}">Buy now</a></p>
{% endif %}
{% if person|lookup:'T-dbqHqN: 40s' %}
<p>You are in your forties</p>
{% endif %}

This example demonstrated that you can not only include custom properties that are passed from the quiz to your Klaviyo account, but you can also use IF-ELSE conditional statements to show/hide content based on the customer’s responses to the quiz.

Note: Counting Products

Note that when looping through the products, the count starts in 0 (zero), so for example, if you were to display the name of 3 products in a slot you’d have to do it like this:

```html
<p>{{ person|lookup:'SLOT-dbqHqN - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_1_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_2_name'|default:'' }}</p>
```

Here are some other email templates that you can use as a reference:

Note: These templates won’t work as is

Bear in mind that these templates (unlike the one generated from the Connect > Klaviyo tab) won’t work as is. They were created for a sample quiz. Your developer will have to modify the custom properties to match the ones that are passed from the quiz to your Klaviyo account. The quiz ID is different, so are other property names.

In this example, we’re using our quiz ID dbqHqN, which you’ll need to replace for your quiz ID. Here is the code for reference:

Example: Basic Slots Template
<h3>Hello {{ person|lookup:'Q-dbqHqN ZMiXjj: .Before we get started... what\'s your name?'|default:'' }}!</h3>
<p>Here we are making sure the product exists:</p>
{% if person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url' %}
<p>Cleanser</p>
<p><img alt="This is the cleanser image" src="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url'|default:'' }}" /></p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_price'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_sku'|default:'' }}</p>
<p><a href="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_url'|default:'' }}">Buy now</a></p>
{% endif %}
{% if person|lookup:'T-dbqHqN: 40s' %}
<p>You are in your forties</p>
{% endif %}

This example demonstrated that you can not only include custom properties that are passed from the quiz to your Klaviyo account, but you can also use IF-ELSE conditional statements to show/hide content based on the customer’s responses to the quiz.

Note: Counting Products

Note that when looping through the products, the count starts in 0 (zero), so for example, if you were to display the name of 3 products in a slot you’d have to do it like this:

```html
<p>{{ person|lookup:'SLOT-dbqHqN - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_1_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_2_name'|default:'' }}</p>
```

Here are some other email templates that you can use as a reference:

Note: These templates won’t work as is

Bear in mind that these templates (unlike the one generated from the Connect > Klaviyo tab) won’t work as is. They were created for a sample quiz. Your developer will have to modify the custom properties to match the ones that are passed from the quiz to your Klaviyo account. The quiz ID is different, so are other property names.

In this example, we’re using our quiz ID dbqHqN, which you’ll need to replace for your quiz ID. Here is the code for reference:

Example: Basic Slots Template
<h3>Hello {{ person|lookup:'Q-dbqHqN ZMiXjj: .Before we get started... what\'s your name?'|default:'' }}!</h3>
<p>Here we are making sure the product exists:</p>
{% if person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url' %}
<p>Cleanser</p>
<p><img alt="This is the cleanser image" src="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_image_url'|default:'' }}" /></p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_price'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_sku'|default:'' }}</p>
<p><a href="{{ person|lookup:'SLOT-dbqHqN: Step 1: Cleanser - product_0_url'|default:'' }}">Buy now</a></p>
{% endif %}
{% if person|lookup:'T-dbqHqN: 40s' %}
<p>You are in your forties</p>
{% endif %}

This example demonstrated that you can not only include custom properties that are passed from the quiz to your Klaviyo account, but you can also use IF-ELSE conditional statements to show/hide content based on the customer’s responses to the quiz.

Note: Counting Products

Note that when looping through the products, the count starts in 0 (zero), so for example, if you were to display the name of 3 products in a slot you’d have to do it like this:

```html
<p>{{ person|lookup:'SLOT-dbqHqN - product_0_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_1_name'|default:'' }}</p>
<p>{{ person|lookup:'SLOT-dbqHqN - product_2_name'|default:'' }}</p>
```

Here are some other email templates that you can use as a reference:

Note: These templates won’t work as is

Bear in mind that these templates (unlike the one generated from the Connect > Klaviyo tab) won’t work as is. They were created for a sample quiz. Your developer will have to modify the custom properties to match the ones that are passed from the quiz to your Klaviyo account. The quiz ID is different, so are other property names.

Pull Product Information Directly from Shopify

There’s a feature in Klaviyo that allows you to pull the product information directly from Shopify by providing the id. This way you don’t need to use the description or image_url that is provided by revenuehunt, but can pull it directly from Shopify by providing the origin_id of the product. More information about this function can be found here.


By following this article, you can set up your post-quiz email flow with Klaviyo.