# Segments

Segments are dynamic groups of contacts that automatically update based on criteria you define. Unlike static lists, segments continuously evaluate your contacts and adjust membership as contact properties change.

**P.S.** There is no limit to how many Segments each Mailtrap account can have.

{% hint style="info" %}
**Understanding Segments vs. Lists**

* **Segments**: Automatically update based on rules and conditions
* **Lists**: Manually managed, static groups

Example: A segment for "Active Users" automatically adds contacts who opened emails in the last 30 days and removes those who haven't.
{% endhint %}

## Why use Segments?

{% tabs %}
{% tab title="Automation" %}
**Self-maintaining groups**

* No manual updates needed
* Always current membership
* Reduces human error
* Saves time on list management
  {% endtab %}

{% tab title="Precision Targeting" %}
**Complex criteria combinations**

* Multiple conditions (AND/OR)
* Behavioral targeting
* Demographic filtering
* Engagement-based grouping
  {% endtab %}

{% tab title="Real-time Updates" %}
**Always accurate**

* Instant membership changes
* Reflects latest data
* No stale information
* Perfect for time-sensitive campaigns
  {% endtab %}

{% tab title="Scalability" %}
**Grows with your database**

* Handles any contact volume
* Consistent rules application
* No performance degradation
* Efficient processing
  {% endtab %}
  {% endtabs %}

## Creating Segments

{% stepper %}
{% step %}
**Navigate to Segments**

Go to **Contacts** → **Segments** in your dashboard.
{% endstep %}

{% step %}
**Click Create Segment**

Select **Create Segment** to start building your dynamic group.
{% endstep %}

{% step %}
**Name Your Segment**

Provide a descriptive name that clearly indicates the segment's purpose.

Example: "High-Value Customers - Last 90 Days"
{% endstep %}

{% step %}
**Define Conditions**

Set up rules using:

* Contact fields
* Engagement metrics
* List membership
* Custom properties

Use AND/OR logic to combine multiple conditions.
{% endstep %}

{% step %}
**Preview Results**

Review the contacts that match your criteria before saving.
{% endstep %}

{% step %}
**Save and Activate**

Save your segment to start using it in campaigns.
{% endstep %}
{% endstepper %}


---

# 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://docs.mailtrap.io/email-marketing/contacts/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.
