Predefined email template with context recommendations

Published July 17, 2023
Modules
Difficulty

Drive conversions and foster long-lasting customer relationships with personalized recommendations by analyzing customers’ browsing history. By curating a tailored selection of similar items and recommending relevant products, you can boost sales, elevate the shopping experience, and increase engagement with just an email.

This use case describes the process of creating a set of personalized recommendations of products similar to the last seen by the customer and sending them in an email to customers who had a transaction in the last 30 days.

This use case provides you with an instruction how to use a ready-made email template that can be used 1:1 in a business scenario.

Email with similar recommendations

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create an aggregate returning the ID of the last visited product, it will be used in the template configuration.
  2. Prepare an AI recommendation, it will be used in the template configuration.
  3. Prepare an email template.
  4. Create a workflow.

Create an aggregate


In this part of the process, create an aggregate that returns the ID of the last product a customer had visited. The recently viewed product itself will not display in the template, but will serve as a context for recommendations.

  1. Go to Analytics iconAnalytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last.
  4. From the Choose event dropdown list, select the Visited page event.
  5. As the event parameter, select product:retailer_part_no.
  6. Click the + where button.
  7. From the Choose parameter dropdown list, select the product:retailer_part_no parameter.
  8. From the Choose operator dropdown list, select Is true (Boolean).
  9. Using the date picker in the lower-right corner, set the time range to Last 7 days. Confirm your choice with the Apply button.
  10. Click Save.
The view of the aggregate configuration
Configuration of the aggregate returing the ID of the last seen product

Prepare an AI recommendation


In this part of the process, you will configure a similar items recommendation which will be later used in the email template. You can use a differenct recommendation type according to your business needs.

  1. Go to Communication icon Communication > Recommendations > Add recommendation.
  2. Enter the name of the recommendation (it is only visible on the list of recommendations).
  3. In the Type & source section, click Define.
  4. From the Catalog dropdown list, select an item feed.
  5. In the Type section, choose the Similar items recommendation type.
  6. Confirm the settings by clicking Apply.
  7. In the Items section, click Define.
    1. Click Add slot.
    2. Define the minimum and maximum number of items that will be recommended to the customer in each slot.
    3. Optionally, define Static filters and Elastic filters.
    4. Confirm by clicking Apply.
  8. Optionally, you can define the Boosting factors and settings in the Additional settings section.
  9. In the right upper corner, click Save.

Prepare an email template


In this part of the process, you will create an email campaign. We will use a predefined template for the recommendations similar to last seen products, so there is no need to create a template from scratch. In the configuration, we will use the aggregate and recommendation created in the previous steps.

  1. Go to Image presents the Communication icon Communication > Email.
  2. On the left pane, click Templates and from the list of template folders, select email default templates.
  3. Select Products similar to last seen template.

Result: You are redirected to the code editor.

Note: You can edit the template in two ways, by editing the code of the template (add inserts, add variables and/or by filling out the form in the Config tab. In this use case, we will use the capabilities of the predefined Config tab.

Edit form in the Config tab


The form in the Config tab is pre-filled with default values, which you can modify to suit your business needs.

  1. In the Logo section, you have the option to customize the logo’s height, link, title, and image source.

  2. In the Main image section, you can specify the height, link, title, and the source of the main image.

  3. In the Last seen product section, from the Aggregate id with last seen product dropdown list, select the aggregate you created in the previous step. You can find it by typing its name or ID in the search box.

  4. In the Recommendation header section, you can type the header you want to display and define the background and font colors.

  5. In the Recommendation products section:

    1. From the Recommendation id dropdown list, select the recommendation you prepared in the previous step. You can find it by typing its name or ID in the search box.
    2. Customize the Number of product in row, Product name font color, Font color, Button font color, Button background color, Button border radius and Button text options.
  6. Optionally, you can configure Category section, Contact section, Social media and Footer or hide them by switching off the respective toggle.

    Note: To preview the template without switched off sections, use the Preview Contexts option.
  7. After you make changes to the template, you can check the preview.

    1. Click the Preview Contexts button on the upper left side.
    2. Enter the ID of a customer.
    3. Click Apply.
    The view of the Edit form in the Config tab
    Edit form in the Config tab
  8. If the template is ready, click the arrow next to Use in communication in the upper right corner, and from the dropdown select Save as.

  9. On the pop-up:

    1. In the Template name field, enter the name of the template.
    2. From the Template folder dropdown list, select the folder where the template will be saved.
    3. Confirm by clicking Save.

Create a workflow


In this part of the process, you will create the workflow which sends emails with recommendations of products similar to those last seen by a customer, triggered when they finish their session on the site. The email will be sent maximum once a month, to customers who didn’t make a purchase in the last 30 days.

  1. Go to Automation icon Automation > Workflows > New workflow.
  2. Enter the name of the workflow.

Define the Profile Event trigger node

At this stage, we will configure the conditions that launch the workflow. As a trigger, we will use the session.end event.

  1. As the first node of the workflow, add Profile Event. In the configuration of the node:
    1. From Choose event dropdown menu, choose the session.end event.
    2. Confirm by clicking Apply.

Define the delay

Add the Delay node to define the lag between the session.end event and sending an email with voucher to specific segment of customers. In this example it is 1 hour.

  1. Add the Delay node, in the configuration of the node:
    1. In the Delay field, enter 1.
    2. From the Unit dropdown, choose Hour.
    3. Confirm by clicking Apply.

Define the Profile Filter node

As the next step, add the Profile Filter node, which checks if the customer made a transaction in the last 30 days. If the customer has not made a transaction, we will send them an email with recommendations, and if they have, then the workflow ends.

  1. Add the Profile Filter node.
  2. From the Choose filter dropdown list, select the transaction.charge event.
  3. Using the date picker in the lower-right corner, set the time range to Custom> Last 30 days. Confirm your choice with the Apply button.
  4. Click Apply.

Configure the Send Email node

  1. To the Not matched path, add the Send Email node. In the node settings:
    1. In the Sender details section, choose the email account from which the email will be sent.
    2. In the Content section, type the Subject and from the Template dropdown, select the template you prepared in the previous step.
    3. In the UTM & URL parameters section, you can define the UTM parameters added to the links included in the email.
    4. In the Additional parameters section, you can optionally assaign parameters, which will be added to every event generated by this communication.
  2. Click Apply.

Add the finishing nodes and set capping

  1. Add the End nodes after Send Email node and to the Matched path after the Profile Filter node.
  2. In the upper right corner, click Set Capping and define the limit of workflows a profile can start:
    1. Set Limit to 1.
    2. Set Time to 30 days.
  3. Confirm by clicking Apply.
  4. In the upper right corner, click Save & Run.
The view of the workflow configuration
Workflow configuration

Check the use case set up on the Synerise Demo workspace


You can check the configuration of each step directly in our Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker