Creating a segment
- Navigate to Console > Ranking > User Segments.
- Click New Segment.
- Enter a name and optional description.
- Add one or more conditions (see below).
- Toggle Active on so the segment is evaluated at request time.
- Click Create Segment.
Condition types
Each condition has a type, a field, an operator, and optionally a value.Behavioral
Counts the number of events of a given name for the user.| Field | Meaning |
|---|---|
Event name (e.g. click, purchase) | The event type to count |
click greater_than 10 matches users with more than 10 click events.
Demographic
Looks up a value from the user’s metadata.| Field | Meaning |
|---|---|
Metadata key (e.g. country, device) | The user metadata field to check |
country equals US matches users whose metadata has country: "US".
Computed
Checks derived statistics calculated from the user’s event history.| Field | Meaning |
|---|---|
total_events | Total number of events for the user |
days_since_first | Days since the user’s first recorded event |
total_events greater_than 50 matches users with high engagement.
Item interaction
Checks whether a user has interacted with a specific item and how many times.| Field | Meaning |
|---|---|
Item ID (e.g. movie_123) | The specific item to check interactions for |
| Operator | Label | Meaning |
|---|---|---|
exists | has interacted | User has at least one event involving this item |
greater_than | interactions > | Interaction count exceeds the threshold |
less_than | interactions < | Interaction count is below the threshold |
equals | interactions = | Interaction count matches exactly |
not_equals | interactions != | Interaction count does not match |
movie_123 exists matches users who have watched, clicked, or otherwise interacted with movie_123.
How segments are evaluated
At recommendation time the engine:- Pre-fetches the user’s event counts, metadata, computed stats, and item interaction counts in efficient batch queries.
- Evaluates each active segment’s conditions against this data.
- Returns the list of matching segment IDs to the rules engine.
Using segments in rules
Once a segment exists, you can target a rule to it:- Open the rule editor (see Rules Engine).
- Add a condition and set the field to
segment_id. - The UI shows a dropdown of all available segments instead of a free-text field.
- Select the segment you want to target.
Tips
- Start broad, then narrow. Create a simple segment first, verify it works via the Explainability page, then refine conditions.
- Combine with scheduling. A segment like “users who haven’t watched Series X” paired with a scheduled rule creates a time-bounded promotional campaign.
- Item interaction is powerful. Use it to distinguish between users who have started content vs. those who have never seen it — critical for upsell and completion campaigns.

