---
title: Create Audience Based on Event
slug: hol-af/create-audience-based-on-event
description: >-
docTags: 
createdAt: 2024-01-30T22:33:31.221Z
---

In this exercise, you’ll create an Audience by making use of Adobe Experience Platform’s Segment Builder.

## Audience Overview

:::hint{type="info"}
To log into the Adobe Experience Platform, check the [Introduction section](docId:4KW2TjYKPzX94LasrVFLH).
:::

To get an overview of available audiences in Adobe Experience Platform:

1. In the menu on the left side, click on **Audiences**. You will see a dashboard overview with information on a specific audience.
2. Click on **Browse** at the tab bar. You will see an overview of all existing Audiences.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/uLwErfzejJZjZO-whQ6O0_image.png)

## Create Audience for Visitors interested in Men's Category

We want to create a rule that will select all customer profiles based on their behaviour on the site.&#x20;

Create an audience of visitors who have visited men's category pages at least 3 times. This should qualify them as someone who is interested in men's products.

1. Click on **+ Create Audience**. This will open the Create Audience popup.
2. Select **Build Rule** as the create method. This will open the Rule Builder. You will  notice **Events** tab next to *Attributes* tab.&#x20;



::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/kycRS3si1vjr2GYDz0ySl_image.png" size="48" width="702" height="614" position="flex-start" showCaption="false"}

Since XDM is the language that powers the experience business, XDM is also the foundation for the audience builder. All data that is ingested in AEP should be mapped against XDM, and as such, all data becomes part of the same data model regardless of where that data comes from. This gives you a big advantage when building audiences, as from this one Segment builder UI, you can combine data from any origin in the same workflow.&#x20;

Audiences can be sent to solutions like Adobe Target, Adobe Campaign and Adobe Audience Manager for activation.

Let's build an audience for our Interested in Men's category:

1. Select the **Events** tab in the Fields section.
2. In the text search field, type **mainCategory.** You will see a **mainCategory** listed under **BROWSE CLASSES.**
3. Drag the **mainCategory** event type onto the canvas where it says **Start building.**
4. Click on the card titled **Any** to open the Event Rule.
5. Select the operator as equal and type **men.**

*Note : Do the same activity again two times more to make it cater to sequential event.*

Finally, let's save our segment.

1. Enter a **Name** for your segment using the following naming convention , e.g. `OG - Mens Category Interest`.
2. (optional) Enter a **Description**.
3. Select "**Evaluation Method**" as Streaming.
4. Click on **Save and Close**.

You will be taken to the **Segment summary** screen, outlining your segment definition.

**

Your screen should look like:



![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/_nDnO_-EYrngorJU9KkUd_image.png)



*At each step in defining your audience, you can get an estimate of the audience's population:*

- *Click on **Refresh Estimates**.&#x20;*

You will then see an estimation of your current audience size. This is very helpful for a business user, so that they can see the impact of certain attributes on the resulting audience size.

So far, you’ve only used the UI to build your audience, but there’s also a code-option to build a audience.

When building an audience, you’re actually composing a Profile Query Language (PQL) query. To visualise the PQL code,&#x20;

1. Click on the **Code View** switcher in the upper right corner of the Audience builder.
2. Click on **Segment Builder view** to return back to the UI.

:::hint{type="info"}
So far your audience will select all customer profiles who have made at least one flight booking at any time. Now we will restrict this further to target only the frequent flyers.
:::

``

You will be taken to the **Audience summary** screen, outlining your audience definition.

:::hint{type="success"}
You have now successfully created an audience using the Adobe Experience Platform Audience Builder.
:::

