---
title: Segments
description: Segments - MailPirate Docs
---

# Segments

Segments are living audiences built from rules. Membership updates when you recompute - so “quiet buyers” and “champions” stay tied to real behavior instead of a CSV that went stale last month.

## When to use a segment

Use a segment when people should enter or leave automatically based on data, for example:

- Subscribed customers who ordered in the last 30 days
- RFM **at risk** or **cannot lose** buyers
- People who viewed a product but did not purchase
- Guests vs store accounts

Use a [list](/docs/lists) when membership is intentional (newsletter topic, manual VIP group, import).

## Create a segment

1. Go to **Segments → Create segment**.
2. Enter **Name** and optional **Description**.
3. Under **Who is in this segment?**, build rules with the visual builder.
4. Optionally inspect **Advanced: rules JSON** if you need to debug the definition.
5. Save.

## Building rules

### Match mode

- **All** - every rule must match (AND)
- **Any** - at least one rule must match (OR)

### Presets

Start from presets when they fit, then refine:

- Subscribed only
- Never ordered / has ordered
- Quiet buyers
- Recent buyers
- RFM champions / at risk
- Women / Men (gender)
- Other ready-made checks available in the builder

Gender can come from your shop data. When it is missing, MailPirate can estimate it from the first name and country so Women / Men audiences still work.

### Rule fields you can combine

Depending on your data, rules can use:

- Profile status and gender (including automatic detection from name and country when available)
- Store account vs guest checkout
- List membership
- Order history (count, recency, totals, country)
- Products (SKU, category, tag)
- RFM segment names and R/F/M score thresholds
- Predictive leaves: churn risk / risk %, predicted LTV, historic CLV, next order within N days
- Replenishment: any SKU expected next order within N days
- Tracked events: **has** / **has not**, optionally within N days (for example Viewed Product in the last 7 days)
- Email engagement: engaged / clicked / opened (human or any) on any mail, a specific campaign, or a flow email - optionally within N days. Prefer **engaged** or **clicked** so privacy prefetch opens do not inflate audiences.

Stack rules the way you would brief a merchandiser: clear, testable, and tied to an outcome.

## Refresh membership

Membership is **cached**.

1. Save your rules.
2. Click **Recompute members**.
3. Confirm the member count looks right before a large campaign.

Do this after big syncs, rule edits, or before a major send. Campaign audiences and segment counts use the cached membership until you recompute.

## Performance

On the segment page you can see recent performance for sends to **current** members (roughly the last 30 days), including:

- Sends
- Open rate
- Click rate
- Bounce rate
- Revenue and orders

This answers “is this audience worth scaling?” - not “how did every past member ever do.”

## Using segments elsewhere

- **Campaigns** - Audience type = Segment
- **Flows** - Daily segment check trigger, or conditions that mirror segment logic
- **Autopilot re-engage** - prefers RFM at-risk / cannot-lose style audiences when scores exist

## Related

- [Lists](/docs/lists)
- [Profiles & consent](/docs/profiles)
- [Intelligence](/docs/intelligence) for RFM and predictive fields you can target

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://mailpirate.com/#organization","name":"MailPirate","legalName":"Jure Rožman s.p.","url":"https://mailpirate.com/","logo":{"@type":"ImageObject","@id":"https://mailpirate.com/#logo","url":"https://mailpirate.com/img/logo/mailpirate-logo.svg","contentUrl":"https://mailpirate.com/img/logo/mailpirate-logo.svg"},"image":{"@id":"https://mailpirate.com/#logo"},"description":"MailPirate is email marketing built for ecommerce stores: campaigns, automated journeys, living audiences, store sync, and deliverability control without managing mail servers yourself.","slogan":"Email that sells more for your store.","foundingDate":"2019-01-29","founder":{"@id":"https://mailpirate.com/#person-jure-rozman"},"address":{"@type":"PostalAddress","streetAddress":"Šinkov Turn 24A","addressLocality":"Vodice","postalCode":"1217","addressCountry":"SI"},"email":"info@mailpirate.com","telephone":"+38640504630","vatID":"SI72369213","identifier":[{"@type":"PropertyValue","propertyID":"AJPES registration number","value":"6881475000"}],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","email":"info@mailpirate.com","telephone":"+38640504630","availableLanguage":["English"]},"knowsAbout":[{"@type":"Thing","name":"Email marketing"},{"@type":"Thing","name":"Ecommerce automation"},{"@type":"Thing","name":"Email deliverability"}],"areaServed":["SI","EU","GB","US"],"sameAs":["https://www.linkedin.com/company/mailpirate"]},{"@type":"Person","@id":"https://mailpirate.com/#person-jure-rozman","name":"Jure Rožman","jobTitle":"Founder","worksFor":{"@id":"https://mailpirate.com/#organization"},"description":"Founder of MailPirate. Builds ecommerce email tooling focused on fair billing, automation, and deliverability.","url":"https://mailpirate.com/about-us","sameAs":["https://www.linkedin.com/in/jurerozman/"]},{"@type":"WebSite","@id":"https://mailpirate.com/#website","url":"https://mailpirate.com/","name":"MailPirate","inLanguage":"en","publisher":{"@id":"https://mailpirate.com/#organization"},"about":{"@id":"https://mailpirate.com/#software"}},{"@type":"SoftwareApplication","@id":"https://mailpirate.com/#software","name":"MailPirate","applicationCategory":"BusinessApplication","applicationSubCategory":"Email marketing","operatingSystem":"Web","url":"https://mailpirate.com/","description":"Ecommerce email platform for Shopify and WooCommerce stores: campaigns, flows, segments, intelligence, and dedicated sending with deliverability controls.","publisher":{"@id":"https://mailpirate.com/#organization"},"featureList":["Campaigns and reporting","Automated flows (welcome, cart recovery, win-back)","Segments and lists","Store connectors (Shopify, WooCommerce)","Intelligence (RFM, affinity, send-time, replenishment)","Deliverability scorecard and dedicated sending","Marketing API and embed forms"]}]}
```
