> For the complete documentation index, see [llms.txt](https://docs.adobesandbox.com/comprehensive-technical-tutorial-archive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adobesandbox.com/comprehensive-technical-tutorial-archive/module13/ex3.md).

# 13.3 Create a segment

## 13.3.1 Introduction

You'll create a simple segment:

* **Interest in Equipment** for which customer profiles will qualify when they visit the **Equipement** page of the Luma demo website.

### Good to know

Real-time CDP will trigger an activation to a destination when you qualify for a segment that is part of that destination's activation list. When that is the case, the segment qualification payload that will be send to that destination will contain **all the segments for which your profile qualifies**.

The goal of this module is to show that your Customer Profile's segment qualification is sent to **your** event hub destination in real-time.

### Segment Status

A segment qualification in Adobe Experience Platform always has a **status**-property and can be one of the following:

* **realized**: this indicates a new segment qualification
* **existing**: this indicates an existing segment qualification
* **exited**: this indicates that the profile does no longer qualify for the segment

## 13.3.2 Build the segment

{% hint style="info" %}
Building a segment is explained in detail in [Module 6](https://github.com/AdobePartnerTechnicalServices/aep-quickstart-guide/blob/main/module6/real-time-cdp-build-a-segment-take-action.md).
{% endhint %}

### Create Segment

Log in to Adobe Experience Platform by going to this URL: <https://experience.adobe.com/platform>.

After logging in, you'll land on the homepage of Adobe Experience Platform.

![Data Ingestion](/files/dxiZqiEO4HRecOrK4vsh)

Before you continue, you need to select a **sandbox**. The sandbox to select is named `--aepSandboxId--`. You can do this by clicking the text **\[Production Prod]** in the blue line on top of your screen. After selecting the appropriate sandbox, you'll see the screen change and now you're in your dedicated sandbox.

![Data Ingestion](/files/5cqkQVhdDVVUkS5PGQCI)

Go to **Segments**. Click the **+ Create segment** button.

![Data Ingestion](/files/qtEFjEXU1KKM8UWqAW6t)

Name your segment `--demoProfileLdap-- - Interest in Equipment` and add the page name experience event:

Click on **Events**, and drag and drop **XDM ExperienceEvent > Web > Web page details > Name**. Enter **equipment** as the value:

![4-05-create-ee-2.png](/files/8ReSHksnrLeFcbY5PfuZ)

Drag and drop **XDM ExperienceEvent > `--aepTenantIdSchema--` > demoEnvironment > brandName**. Enter `--demoProfileLdap--` as the value, set the comparison parameter to **contains** and click **Save**:

![4-05-create-ee-2-brand.png](/files/pF6kGikPzKAuafkXKR5I)

### PQL Definition

The PQL of your segment looks like:

```
CHAIN(xEvent, timestamp, [C0: WHAT(web.webPageDetails.name.equals("equipment", false) and _experienceplatform.demoEnvironment.brandName.contains("--demoProfileLdap--", false))])
```
