What you can segment on
Spotzee rules operate over two groups:- User attributes: any standard or custom field on a user, including nested
data.*fields (data.plan,data.lifetime_value, etc.). - Events: any tracked event, optionally combined with a frequency window.
data.* if you need it as a filter input.
Operators by field type
Each rule node has a typed comparison. Operators are scoped to the rule type.shopify_purchase rules are available when the Shopify integration is connected on Professional and Enterprise plans.
Event frequency
Event rules express “happened how often, when” via an optionalfrequency block:
count: how many times the event occurred, with a comparison operator (=,<,<=,>,>=).period: the window the count applies to. Either a rolling window (unit: hour | minute | day | week | month | year,value: N) or a fixed range (start_date, optionalend_date).
Build a segment
1
Pick a base
Start from all users or from another segment.
2
Add filters
Combine conditions with AND / OR. Group conditions with parentheses for complex logic.
3
Preview
The segment editor shows live count and a sample of matched users.
4
Save and use
Reference the segment from any journey entrance, campaign audience, or send step.
Common patterns
- Engaged in last 30 days:
email_openedoremail_clickedevent with frequencycount >= 1, rolling 30-day window. - At-risk:
email_openedlast occurrence > 60 days ago ANDdata.lifetime_value > 500. - High-intent:
page_viewedwithdata.path = "/pricing", frequencycount >= 1over rolling 7 days, ANDdata.is_customer = false. - Renewal due (financial-services attribute):
data.policy_renewal_datewithin the next 30 days.
Reference
Segments are exposed as dynamic Lists in the API:- Create / list / update / delete: see Main API → Lists
- Programmatic walkthrough: see Build a segment via the API
Next
Build a journey
Use a segment as the audience.
Send events from your backend
Get behavioural data into Spotzee so segments can react to it.