> For the complete documentation index, see [llms.txt](https://usermanual.ergonode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://usermanual.ergonode.com/products/segments/create-a-new-segment.md). Agents can also search and read this documentation through its [MCP server](https://usermanual.ergonode.com/~gitbook/mcp).

# Create a new segment

Create a segment, a list of products that meet conditions, and see how the segments list shows code, name, status and product count.

To create a new segment click on *New segment* in the upper right corner. If there are no segments yet, you can also click on *New segment* in the middle of the page.

The list shows each segment's *Segment code*, *Name*, *Description*, *Status* and, in *Products*, the number of products that meet its conditions. To find a segment, type in the *Search...* field under a column title. To open a segment, click on the ***edit (pen)*** icon at the end of its row; to delete it, click on the ***bin icon***. To sort the list, point at a column title, open its ***three dots*** menu and choose ***Sort ascending*** or ***Sort descending***. Search, sorting and moving columns work as described in [Table view (Grid view)](https://usermanual.ergonode.com/products/catalog/system-views/table-view-grid-view).

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FpDaxxk4PItmc9jXVuJDH%2Fimage.png?alt=media&#x26;token=f68ef1f9-bb07-49c1-aa32-671715eaa354" alt=""><figcaption></figcaption></figure>

The *Status* column shows whether the segment's list of products is up to date:

| Status       | Description                                                             | Additional information                                                                                                               |
| ------------ | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| *processing* | The system is working out which products meet the segment's conditions. | Shown right after you create a segment or change its conditions. The number in *Products* may change while the segment is processed. |
| *calculated* | The list of products is up to date.                                     | *Products* shows the final number of products in the segment.                                                                        |

Now type a code for this segment in the *Segment code* field. It must be unique, so choose one that will allow you to identify its content.

{% hint style="info" %}
Once saved, the segment code cannot be changed, so if you are in need of change, delete it and create a new one.
{% endhint %}

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2F6M9Hec1KBaqguQV6DF2S%2Fimage.png?alt=media&#x26;token=20c52e14-9153-420c-89f6-eb6b0e1113fd" alt="" width="563"><figcaption></figcaption></figure>

The buttons show up once you have typed a code: click on ***Create*** to save a segment or ***Create & Edit*** to open it in edit mode. In edit mode, you will have access to three tabs: [General](https://usermanual.ergonode.com/products/segments/general), [Translations](https://usermanual.ergonode.com/products/segments/translations), and [Conditions](https://usermanual.ergonode.com/products/segments/conditions). The page title shows the segment name with its code below it; the green arrow button next to it takes you back to the list. To delete the segment, click on ***Remove segment*** in the upper right corner and confirm with ***Delete***.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://usermanual.ergonode.com/products/segments/create-a-new-segment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
