Follow these steps to create a Product Recommendations for Email experience.
- Click EXPERIENCES in the top navigation bar, and then select Web.
- Click the drop-down arrow to the right of CREATE EXPERIENCE, and then select Product Recommendations for Email.
- Click the pencil icon, enter a name for the experience, and then click the green checkmark icon to save the name.
- Click WHAT and then click ADD ACTION.
- Click Product Recommendations for Email on the Action Type panel.
- Click the action template that you want to use.
- Configure the required recommendations-related inputs for the action.
- Select up to four recommendation strategies to populate the recommendations.
- Set the number of times the action displays recommendations from one strategy before displaying recommendations from the next strategy. For example, an action using recommendation strategies A, B, and C with a set sequence of 2 would pull from result in recommendations pulled in the following order: A, A, B, B, C, C, A, A….
- Set the minimum number of products the action must display before a fallback recommendation fires.
- Set the maximum number of products the action can recommend.
- Optionally, enter into Pinned products the value of the
id
attribute for each product that you want to always appear at the beginning of the recommendations results. - Optionally, select a product catalog attribute on which duplicate recommended products are removed from the results.
- Optionally, select one or two fallback recommendation strategies.
- As necessary, modify the HTML code for the recommendation item template.
- As necessary, adjust the size of the image container.
- Click CREATE.
- Click GENERATE EMAIL HTML.
- Click COPY TO CLIPBOARD and then paste the HTML into your ESP email template.
- Replace the
$customer_id
placeholder and, as necessary, the placeholders for any run-time parameters in the generated HTML, with their respective values. See Preparing the Generated HTML in Run-Time Context for Recommendations Email Experiences for more information.
Unlike Web experiences, a Product Recommendations for Email experience requires no activation because you send it to customers using your ESP.
Previewing the Email Experience
Follow these steps to preview a Product Recommendations for Email experience complete with the context of a customer ID.
- Click PREVIEW on the Experience Editor page.
- Enter a customer ID value in the Preview modal.
If the preview appears blank, a likely culprit is a syntax error in the template. Another possibility is a lack of returned recommended items due to either an empty catalog or the configurations of the recommendation strategies selected in the WHAT action.