Skip to content

Commit b664372

Browse files
authored
Merge pull request #5890 from segmentio/Linked-Audiences
Linked Audiences and Data Graph content
2 parents 7ea72fb + 3a92213 commit b664372

File tree

10 files changed

+818
-135
lines changed

10 files changed

+818
-135
lines changed

src/_data/sidenav/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ sections:
314314
title: Tables & Materialized Views
315315
- section_title: Linked Profiles
316316
slug: unify/linked-profiles
317-
section:
318-
- path: /unify/linked-profiles/linked-events
319-
title: Linked Events
317+
section:
318+
- path: /unify/linked-profiles
319+
title: Linked Profiles Overview
320320
- section_title: Setup Guides
321321
slug: unify/linked-profiles/setup-guides
322322
section:
@@ -326,6 +326,11 @@ sections:
326326
title: Snowflake Setup
327327
- path: /unify/linked-profiles/setup-guides/redshift-setup
328328
title: Redshift Setup
329+
- path: /unify/linked-profiles/data-graph
330+
title: Data Graph
331+
- path: /unify/linked-profiles/linked-events
332+
title: Linked Events
333+
329334
- section_title: Traits
330335
slug: unify/traits
331336
section:
@@ -392,6 +397,8 @@ sections:
392397
title: Account-level Audiences
393398
- path: '/engage/audiences/generative-audiences'
394399
title: Generative Audiences
400+
- path: '/engage/audiences/linked-audiences'
401+
title: Linked Audiences
395402
- path: '/engage/audiences/organization'
396403
title: Organize Audiences
397404

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
---
2+
title: Linked Audiences
3+
plan: engage-foundations
4+
beta: true
5+
redirect_from:
6+
- '/unify/linked-profiles/linked-audiences'
7+
---
8+
9+
> info "Linked Audiences is in private beta"
10+
> Linked Audiences is in private beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
11+
12+
With Linked Audiences, you can use the relational data you've defined in your Data Graph to build audiences and send them to your downstream [actions-based destination](/docs/connections/destinations/actions/#available-actions-based-destinations).
13+
14+
From the relationships you've defined between the profiles and entities in your warehouse, you can filter on an entity, profile trait, and audience membership conditions to create hyper-segmented audiences.
15+
16+
17+
> info "Linked Audiences warehouse support"
18+
> At this time, Linked Audiences only supports [Snowflake](/docs/unify/linked-profiles/setup-guides/snowflake-setup/).
19+
20+
> warning "Linked Audiences permissions requirements"
21+
> You must have Workspace Owner or Unify Read-Admin, Entities Admin, and Source Admin permissions to set up Linked Audiences Activation.
22+
23+
24+
## Getting started
25+
26+
To help you get started with Linked Audiences, consider the following best practices:
27+
28+
- It may be helpful to first identify an entity that is directly associated with your users, such as `Accounts`, `Households`, or `Organizations`.
29+
- From there you can define relationships between this entity with any of the other entities that may be associated with it, such as how `Accounts` can have the following: `Subscriptions`, `Purchases`, or `Carts`.
30+
- You can create entity relationships up to four levels in depth. For example, an entity condition that queries for relationships between `Profiles`, `Accounts`, `Credit Cards`, and `Transactions` has four levels of depth.
31+
- To further refine your audience, identify column values that you might want to filter your entities by, or configure profile traits and audience membership conditions.
32+
33+
## Step 1: Build a Linked Audience
34+
35+
You can build a Linked Audience from profiles associated with an entity, trait, or existing audience.
36+
37+
![Choose your audience conditions](/docs/engage/images/conditions.png)
38+
39+
1. Navigate to **Engage > Audiences**.
40+
2. Click **+ New audience**, then select **Audience**.
41+
3. On the Select Type screen, select **Linked audience**, then click **Next**.
42+
4. Select one of the following conditions to build your audience from:
43+
- **associated with an entity**: creates a condition that filters profiles associated with an entity.
44+
- **where profile trait**: creates a condition that filters profiles with a specific trait.
45+
- **part of an audience**: creates a condition that filters profiles that are part of an existing audience.
46+
5. Preview your audience, then click **Next**.
47+
6. Enter an audience name and description, then click **Create Audience**.
48+
49+
After creating the audience, you'll be redirected to the Overview page. By default, the audience is disabled. You'll need to manually enable the audience for the audience to compute.
50+
51+
> warning ""
52+
> Edits and deletes are not currently supported for Linked Audiences. Segment recommends recreating your existing Linked Audience. To disable an audience, navigate to the **Settings** tab of an audience and toggle the **Enabled** button off.
53+
54+
#### Custom traits
55+
56+
You can build Linked Audiences based on custom traits. These traits can be collected from your apps when a user completes a form or signs up using an [Identify](/docs/connections/spec/identify) call. You can view these traits in the Profile explorer, as well. Custom traits are mutable and update to the latest value seen by the user's Identify events.
57+
58+
> info ""
59+
> When a Linked Audience that previously generated Identify events is deleted, the data for the audience key is still attached to profiles that entered the audience, and becomes visible in Segment as a custom trait.
60+
61+
#### Entity conditions
62+
You can build Linked Audiences based on relational data from the data warehouse. Creating an entity condition will allow you to traverse the nested entity relationships defined in the Data Graph, as well as filter on entity properties at each level.
63+
64+
65+
#### Compute statuses
66+
67+
Engage displays the following compute statuses for Linked Audiences.
68+
69+
70+
| Computation status | Description |
71+
|---------------------------|---------------------------------------|
72+
| Computing | Engage is computing the Linked Audience. |
73+
| Live | Users will enter the audience as it's computed on the scheduled hourly cadence. |
74+
| Disabled | The Linked Audience is disabled. |
75+
| Failed | The computation was cancelled or failed to compute. Please contact [Segment support](https://segment.com/help/contact/){:target="_blank"}. |
76+
77+
## Use cases
78+
79+
Below are some example use cases to help you learn more about Linked Audiences.
80+
81+
### Use case 1: Build an audience of users who have a credit card with an outstanding balance
82+
83+
To build this audience, you'll need to define a nested entity condition to relate a `Profile` to their:
84+
- `Account` entity
85+
- `Credit Card` entity where `credit_card.balance` is "Outstanding"
86+
87+
In the Data Graph, `Account` and `Credit Card` are defined as entities and represented as separate tables in your data warehouse. Relationships are defined between:
88+
- `Profile` and `Account`
89+
- `Account` and `Credit Card`
90+
91+
In the warehouse, `credit_card.balance` is a column in the `Credit Card` table. By filtering against the `credit_card.balance` column for the "Outstanding" value, marketers can return a list of users that have a credit card with an outstanding balance.
92+
93+
### Use case 2: Build an audience of cat owners who are also a part of the platinum membership tier
94+
95+
To build this audience, you'll need to define a nested entity condition to relate a `Profile` to their:
96+
- `Household` entity
97+
- `Pet` entity where `pet.type` is "Cat"
98+
99+
You'll also need to define an audience membership condition to filter for users that are a member of the "Platinum membership tier" audience.
100+
101+
In the Data Graph, `Households` and `Pets` are defined as entities and are represented as separate tables in your data warehouse.
102+
103+
Relationships are defined between:
104+
- `Profiles` and `Households`
105+
- `Households` and `Pets`
106+
107+
In the warehouse, `pets.type` is a column in the `pets` table. By filtering against the `pets.type` column for the "cat" value, marketers can return a list of users that have a cat.
108+
109+
Furthermore, adding the audience membership condition will allow marketers to further refine their audience to only include users who are part of the "Platinum membership tier" audience.
110+
111+
112+
### Use case 3: Build an audience of credit card holders with a certain number of transactions
113+
114+
To build this audience, you'll need to define a nested entity condition to relate a `Profile` to their:
115+
- `Accounts` entity
116+
- `Subscriptions` entity where `subscriptions.tier` is "Premium"
117+
- `Transactions` entity where `transactions.count` is greater than five
118+
119+
This nested entity condition has four levels of relationship depth.
120+
121+
In the Data Graph, `Accounts`, `Credit Cards`, and `Transactions` are defined as entities. Relationships are defined between:
122+
- `Profiles` and `Accounts`
123+
- `Accounts` and `Credit Cards`
124+
- `Credit Cards` and `Transactions`
125+
126+
In the warehouse, `subscriptions.tier` is a column in the `Subscriptions` table, and `transactions.count` is a column in the `Transactions` table. By filtering against the `subscriptions.tier` column for the "Premium" value, and the `transactions.count` column for values greater than five, marketers can return a list of users that have a premium account where there are greater than five transactions.
127+
128+
129+
## Step 2: Activate your Linked Audience
130+
131+
You can use your Linked Audience to activate any [actions-based destination](/docs/connections/destinations/actions/#available-actions-based-destinations). The steps below provide instructions on how to add a destination to your Linked Audience(s), and send an event that best matches your use case.
132+
133+
> info ""
134+
> Segment has preset mappings for [Braze](/docs/connections/destinations/catalog/braze-cloud-mode-actions/#available-presets), [Iterable](/docs/connections/destinations/catalog/actions-iterable/#available-presets), and [Customer.io](/docs/connections/destinations/catalog/customer-io-actions/#available-presets) with many of the following steps already configured.
135+
136+
> warning ""
137+
> Some action destinations have limitations on nested objects, and the depth of the `_entity_context` property.
138+
139+
### Step 2a: Add an action destination
140+
141+
To activate your Linked Audience, you first need to add an action destination.
142+
143+
From the Add destination window, select your destination and click **Next**.
144+
145+
### Step 2b: Select event
146+
After adding an actions-based destination, select what type of event you want to send to the destination. Events update the destination about changes to your entity or audiences. You can then use these actions to orchestrate campaigns in other tools.
147+
148+
You can send events:
149+
- When an entity on a profile changes:
150+
- [Entity Added](#entity-added)
151+
- [Entity Removed](#entity-removed)
152+
- Based on profile audience membership updates:
153+
- [Audience Entered](#audience-entered)
154+
- [Audience Membership Changed](#audience-membership-changed)
155+
- [Audience Exited](#audience-exited)
156+
157+
> info ""
158+
> You can't send events before you identify people. Ensure you're making the profile(s) known in the destination before you send events. You can do this by sending an `Audience Membership Changed` event first, or by creating an Identify event in Connections.
159+
160+
#### Entity added
161+
162+
Send a Track event when the lowest entity branch matches the audience condition.
163+
164+
Example use cases:
165+
- Send a reminder to a customer when a credit card associated with their profile has an outstanding balance.
166+
- Notify a traveler when a flight associated with their profile is delayed.
167+
- Notify a customer when a product associated with their profile's wishlist is back in stock.
168+
169+
#### Entity removed
170+
171+
Send a Track event when an entity is removed because it no longer matches the audience conditions. Select your entity from the **Select entity** dropdown menu.
172+
173+
Example use cases:
174+
- Send a confirmation to a customer when a credit card associated with their profile has been paid off.
175+
- Send a confirmation to the primary doctor when each of their associated patients completes their annual check up.
176+
177+
#### Audience entered
178+
179+
Send a Track event when a profile enters the audience.
180+
181+
Example use cases:
182+
- Send a congratulatory email when a travel qualifies for premium status.
183+
- Send a discount to all customers with a particular product on their wishlist.
184+
185+
#### Audience exited
186+
187+
Send a Track event when the profile exits the audience.
188+
189+
Example use cases:
190+
- Send an email to credit card owners to confirm that their credit cards have been paid in full.
191+
- Send a confirmation to a patient when they have completed all their pre-screening forms.
192+
193+
#### Audience Membership Changed
194+
195+
Send an Identify event when a profile enters and exits the audience.
196+
197+
Example use case:
198+
- Update a user profile in a destination with the most recent audience membership.
199+
200+
201+
### Step 2c: Select an action
202+
203+
Select the destination action to call when the event happens. Make sure the action you selected is relevant to the type of event you previously selected. For example, if you selected **Audience Membership Changed**, be sure your action is also an Identify event.
204+
205+
Segment displays available actions based on the destination action you've connected with your Linked Audience.
206+
207+
Visit the [destination actions docs](/docs/connections/destinations/actions/) learn more about destination actions, and view available actions for your destination.
208+
209+
### Step 2d: Configure the event
210+
211+
Configure your event and select additional properties to include in the event.
212+
213+
To configure your event:
214+
215+
1. Select additional properties to include in each event.
216+
- As you're configuring your event, you can view a preview of the enriched event based on your property selections.
217+
2. Map your event from your audience to your destination.
218+
- [Braze](/docs/connections/destinations/catalog/braze-cloud-mode-actions/#available-presets), [Iterable](/docs/connections/destinations/catalog/actions-iterable/#available-presets), and [Customer.io](/docs/connections/destinations/catalog/customer-io-actions/#available-presets) are pre-set destinations, so you won't need to map your audience to your destination.
219+
3. Select if you'd like to [send events for current profiles and entities in the audience](#send-events-for-current-profiles-and-entities-in-the-audience).
220+
- This is only available for the **entity added**, **audience entered**, and **audience membership changed** event types.
221+
4. After configuring, click **Save** to enable your Linked Audience.
222+
223+
224+
#### Send events for current profiles and entities in the audience
225+
226+
This box is unchecked by default. If you leave this box unchecked, Segment only sends events for new profiles and entities that match the audience conditions.
227+
228+
However, if you select this checkbox, Segment will also send events for profiles and entities that currently match the audience description.
229+
230+
## Step 3: Confirm the payload in your destination
231+
232+
Linked Audiences sends events to your destination after Segment computes the audience.
233+
234+
To confirm your destination is receiving events, Segment recommends that you log in to your destination and perform one of the following:
235+
- Monitor the event activity
236+
- Search for the `UserID` or `Event Name` (for example, `Entity Added`)
237+
238+
239+

src/engage/images/conditions.png

20.4 KB
Loading
253 KB
Loading

0 commit comments

Comments
 (0)