Skip to main content

Send quiz questions and answers in Brevo emails

Written by Wendy

You can include a summary of the shopper's quiz questions and answers in a Brevo email using Dynamic Content from the Completed_Lantern_Quiz event.

Step 1: Add Dynamic Content

1.1. Open the email you want to use in your Brevo automation.

1.2. In the drag-and-drop editor, add a Dynamic content block where you want the quiz responses to appear.

1.3. Under Data Source, choose:

Event data → Custom events → Completed_Lantern_Quiz → answers

The Data Source will appear as: params.answers

This contains the questions and answers from the completed quiz.

1.4. Under Layout, turn on Limit number of items and enter the number of quiz answers you want to display.

For example, set the number of items to 5 to display the first five question-and-answer pairs from the quiz.

GIF showing how to add a Dynamic content block in Brevo, select the answers array from the Completed_Lantern_Quiz event, and set how many question-and-answer pairs to display.

Step 2: Add the question and answer

2.1. Inside the Dynamic Content block, create two columns and add a Text block to each one.

2.2. In the first Text block, enter: {{ item.question }}

This displays the quiz question.

2.3. In the second Text block, enter: {{ item.answer }}

This displays the shopper's answer to that question.

The two Text blocks will repeat for each item in the params.answers array.

Step 3: Preview the quiz responses

3.1. Click Preview & test.

3.2. Select Preview event.

3.3. Under Event type, choose Custom events, then select: Completed_Lantern_Quiz

3.4. Select a completed quiz event to use for the preview.

The preview should now show the questions and answers from that quiz completion.

GIF showing how to click Preview & test in Brevo, select a Completed_Lantern_Quiz custom event, and preview the shopper’s quiz questions and answers in the email.

Once you're happy with the layout, you can continue editing the email or use it in your Brevo automation.

To include personalised product recommendations, see our guide on sending product recommendations with Brevo emails.

To add a button that takes shoppers back to their saved quiz results, see our guide on adding a link to the quiz results page in Brevo emails.

Did this answer your question?