EzFlowEzFlow Docs
Marketing

Segments

Dynamic contact groups defined by filter rules evaluated at send time.

A Segment is a named group of contacts used as a Broadcast audience or as a logical grouping for reporting. Segments come in two types: static and dynamic.

Static segments

A static segment works like a List: contacts are members only because you explicitly added them, and they stay members until you remove them. Static is the default type when you create a new segment.

Manage static segment membership from the Workflow layer using:

You can also manage membership from the segment's detail page in the UI.

Dynamic segments

A dynamic segment defines its membership through filter criteria stored in the segment record. EzFlow evaluates the criteria at query time — for example, when resolving the audience for a Broadcast — so the membership stays current automatically as contact data changes.

Criteria structure

A dynamic segment's criteria has:

  • OperatorAND or OR. Controls how multiple conditions are combined.
  • Conditions — one or more property conditions, each specifying:
    • propertyName — a standard contact field (email, firstName, lastName, phone) or a path into custom properties (e.g. customProperties.company).
    • operator — one of: =, !=, contains, starts_with, ends_with, is_null, is_not_null.
    • value — the value to compare against (not used with is_null / is_not_null).

You cannot manually add or remove contacts from a dynamic segment. Membership is read-only from the segment management UI; it is derived entirely from the criteria.

Example criteria

A segment targeting contacts whose custom property plan equals "enterprise" with AND operator and a single condition:

{
  "operator": "AND",
  "conditions": [
    {
      "type": "PROPERTY",
      "propertyName": "customProperties.plan",
      "operator": "=",
      "value": "enterprise"
    }
  ]
}

Segments vs. Lists

ListSegment
MembershipExplicitly managedStatic: explicit; Dynamic: criteria-driven
Broadcast useYesYes
Workflow nodesADD_TO_LIST / REMOVE_FROM_LISTADD_TO_SEGMENT / REMOVE_FROM_SEGMENT
Dynamic filterNoYes (DYNAMIC type)

On this page