---
title: "Segments"
description: "Segments of Invantive Waypoint select the audience of an experience with rules on end users, companies, events and earlier experiences."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-waypoint/console/segments
original: https://documentation.invantive.eu/en/docs/invantive-waypoint/console/segments
updated: 2026-11-30T00:00:00Z
license: https://documentation.invantive.eu/en/
---

A segment selects the end users who see an experience. It is set up once on the tab "Segments" and used by many experiences. An author writes segments.

The tab shows the segments as cards. The top of each card shows the share of all end users in the segment as a group of figures, with the percentage. Below it are the description, the first two conditions of the rule in words, the number of end users, the number of experiences that use it, and when it was counted. The buttons at the right switch between "Cards with Preview", "List with Preview" and "Table".

The cards of the tab, with the share of the end users as a group of figures:
![The tab "Segments" with cards that show the share of end users, the conditions in words and the number of experiences.](/img/2b4a62bc6f2f450e34a61a4d562534ad5d67ead5a1de60f01fb8253a10bdd94d/1280x735.png)

## Rules
A segment is a rule. The rule is a group of conditions:
- "All of:": every condition must hold.
- "any of:": at least one condition must hold.
- "not:": the condition must not hold.

Groups can be nested. A condition is on one of the following subjects:
- A user attribute, such as `segment_codes` or `plan`, as the application or its job writes them through the tenant API.
- A company attribute, such as `employees`.
- An event, with a number of times within a number of days, such as `import.completed` at least once in the last 30 days.
- An experience, completed or not.

The operators are "equals", "differs from", "contains", "is one of", "more than", "less than", "at least", "at most", "exists" and "does not exist". The page counts the end users in the segment.

The page of one segment opens with the same group of figures as its card, larger. Beside it stand the number of end users in the segment, a sample of three of them and the experiences that use it. The name, the description and the rule follow below.

"Rule as JSON" shows the same rule as the tenant API takes it:

```json
{ "all":
  [ { "user_attribute": "segment_codes", "contains": "s.paid" }
  , { "any":
      [ { "user_attribute": "segment_codes", "contains": "r.admin" }
      , { "account_attribute": "employees", "at_least": 50 }
      ]
    }
  , { "event": "import.completed", "at_least": 1, "within_days": 30 }
  , { "not": { "experience": "foreign-currency-modal", "completed": true } }
  ]
}
```

In JSON the operators are `eq`, `ne`, `gt`, `ge`, `lt`, `le`, `in`, `contains`, `exists`, `not_exists`, `at_least`, `at_most`, `within_days` and, for an experience, `completed`. A rule is nested at most a few levels deep; a rule that cannot be read is refused with `itgenwpt219`.

A rule is evaluated by Waypoint in memory when an end user opens a page, on the attributes that were written last. The same grammar is used by the rules "Skip when" and "Also done when" of a step; see [[Invantive Waypoint/Console/Experiences|Experiences]].

## Examples
The segments of the sample application Northwind Orders show the three most common kinds:
- "Administrators": end users who manage the settings, a user attribute.
- "Large companies": companies with at least 50 employees and the plan `enterprise`, two company attributes.
- "Finished the first order tour": end users who completed an experience.

In JSON, as the tenant API takes them:

```json
{ "user_attribute": "role", "eq": "administrator" }
```

```json
{ "all":
  [ { "account_attribute": "employees", "at_least": 50 }
  , { "account_attribute": "plan", "eq": "enterprise" }
  ]
}
```

```json
{ "experience": "first-order-tour", "completed": true }
```

A segment of the last kind is useful as the audience of a follow-up: whoever finished the tour of the first order gets a tooltip on reports a week later. Combine it with `not` to start a tour only for those who did not finish another one.

Each card says when its count was made.

## Delete a Segment
A segment that is the audience of an experience cannot be deleted (`itgenwpt232`). Give those experiences another segment first.

## Release Notes

- [Invantive Cloud](/en/release-notes/products/invantive-cloud)
  - [26.0 to 27.0](/en/release-notes/products/invantive-cloud?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-cloud?step=25.0-to-26.0)

