> For the complete documentation index, see [llms.txt](https://documentation.crossengage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.crossengage.io/data-and-engagement-platform/user-segmentation/creating-a-segment.md).

# Creating a Segment

* To create a new User Segment, go to **User Segments** and click on **Create New Segment**.

<figure><img src="/files/xOoI6Yj0hy9Xs9N5tZ4q" alt=""><figcaption><p>Creating a new User Segment</p></figcaption></figure>

* Give your Segment a meaningful name.
* Optionally, you can add a Label to your Segment. Labels can help you organize your Users Segments, especially if you expect to create a large number of them.
* Optionally, you can drag and drop the **Segment Block** from the sidebar on the left in the Segment Area. This allows you to create a [Sub-Segment](/data-and-engagement-platform/user-segmentation/combining-segments.md). Click on the Segment Block, and choose a Segment.
* Drag and Drop the **Condition Blocks** from the sidebar on the left. Click on each Condition Block and choose a Condition.
* Additionally, you can drop a Condition on top of another Condition, to create a **Group**.
  * A group set to **AND** requires a User to meet all Conditions in it, to be added to the Segment.
  * A group set to **OR** requires a User to meet atleast 1 Condition, to be added to the Segment.

<figure><img src="/files/espnDzXjtAHMBZiYaIVE" alt=""><figcaption><p>A Segment of Users, age 18 to 25</p></figcaption></figure>

* Click on **Save Changes**.

You can create Segments using User Attribute Conditions, and Event Conditions. In simple terms, we can say that User Attribute Condition creates Segments using *who a User is*, while the Event Condition creates Segments using *what a User does*.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/user-segmentation/creating-a-segment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
