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 a week ago

This article will discuss how to send quiz recommendations to customers' email 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.

    {{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.

  3. Preview the changes and ensure that it's populating correctly.

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!

Did this answer your question?