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
Open Attentive and create a new journey, starting from scratch.
Choose the Submitted Okendo Quiz custom event.
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.
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.
Drag a Dynamic List into the email to showcase the recommended product images and details.
Select the Recommended Products list.
Edit the Dynamic List's settings:
How many items to display - select the maximum number of products to display from each recommendation.
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.
List details - Select Image and Text 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']}}.
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']}}.
Once the list has been customized, click Continue.
Preview the changes. The product name, image and link to the product detail page should populate correctly.
Displaying quiz questions and answers
Drag a paragraph block into the email.
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.
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.
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.