All articles › Segments & Audiences

Building Segments with the Rule Builder

Create and edit segments with the rule builder: fields, conditions, AND/OR logic, validation and plan locks.

A segment is a group of contacts that matches rules you define. Segments update automatically, so a contact joins or leaves as their data changes. The same rule builder is used when you create a segment on the Segments page and when you edit one on its detail page.

Adding rules

  1. Give the segment a name.
  2. Add a rule. Choose a field, then a condition, then enter the value.
  3. Add more rules as needed. Use the duplicate button to copy a rule and the remove button to delete one.
  4. Click Preview to see how many contacts match, then save.

A segment can have up to 10 rules. Pressing Enter in a value box runs the preview, and pressing Enter in the name box saves.

Match all or any

Choose AND to match contacts who meet every rule, or OR to match contacts who meet at least one.

Fields

The field list is grouped so you can find things quickly:

  • Profile: email, first and last name, status, email frequency, engagement score, lead score, days since subscribed and days since last seen.
  • Tags and lists: has or does not have a tag, in or not in a list (lists are entered by list ID).
  • Email engagement: opened, did not open, clicked, did not click, and last email activity, each within a number of days.
  • Web activity: visited a page, triggered an event, or purchased on your site (needs site tracking).
  • Commerce: orders, total spent, days since last order, lifecycle stage, RFM segment, purchased product, SKU, category or tag, repeat and first-time buyers, and abandoned carts.
  • Custom fields: every custom field of your organization.

Opened and activity rules ignore automatic opens by default. See Apple Mail Privacy Protection and open rates.

Validation

Each rule checks itself as you type. A rule with a problem, such as an empty value, a day count that is not a whole number or a repeat buyer count below 2, shows a message under the rule. Save and Preview are blocked until all rules are valid, and Save also needs a name. Warnings, for example for a rule saved in an older format, do not block saving.

For some fields the condition is fixed and shown as text instead of a menu: has tag, in list, the email opened and clicked rules, and abandoned cart.

Plan locks and limits

  • The Free plan allows 2 segments and Starter allows 5. Growth and above have no limit.
  • Email engagement fields need the Growth plan; commerce fields are available on every plan. Web activity fields need the Pro plan.
  • A field you cannot use on your plan is shown in the list with the plan name and cannot be chosen. A rule you already have stays enabled, with a hint, so existing segments are not broken.

Unsaved changes

If you close the dialog with Cancel, the close button, Escape or by clicking outside, or you leave the page, Mailnaptic asks you to confirm when something changed. Your browser also warns before you close the tab with unsaved changes.

Tip:

Preview before you save. The count tells you quickly whether a rule is too broad or too narrow.

Was this helpful?

Copy for AI (Markdown)

Related articles

Mailnaptic · Help center