Find the templater parameter
1
Open the algorithm
Go to Personalization → Product recommendations and open the algorithm you want to use in the email.
2
Copy the templater parameter
On the algorithm page, find the Templater parameter field. This is the variable name you’ll reference in the email template.
3
Open the email template
Open the email where you want the recommendations to appear and paste the parameter into the template where the recommendation block should render.
The recommendation parameter is a collection. You always access individual products through a
for ... endfor loop — there’s no direct way to address a single item without iterating.Example: list eight recommended products
The simplest case — print the name and price of every recommended product in a vertical list. Replacerecommendations with your algorithm’s templater parameter.
item exposes the product’s fields — name, price, URL, image, and any custom fields included in the algorithm output.
Example: lay out products in a grid (two per row)
To render the same eight products in a two-column table instead of a flat list, use thetableRows() helper to chunk the collection into rows.
tableRows(2) groups the products into rows of two. Change the number to control how many products appear per row.
Check whether recommendations exist
For some customers — typically those without enough behavior history — an algorithm may return an empty collection. Use theIsEmpty function to detect this case and fall back to alternative content, such as a popular-products block.