Build audiences
In this lesson, we will build audiences based on the profile data we ingested in the previous lessons.
Once you have Real-Time Customer Profiles, you can create audiences of individuals who share similar traits and might respond similarly to marketing strategies. The building blocks of these audiences are the XDM fields which you created earlier.
Data Architects will need to create audiences outside of this tutorial and support their colleagues with this task.
Before you begin the exercises, watch this short video to learn more about creating audiences:
Permissions required
In the Configure Permissions lesson, you set up all the access controls required to complete this lesson, specifically:
- Permission items Profile Management > Manage Segments, View Segments, and Export Audience Segment
- Permission items Profile Management > View Profiles, and Manage Profiles
- Permission item Sandboxes >
Luma Tutorial - User-role access to the
Luma Tutorial Platformproduct profile - Developer-role access to the
Luma Tutorial Platformproduct profile (for API)
Build a basic segment
Let’s create a simple audience for loyalty program customers with a Gold or Platinum Status
- In the Platform user interface, go to Audiences in the left navigation
- Select the Create audience button
- Select Build rule and then Create
- On the left of the schema builder are three tabs for Attributes (Record data), Events (Time-series data), and Audiences
- Select the gear icon to note how the audience builder defaults to only show you fields with data and allows you to change the merge policy
- In Attributes tab, navigate to the XDM Individual Profile > Loyalty folder (you could also search for “loyalty”)
- Drag and drop,
Tierfrom the attribute fields menu to the audience builder canvas - Select
Tierequalsgoldorplatinum - Select Refresh estimate to see how many profiles qualify for your segment
- As the Name, enter
Luma customers with level Gold or Above - Select Publish
Build a dynamic segment
In this exercise, we will create an audience for customers who have bought the same product twice within 30 days. Dynamic segments allow you to scale your segmentation by using fields as variables.
-
Go to Audiences in the left navigation
-
Select the Create audience button
-
Select Build rule and then Create
-
Select the Events tab
-
Filter the list to
purchases -
Drag the Purchases event type onto the canvas two separate times
-
Select the clock icon in between the two Purchases events and choose “within 30 days”
-
Confirm that your audience definition at this point reads “Include audience who have at least 1 Purchases event then within 30 days have at least 1 Purchases event”
-
Now change the event filter to
sku -
Drag the SKU field to the second purchase event
-
Now clear the event filter
-
You should see in the Browse Variables section, there are folders for the two purchase events. Click to explore Purchases 1
-
Drill down into the Product list items folder, select the SKU field, and drag it to the right of the equals operand. When you are hovering over the area, drop it in the “Add to compare operands” section
-
Name your audience
Bought same product within 30 days -
Confirm that your audience definition is “Include audience who have at least 1 Purchases event then within 30 days have at least 1 Purchases event where ((SKU equals Purchases1 SKU))”
-
Select the Publish button
Build a multi-entity segment
Remember how we created the relationship between the Luma Offline Purchase Events Schema and the Luma Product Catalog Schema in earlier lessons? We did that so we could use the relationship in our schema using multi-entity segmentation.
With the advanced multi-entity segmentation feature, you can create segments using multiple XDM classes to extend your schemas. As a result, the audience builder can access additional fields as if they were native to the profile data store
You will create the next audience by applying the relationship you built between your Luma Product Catalog Schema and your Luma Offline Purchase Events Schema.
-
Go to Audiences in the left navigation
-
Select the Create audience button
-
Select Build rule and then Create
-
Select the Events tab
-
Filter the list to
purchases -
Drag the Purchases event type onto the canvas
-
Select the clock dropdown above the event and choose in last 30 days
-
Filter the Events list to
categoryand then drag the Product Category field onto Purchases -
Change the operator to starts with and enter
meninto the text box -
As the Name, enter
Purchased a Men's product in the last 30 days -
Confirm the audience definition
(Include audience who have at least 1 Purchases event where ((Product Category starts with men)) ) and occurs in last 30 day(s) -
Select the Publish button
Batch and Streaming audiences
Click on Audiences in the left navigation and let’s take a moment to review our three audiences:
- Two of our audiences are batch audiences and one is a streaming segment.
- Platform defaults to streaming segmentation whenever possible, qualifying the customer for an audience as soon as they meet the criteria. When audience definitions are too complex for streaming, they will automatically convert to batch. In this case, the two audiences defaulted to batch because the look-back window of the purchase events was greater than seven days. For a complete and current list of streaming limitations, see the documentation.
- The batch jobs run on a daily schedule, which can be toggled off.
Additional Resources
There is more to segmentation, especially with activating audiences. Those topics will be addressed in another tutorial.
You’ve made it through all of the exercises! Please proceed to the conclusion.