Creating Dynamic Segment

A dynamic segment is created based on dynamic conditions, which you can choose depending on your contact base. The segment cards can change based on whether the contact matches the chosen conditions. This feature can apply to birthday emails, reactivation emails, split between customers and subscribers, etc.

📘

Note

The Search contacts API method has no parameter to filter by contact creation date, even though createdDate is returned in the response. To isolate contacts created before or after a given date, use BigQuery export instead — the contacts table includes both contactId and createdDate, so you can query for the contacts you need there and then act on them (for example, delete via the API) using the returned IDs.

How Relative Date Ranges Are Calculated

Relative date conditions are calculated from the moment when the segment is recalculated, not from the start of the calendar day. One relative “day” is a rolling 24-hour interval.

For example, during next 10 days starts at the recalculation time and extends 10 × 24 hours into the future. A preceding day is likewise the previous 24 hours. Because the boundary moves with each recalculation, a relative range can return a different count from a range entered as fixed calendar dates.

Adding a Dynamic Segment

  1. Go to Contacts → Segments and click Add segment.
Contact segments page with the Segments tab active and the Add segment button highlighted
  1. Select the Dynamic segment type and click Create.
Segment types screen with List and Dynamic options, the Dynamic segment's Create button highlighted
  1. Fill in general properties:
  • Name (required) — displayed in the general segment list.
  • Purpose (optional) — specify how the campaigns will be used. For example, for triggered emails, regular promo campaigns, etc.
  • Tags (optional) — select from the list or add a new one for quick filtering and segment search.
  1. Click Next.
Add dynamic segment General Properties form with Name and Purpose fields and the Next button highlighted
  1. Add condition.

For example, you need to select all subscribers who have read emails this month. 

  1. Go to the Channels tab → Contact activity by Email → Last opened → During → This month.
Condition builder columns showing Contact activity by Email, Last opened, during, and this month selected
  1. To see what contacts have been added, click on Preview contacts in the segment.
Add dynamic segment Conditions tab with a Last opened during this month condition and the Preview contacts in the segment button highlighted
  1. To see how many contacts are in the segment, click on Recalculate contacts.
Add dynamic segment Conditions tab with the Recalculate contacts button highlighted
  1. If you need to create a custom condition for creating a segment, scroll down the list of conditions and click Set up segmentation.
Condition builder columns with the Set up segmentation button highlighted at the bottom
  1. In the Advanced segmentation window, select the following type of settings:
    • Contact field management

    • Segmentation by custom events

    • Segmentation by events for eCommerce retailers

Segmentation settings window listing Contact field management, Segmentation by custom events, and Segmentation by events for eCommerce retailers options
  1. You can copy a card to avoid having to recreate its conditions manually. By default, the copied card is added with an OR operator, which you can manually change to AND.
Segment card with the duplicate icon highlighted, showing a copied card B added below with an OR operator
  1. When all the necessary conditions are specified, click the Done button. The new segment will be available in the general list of groups.
📘

Note

To segment by brand and last purchase date, store this data in contact custom fields and update them on every purchase — this way the group condition reads directly from the contact's fields rather than from event history.

Add dynamic segment Conditions tab with the Done button highlighted

Automatic Dynamic Segment Creation

📘

Note

This feature is available with the Professional plan and an active CDP subscription .

After you activate the subscription, the system automatically creates 20 preconfigured dynamic segments for recommendation triggers (such as Abandoned search, Wishlist reminder, New products, etc.). You can use these segments immediately in campaigns and workflows.

Creation details:

  • the system creates the segments once during the first subscription activation for each organization;
  • the system generates segment names in the organization’s language set in the account;
  • when new recommendation triggers become available, the system automatically creates the corresponding segments.

Dynamic Segment Conditions

Let's take a closer look at how to create a segment with multiple conditions.

1. Card conditions

You can create an unlimited number of cards, each having unlimited conditions.

Conditions inside the cards

When adding conditions to a card, the segment will include only those contacts that match the specified conditions.

For example, you add two conditions:

  • Last opened this year;

  • Average order check greater than $1,000.
Condition builder showing Orders count selected, greater than operator, and value 1000 entered

The segment will include only those contacts who have opened emails over the past year, with an average order value of more than $1,000. The card will look like this:

Segment condition card combining Last opened during this year and Orders count greater than 1000 conditions with AND

To add the contacts that match any condition, choose the corresponding option in the header of the card:

Card header dropdown menu with the Contact matches any of the conditions - OR option highlighted

