# Creating Segments

## Adding a Segment

{% hint style="success" %}
**To add a Segment:**

1. Go to **Segments** under the **Members** module
2. Click **ADD SEGMENT** in the top right cornet
3. Choose whether it's **Dynamic** or **Static segment**

![](https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2F8VfkhCzHeTTGEa4mVLk9%2Fimage.png?alt=media\&token=1d050b3f-cfc5-4b26-aa7f-d01547f22896)

**Dynamic segment** - Segment automatically recalculates based on applied conditions.

**Static segment** - Segment based on an imported CSV file with a list of members

4. Fill in all required fields
5. Click **ADD CONDITION**
6. Activate **Segment** (switch status to **Active**)
7. Click **ADD SEGMENT**
   {% endhint %}

{% hint style="info" %}
**Multiple conditions (AND vs OR)**

**+ 'AND' Condition -** the member ends up in the segment once they meet all the conditions (Member is added to the segment when fulfilling Condition-1 **AND** Condition-2).![](https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2FlTEwhpPRx1LMIEZzRf0k%2Fimage.png?alt=media\&token=f4e62a60-786a-497f-b1ed-711843bbde19)

**+ 'OR' Condition -** the member ends up in the segment once they meet one of the conditions (Member is added to the segment when fulfilling Condition-1 **OR** Condition-2).![](https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2FZle5PgfI2pO0YyxLWZSb%2Fimage.png?alt=media\&token=43f6daf5-20be-4c33-bad1-f69e998e3dc4)

{% endhint %}

***

### Importing Custom Member List via CSV file to Static segment

{% hint style="success" %}
**To import your custom member list via CSV file, you need to:**

1. Create a Static segment (steps under Adding a Segment)
2. Click **IMPORT .CSV (limit of customers is 500k)**

![](https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2F8saNDm56frH8AKw8nhWO%2Fimage.png?alt=media\&token=184c27ea-f0b0-4374-8f93-f4e94b4ae869)

4. Select the **Identification factor** that you will use in the file.&#x20;

![](https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2FPdCYCCDhbNtaDX0ZOsr6%2Fimage.png?alt=media\&token=ddf14d52-4865-4ad8-b9aa-0d2407addf09)

5. Import the file with the identification factor you selected in the previous step.

After uploading the file, you will see the import status under the **Imports/Exports** in the Admin Panel. After around 10 minutes, your segment should be updated with new records.&#x20;
{% endhint %}

{% hint style="warning" %}

* Please note that if you want to update the current list, the new file will replace the existing data. Therefore, to retain the initial member list for this segment, you need to include them in the new file as well.
* Before uploading the file, remember to Activate the segment beforehand.
  {% endhint %}


---

# Agent Instructions: 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://help.openloyalty.io/main-features/members/segments/creating-segments.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.
