Skip to main content
All CollectionsPlay SetupCross-sell Moment Plays
Suggest Predicted Products Anywhere
Suggest Predicted Products Anywhere

Use Repeat’s Product Predictions to suggest a customer’s next favorite product in any email campaign or flow

Updated over 4 months ago

This article shows how to set up the Suggest Predicted Products Anywhere Play. Learn more about the play here or explore all of our Plays.

To make setup even faster, reach out to [email protected] so we can add the Klaviyo template to your account.

image

Klaviyo Setup

What we’re building

We’ll build a reusable component, saved as a universal block, that you can add to any email campaign or flow to show customers the products that they are most likely to purchase next.

1. Create the table & make it dynamic

image

In a new email template, add a table to the body of the email. Switch to the “table settings” tab and choose the “dynamic” option. In the “Row collection” field, add this text variable to use the “Repeat - Product Predictions” profile property to populate your table:

person|lookup:'Repeat - Product Predictions'

In the “Row alias” field, enter item.

2. Add product titles and links

image

Switch to the “Content” tab. The left column should be a text column. Cluck the button above the text editor to switch to the source code view and copy and paste in this HTML:

<h3>{{ item.productTitle}}</h3> <h4>{{ item.variantTitle|cut:"Default Title" }}</h4> <h4>&nbsp;</h4> <h4><a href="https:/consumerpackaged.store/products/{{ item.pdpUrl}}">Check it out &gt;</a></h4>

3. Set up the product image

image

Switch to the image column and click the “Add Dynamic Image…” button. In the text field, add this variable and save it: {{ item.imageUrl }}

4. Add show/hide logic

To make sure that the Product Predictions block is only shown when a customer profile contains product predictions, add we’re going to add a bit of logic. Navigate to the “Display options” tab and click “Create Logic.” Add the following text to the Logic field and save it:

image

person|lookup:'Repeat - Product Predictions'

5. Test your table

image

To test your table, you’ll want to preview the email in two different ways:

  • Preview as a customer who does have the Product Predictions property set on their profile to make sure the table displays correctly

  • Preview as a customer who does not have Product Predictions on their profile to make sure the table is correctly hidden

6. Add styling and save the table as a universal content block

Style the table to suit your brand, then save it as a universal content block (hover over the table and click the star button). Give it a name you’ll remember like “Repeat Product Predictions.”

7. Add the content block to your emails

You’re now ready to add the universal content to any email! Drop it into a campaign, add it to a flow, or place it anywhere you want to expose your customers to their next favorite product.


Did this answer your question?