For example, you add the following conditions:

  • Last clicked week ago;
  • Last opened week ago

The segment will include the contacts that either clicked on links in the email or read an email a week ago.

Segment condition card set to Contact matches any of the conditions - OR, showing Last clicked and Last opened conditions

Excluding Conditions from a Card

Any of these conditions can be made negative. Click on to exclude any condition from the card.

Segment condition card with the not-equal icon highlighted next to an excluded Average order value condition

For example, you want to add to the card all the contacts that have opened emails over this month, with an average order value less than $1,000. Exclude the last condition, and the segment will include only the contacts that have opened emails during the last month and their average order value is more than $1,000.

Excluding the Entire Card

You can exclude the whole card. Such a card will be highlighted red and will have a not prefix in the segment equation.

Segment equation showing not A, with the excluded card highlighted in red

Excluding a Condition from the Segment

With many cards, when you need to exclude a particular condition from the entire segment, use the right column. Contacts that match the conditions from the right column will not be included in the segment.

Segment equation showing A minus B, with the Exclude card B highlighted

You can exclude several cards with different conditions.

📘

Note

For conditions with a valid/not valid state (for example, a push token condition), "not valid" covers all contacts that don't meet the "valid" criteria — this includes contacts with no token at all and contacts whose token exists but is older than the validity window (for example, expired or not refreshed within the last month). If you need to separate "no token" from "expired token," build two condition cards instead of relying on a single "not valid" condition.

2. Equation Operators AND/OR

For convenience of operation, you can group conditions in several cards using the following operators:

AND — the segment will include all the contacts that match the conditions of all cards.

OR — the segment will include the contacts that match the conditions of any card.

Segment equation showing A or B, with the OR/AND operator dropdown between the two cards highlighted

3. Segment Equation

With many cards, the segment equation is displayed in the following formula: (A or B) – C.

Segment equation showing (A or B) minus C above three condition cards labeled A, B, and C
  • The equation shows in what order the cards are processed.
  • Brackets are put automatically to unite the cards based on the processing priorities.
  • The letters in the equation match the cards. A cursor on the letter automatically highlights the corresponding card.
Animated demonstration of hovering over letters in the segment equation to highlight the corresponding condition card
🚧

Important

By default, the contacts that are processed first are united by AND operator. In the equation, such cards are enclosed in brackets.

Segment equation showing (A and B) or C, with cards A and B grouped by AND and combined with card C using OR

For example, the equation (A and B) or C will be processed as following:

  1. First, the system will find the contacts that match the conditions in A and B cards.
  2. Next, it will add the contacts that match the conditions in C card.

Useful Features

For more convenience, all the features are now available right in the segment interface after you’ve created a card:

1. Export a dynamic segment to the list

You can export all the contact details as a static segment to the existing list. This is relevant for triggers so that a campaign for a segment can be launched instantly.

Dynamic segment page with the Export dropdown open showing To the existing lists and To the new list options

2. Splitting a Segment

This might be useful for A/B testing.

Dynamic segment page with the Split segment button highlighted
🚧

Important

You can split a segment only if it includes more than 10 contacts. We recommend conducting split tests with more than 2,000 active contacts to avoid inaccurate results.

3. Tutorial

For any information on the segment creation, see Tutorial at the top of the page.

Hints are divided into 5 categories:

  • Conditions inside cards
  • Formula for contacts calculating
  • Operator NOT
  • AND, OR between cards
  • Excluding contacts
Dynamic segment page with the Tutorial button highlighted

4. Searching Events and Parameters

The search logic of events and parameters allows you to quickly and easily set the conditions for forming a dynamic segment.

The search works both in the first column (names of event types and contact parameters) and in the second (names of event parameters and additional contact fields).

If both the event and its parameter match the search query, you will see the corresponding events in the first column, and in the second column, not only the parameters that match the search query but also all the parameters of the events from the first column.

Condition builder search results for workout highlighting matching fields in the first column and related parameters in the second column

If you need to find all events that contain a certain parameter, enter its name in the search field. The first column will display the corresponding events, and the second column will display a list of event parameters indicating which event contains the parameter from the search query. 

Condition builder search results for appversion showing matching events in the first column and their appVersion parameter highlighted in the second column

When you hover over a parameter in the first column, the name of the event type containing this parameter is highlighted.

Condition builder with account_created hovered in the first column, highlighting its related entries in the second column

Click on a specific event's name to see a list of all parameters. The parameter that matches the search query is highlighted.

Condition builder showing all parameters for the account_created event with appVersion highlighted as the search match


Did this page help you?