# Can I segment subscribers by behavior?

> Broadcast segments subscribers on tags, engagement, custom data, and subscription date, using AND/OR rules. Here is what segments can match and where to build them.

Source: https://sendbroadcast.net/how-to/segment-your-subscribers

Yes. Segments are saved rule sets that match subscribers dynamically, so a segment
stays current as people join, engage, or go quiet. You build one once and reuse it
as a broadcast audience or as a sequence enrollment trigger.

## What you can match on

- **Tags** the subscriber carries, or does not carry
- **Engagement** over a window, such as opened or clicked in the last 30 days
- **Custom data** you attached to the subscriber
- **Subscription date** and status

Rules combine with AND/OR, so "tagged `customer` **and** has not opened in 60 days"
is a single segment.

![The segment rule builder combining a tag rule and an engagement rule with ALL, and a live count of matching subscribers](https://sendbroadcast.net/assets/docs/how-to/segment-rule-builder-30b8173f.png)

Rules combine with ALL or ANY, and the count at the foot of the form updates as you build.

## Where to build one

Segments live under Subscribers. [The subscriber documentation](https://sendbroadcast.net/docs/managing-subscribers)
walks through creating one, previewing how many people it matches before you rely
on it, and duplicating an existing segment as a starting point.

![The Segments list showing each segment's description, matching subscriber count and number of rules](https://sendbroadcast.net/assets/docs/how-to/segments-index-00b8e92a.png)

Segments are saved rule sets, so membership keeps up on its own as subscribers engage or go quiet.

## Using a segment

- **As a broadcast audience.** Pick it on the Audience tab when
  [creating a broadcast](https://sendbroadcast.net/docs/broadcast-emails).
- **As a sequence trigger.** Subscribers who match a segment can be enrolled in a
  [sequence](https://sendbroadcast.net/docs/email-sequences) automatically.
- **From code.** The [Segments API](https://sendbroadcast.net/docs/api-segments) creates and manages segments
  programmatically, including the same AND/OR rule structure and engagement windows.

## If this is not enough

Segments match on data Broadcast holds. If you need to segment on something it does
not store yet, attach it as custom data on the subscriber first, through the
[Subscribers API](https://sendbroadcast.net/docs/api-subscribers) or a CSV import, and then segment on that.

---

Still not sure it covers your case? [Email us](mailto:simon@sendbroadcast.net?subject=Segmentation%20question)
with the rule you are trying to express.
