[Beta]{class="badge informative"}
Enrichment enrichment
The Enrichment activity is a Targeting activity. It allows you to enhance the targeted data with additional information from the database. It is commonly used in a workflow after segmentation activities.
Enrichment data can come either:
-
From the same work table as the one targeted into your workflow:
Target a group of customers and add the “Birth date” field to the current work table
-
From another work table:
Target a group of customers and add the “Amount” and “Type of product” fields coming from the “Purchase” table.
Once the enrichment data has been added to the workflow, it can then be used in the activities added after the Enrichment activity to segment customers into distinct groups based on their behaviors, preferences, and needs, or to create personalized marketing messages and campaigns that are more likely to resonate with your target audience.
For instance, you can add to the workflow working table information related to customers’ purchases and use this data to personalize emails with their latest purchase or the amount spent on these purchases.
General Configuration general
Follow these steps to configure the Enrichment activity:
- Add activities such as Build audience and Combine activities.
- Add an Enrichment activity.
- Click Add enrichment data.
You can select two types of enrichment data: a single enrichment attribute from the target dimension, or a collection link.
Single enrichment attribute single-attribute
Here, we are just adding a single enrichment attribute, for example, the date of birth. Follow these steps:
- Click inside the Attribute field.
- Select a simple field from the targeting dimension, the date of birth in our example.
- Click Confirm.
Collection link collection-link
In this more complex use case, we will select a collection link which is a link with a 1-N cardinality between tables. Let’s retrieve the three latest purchases that are less than 100$. For this you need to define:
- an enrichment attribute: the Total amount field
- the number of lines to retrieve: 3
- a filter: filter out items that are greater than 100$
- a sorting: descendant sorting on the Order date field.
Add the attribute
This is where you select the collection link to use as enrichment data.
- Click inside the Attribute field.
- Click Display advanced attributes.
- Select the Total amount field from the Purchases table.
Define the collection settings
Then, define how the data is collected and the number of records to retrieve.
- Select Collect data in the Select how the data is collected drop-down.
- Type “3” in the Lines to retrieve (Columns to create) field.
If you want, for example, to get the average amount of purchases for a customer, select Aggregated data instead, and select Average in the Aggregate function drop-down.
Define the filters
Here, we define the maximum value for the enrichment attribute. We filter out items that are greater than 100$.
- Click Edit filters.
- Add the two following filters: Total amount exists AND Total amount is less than 100. The first one filters NULL values as they would appear as the greatest value.
- Click Confirm.
Define the sorting
We now need to apply sorting in order to retrieve the three latest purchases.
- Activate the Enable sorting option.
- Click inside the Attribute field.
- Select the Order date field.
- Click Confirm.
- Select Descending from the Sort drop-down.