You will learn
Learn how to select a product ID variable to display dynamic review quotes related to the products someone is interested in. These variables vary between events, so make sure to use the right variable for your flow.
Before you beginBefore you begin
This block is only available in accounts that use Klaviyo Reviews. Learn how to get started with Klaviyo Reviews.
About dynamic review blocksAbout dynamic review blocks
Dynamic review quote blocks can display different reviews depending on when the email is sent and what actions the recipient has taken, unlike static review blocks, which feature the same product for every recipient. Learn more about dynamic review blocks.
This article specifically covers dynamic review blocks with the following settings:
- Quote selection: Dynamic
- Prioritize recent quotes from: Either (Featured reviews or High-rated reviews)
- Product selection: Automatic
Review quote blocks with any other settings do not require a product ID variable.
This process is only supported in certain flow emails: event-triggered flows, back in stock flows, low inventory flows, and price drop flows. To add this block to your email:
- Navigate to a flow email.
- Drag a Review quote block into the email.
- Click Add review quote.
- Choose Dynamic.
- Under Prioritize recent quotes from, choose Featured reviews or High-rated reviews. If you choose Featured reviews, make sure you’ve featured one or more reviews for the product(s) you intend to highlight.
- Under Product selection, choose Automatic.
- Select a product ID variable from the table below, based on your flow trigger.
- Add the product ID variable to the Event variable for product ID field.
- If desired, adjust the format in the Review formats section, or change the colors, fonts, and sizes in the Styles tab.
- Click Done.
Product ID variables
The table below offers the most common event variables used for review quote blocks. In addition to those in the table below, you can use any other event variable that references a product ID. To find a product ID variable other than those in the table below:
- From your flow email, click Preview & test.
- Click the event variable you’d like to use in your review quote block. When you click the variable name, the tag will be copied to your clipboard.
- Remove all extraneous information from the tag: the curly quotes that surround it and any filters, which follow the tag information. For example, if the original tag was {{ event.product.id|default:”” }}, remove everything from the tag except event.product.id.
- Paste this variable into the Event variable for product ID field.
If a trigger event contains multiple items (e.g., abandoned cart flows), only the first item is considered when choosing reviews. We do not recommend using the second, third, or any other items, because not every instance of the event will contain multiple items.
Shopify product ID variables
Flow trigger | Event variable |
Browse abandonment | event.ProductID |
Abandoned cart (Add to cart trigger) | event.ProductID |
Abandoned checkout (Checkout started trigger) | event.extra.line_items.0.product.id |
Back in stock | event.ProductID |
Price drop | event.product_id |
Low inventory | event.product_id |
Placed order | event.extra.line_items.0.product.id |
WooCommerce product ID variables
Flow trigger | Event variable |
Browse abandonment | event.ProductID |
Abandoned cart (Add to cart trigger) | event.ProductID |
Abandoned checkout (Checkout started trigger) | event.extra.Items.0.ProductID |
Placed order | event.extra.Items.0.ProductId |