Creating a segment
A user belongs to a segment only when all conditions match (AND logic). If you need OR logic, create separate segments and reference them independently in rules.
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-fetch user data
Pre-fetches the user’s event counts, metadata, computed stats, and item interaction counts in efficient batch queries.
Using segments in rules
Once a segment exists, you can target a rule to it:Open the rule editor
Open the rule editor. See Rules Engine.
Use the segment dropdown
The UI shows a dropdown of all available segments instead of a free-text field.
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.

