Skip to main content

Dynamic customer segments

A segment is a predefined set or combination of filters that enables you to target specific customers.

Unlike tags where customers are added to the group either manually or via API, customers enter and leave a Segment dynamically based on the filter conditions being met (or not). For example, you can create segments based on:

  • the timezone a customer last logged in from
  • the customer not completing any cards in the last month
  • the customer's date of birth being in between two dates

You can create filters based on profile fields (including custom fields and activity fields), events or tags.

tip

Learn more about the Atomic customer data model by reading the customer data model article

Create a Segment

  1. In the Customers screen, click on the + button next to the word Segments on the left side of your screen.
  2. In the 'Create a new segment' window, give the segment a name and an optional description before clicking 'Create'.

The new segment is created and opened in edit mode.

  1. Click 'add filter' to add one or more filters. When adding more than one filter, you can choose whether all these filter conditions need to be true ('match all') or whether meeting one condition ('match any') is sufficient.
  2. All customers that currently meet the segment criteria are shown on the screen, helping you decide whether the filter conditions have been set up correctly.
  3. Once the filters are configured correctly, click 'save changes'.

When customers are updated through API or CSV, customers will automatically enter the new segment if they meet the criteria specified. They will likewise leave a segment if they no longer meet the criteria.

Example segment with multiple filters

create_a_segment.gif

Example: let's say you want to create a segment for all customers that were 'first seen' in the year 2022.

  1. Create a segment (by clicking on the + button), give it a name 'first seen in 2022', and click 'Create'.
  2. Click 'add filter'. In the 'profile field' tab, select 'First seen' (under Activity). Select 'After' as a condition and select '1 January 2022 12:00 AM' as the date and time.
  3. Click 'Apply'. The view shows all customers that were first seen after 1 January 2022.
  4. Click 'add filter'. In the 'profile field' tab, select 'First seen' (under Activity). Now select 'Before' as a condition and select '1 January 2023 12:00 AM' as the date and time.
  5. Click 'Apply'. The view now shows all customers that match all conditions. You can change the 'match all' condition to 'match any' to see how that affects the number of customers.
  6. Click 'save changes'.

Edit a segment

  1. In the Customers area, select the segment you would like to edit. Click on its name to open its detailed view.
  2. Click on the 'Edit segment' button on the right hand side.
  3. You can now make changes to the segment name, description or filters.
  4. Click the 'save changes' button. When the segment is used as a trigger to one or more cards, you will see a warning message such as the one in the screenshot below.

  1. Confirm again by clicking 'Save changes'.

Delete a Segment

  1. In the Customers area, select the segment you would like to delete.
  2. Then click the overflow menu (3 vertical dots) next to 'Edit segment' and select 'Delete segment'.
  3. When the segment is used as a trigger to one or more cards, you will see a warning message showing what cards the segment is linked to.
  4. Confirm by clicking the 'Delete segment' button.

Use a Segment-entered, or Segment-exited event to trigger an Action Flow

With your segment created, you can now have Atomic react when customer enters or exits your segment over time by creating segment triggers for your Action Flows. You can also manually trigger an Action Flow for the customers within a segment from the Customers dashboard.