Skip to main content
All CollectionsOkendo QuizzesQuizzes Integrations
Sending Quiz Recommendations using Attentive
Sending Quiz Recommendations using Attentive
Adarsh Subramaniam avatar
Written by Adarsh Subramaniam
Updated over 3 months ago

This article will discuss how to send quiz recommendations to customers' email addresses using Attentive.

In this article, you'll learn about:

Sending quiz recommendations to customers

  1. Open Attentive and create a new journey, starting from scratch.

  2. Choose the Submitted Okendo Quiz custom event.

  3. Choose either to Notify subscribers about a transaction or Send a message about something else (recommended). If you choose the latter, then only users who have provided marketing consent in the quiz will be sent the recommendations.

  4. Drag and drop Send email into the journey, fill in the required fields and then use the drag-and-drop editor to edit the email.

  5. Drag a Dynamic List into the email to showcase the recommended product images and details.

  6. Select the Recommended Products list.

  7. Edit the Dynamic List's settings:

    1. How many items to display - select the maximum number of products to display from each recommendation.

    2. Layout - select the first or last layout to show the product name below the product images with the text either centered or left-aligned. Select the middle layout to show product images side by side with the product name.

    3. List details - Select Image and Text 1.

      1. Image - Set {{item['Product Image Url']}} as the Image source. To set the Image redirect link as the product detail page, select {{item['Product URL']}}.

      2. Text 1 - Set {{item['Product Name']]} as the Text and optionally provide a default value. To set the Text redirect link as the product details page, select {{item['Product URL']}}.

    4. Once the list has been customized, click Continue.

  8. Preview the changes. The product name, image and link to the product detail page should populate correctly.

Displaying quiz questions and answers

  1. Drag a paragraph block into the email.

  2. Paste the following variables into the block to display the questions and answers.

    1. {{triggerEvent.custom['0']['question']}} {{triggerEvent.custom['0']['answer']}}   
      {{triggerEvent.custom['1']['question']}} {{triggerEvent.custom['1']['answer']}}
      {{triggerEvent.custom['2']['question']}} {{triggerEvent.custom['2']['answer']}}
      {{triggerEvent.custom['3']['question']}} {{triggerEvent.custom['3']['answer']}}

      Keep in mind that you can customize the number in the variable depending on how many questions and answers you'd like to display where "0" is the first question, "1" is the second question and so on.

    2. Alternatively, variables for answers to specific questions can be used instead, for example:

      {{triggerEvent.custom['How often do you wear jeans?']}}  


      A full list of variables available for an event can be viewed by inserting a variable and then filtering to Triggering Event category.


  3. Preview the changes and ensure that it's populating correctly. If you are finding issues with the variables previewing in the email correctly, use double quotes instead of single quotes. For example:

    {{triggerEvent.custom["How often do you wear jeans?"]}}  

Linking to the quiz's recommendation page

A link or button can be added to the email for the quiz taker to view their recommendations on site. The quiz response ID variable is sent through with the Submitted Okendo Quiz event:

{{triggerEvent.custom['Quiz Response ID']}} 

A combination of the page URL that the quiz is installed on, the query string ?okendo_quiz_response_id= and quiz response ID will be required together to create the link.

For example:

https://okendocosmetics.com/pages/custom-beauty-recommendation?okendo_quiz_response_id={{triggerEvent.custom['Quiz Response ID']}} 

When you are happy with the email, launch the journey and start emailing your quiz's recommendations!

Note: Quiz takers will only be available to target in a journey if they are an existing subscriber within Attentive and have provided marketing consent. Follow the steps to create a sign-up unit in Attentive to collect subscribers.

Did this answer your question?