Segments
This page shows you how to save a group of people as a segment, and where to use it.
A segment is a saved group, such as “Gold members” or “Ordered this month but not this week”. It updates by itself as people change. You can use it to choose who gets a message, who sees a messenger card, and who you look at on Contacts.
1. Make a segment
Section titled “1. Make a segment”Go to Segments.


-
Press New segment. You can also press New at the top of any page and choose Segment.
-
Name it, such as “Weekend regulars”.
-
Press + Condition and pick what to test. You can type to search, or choose a kind:
Kind Example Profile details membership_tierisGold.points_balanceis more than 1000. Signed up fewer than 30 days ago.Things they did Did order_placedat least 2 times in the last 30 days. Last didapp_openedmore than 14 days ago.Tags Has the tag “VIP”. Segments Is in “Gold members”. Subscriptions Is subscribed to “New arrivals” by email. -
Add more conditions the same way.
-
Write a Description, so the next person knows what it is for.
-
Press Create segment.


As you work, the panel beside the conditions counts how many people match now. A few who match lists some of them.
2. Match all, or any
Section titled “2. Match all, or any”At the top it says Contacts who match all of these. That means a person must match every condition. Change all to any if matching one condition is enough.
To mix the two, press + Group. A group has its own all or any. For example: Gold, and a group of (ordered this week, or opened the app today).
3. Test the details of an event
Section titled “3. Test the details of an event”An event often carries details. For example, order_placed may carry the total and the store, and link_opened carries the link.
- Add a Things they did condition and choose the event.
- Under Count only the times when, press + Only when a detail of it….
- Pick the detail, then how to test it.
For words, you can test whether a detail is, is not, contains or starts with some text. For numbers, you can test is more than, is less than, and so on.
starts with is handy for addresses and codes. For example: link_opened where link starts with /offers/. That counts every offer link, and nothing else.
4. Use it
Section titled “4. Use it”- Messages: on the Who step, choose A segment. A message sent Whenever someone starts to match reaches each person as they join the segment.
- Workflows: a workflow can start when someone is Joining a segment or Leaving a segment. A check step can ask whether someone is in one.
- Messenger: on Settings › your app › Messenger, a card can be Shown to one segment only.
- Contacts: press Filter. Your segments come first, then conditions of your own.


- The attributes and events you can use are the ones on Settings › your app › Data. Give your attributes clear labels there. See Data.
- “Today” and “this morning” follow each person’s own time zone. When that’s not known, they follow your app’s time zone.
- Test a new segment on Contacts first. Filter by it, and open a few people to check they belong.