---
title: Creating the audiences
slug: flutter-crm-pillar/creating-the-audiences
description: >-
docTags: 
createdAt: 2024-01-30T22:33:31.221Z
---

In this exercise, you’ll create two audiences by utilizing Adobe Experience Platform’s Audience Builder.&#x20;

## Audience Overview

:::hint{type="info"}
To log into the Adobe Experience Platform, check the [Welcome!](#)**&#x20;&#x20;**&#x73;ection..
:::

To get an overview of the 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** in the tab bar. You will see an overview of all existing Audiences.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/-PFrnxucRaWg7IDZIZKXR_screenshot-2025-05-09-at-050906.png)

## Create an audience for Horse racing regulars who have not bet on upcoming races

We aim to create a rule to include all customers who have bet on horse racing in the last 10 days but have not placed a bet for an upcoming race.  We consider these customers for retargeting with a personalized email containing details of an upcoming race.

:::hint{type="warning"}
If you prefer to skip building this audience, you can use `[Example] Journey 2 - Horse Racing Regular, no bet on upcoming race in your journey` and continue to the next step.
:::

1. Click on **+ Create Audience**. This will open the *Create Audience* popup.
2. Select **Build Rule** as the creation method.

   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-Q7Gp_UdmFIo6TT0RMFgrf-20250508-124756.png)
3. This will open the Rule Builder. You will immediately notice the **Attributes** tab selected beneath **Fields**, as well as the **XDM Individual Profile** selector under **BROWSE ATTRIBUTES.**

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/69dK8dLD2EkpuxmTKJ0UL_image.png)

Let's build an audience for our regular horse racing betting customers:

1. Ensure you are on the **Attributes** tab in the Fields section.
2. In the text search field, type `Horse Racing`. You will see two horse racing attributes.


   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-4B_xD4gk7OR6xaYEeCE84-20250508-161335.png)

:::hint{type="warning"}
If *Horse Racing* is not visible, please enable the option *Show full XDM schema*.

::Image[]{src="https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/LlHSOR3BGWuRglVC620m5_image.png" size="34" width="517" height="376" position="center" showCaption="false"}


:::



1. Drag the **Horse Racing** attribute from the path *..Actions > Last Bet (28 Days) > Horse Racing* onto the canvas where it says **Start Building**.

   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-EPTBQUg-61Kkqym9NKhYA-20250508-162522.png)
2. Change the condition to less than 10 days. For this, select *is less than or equal to* from the dropdown and enter **10** in the field.&#x20;
   *The rule now includes all customers who have placed a bet on horse racing in the last 10 days.*

   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-frMv0A_eq0-8tHDSbkVbX-20250508-163048.png)
3. Now, we need to exclude all the individuals who have a bet on horse racing in the next few days.&#x20;
   1. Clear the text from the search bar.
   2. Type `Open Date Time` in the search field.&#x20;
      *Open Date Time is the attribute where the date and time of the open bets are recorded in the profile.*

      ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-kaGJUWEAaxOjT9kzBdI1j-20250508-164117.png)
   3. Drag **Open Date Time** over the build pane below the Horse Racing rule. This will add an additional condition to the existing rule.

      ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-KCD75Tniu-K_phvTvqu9H-20250508-175148.png)
   4. Update the rule condition to be **In next&#x20;**&#x20;from the dropdown and modify the number of days to **2 Days.**

      ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-mAESrqGI942naQXN8zUC6-20250508-175451.png)
   5.
   6. We need to ensure that the best is for horse racing and not for any other sports. We will add this condition using Sport ID attribute. For this, search for `Sport ID` in the search panel, drag the attribute **Sport ID** below *Open Date Time* and set the condition as **equals** `2`.

      ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-jKuq-fIrkiOyz2iS6Vfm3-20250509-043532.png)
   7. Next, change the condition from include to **Exclude** to make the rule to exclude customers who have an open Horse racing bet in the next two days.

      ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-Usod0OR8xGzR_HqQMrSZM-20250509-043919.png)
   8. Your screen will looks like this now. The UI showcases the exclusion rule with a red border on the left of the container.

      ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-dsYe-WE8ejGw0n-815Htt-20250509-044357.png)

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

- Click on **Refresh Estimates** in the right-hand panel&#x20;

You will then see an estimation of your current audience size. This information is very helpful for a business user, as it allows them to see the impact of certain attributes on the resulting audience size.

:::hint{type="warning"}
**IMPORTANT**: The sandbox you are using for the exercise has been reset before the workshop, so Refresh Estimate may return 0.

For more details on how estimates work, see the [documentation](https://experienceleague.adobe.com/docs/experience-platform/segmentation/tutorials/create-a-segment.html?lang=en#estimate-and-preview-an-audience).
:::

The rules now includes all customers who have placed a horse racing bet in the last 10 days but do not have an active open horse racing bet in the next two days. Let's save the audience now.&#x20;

1. Enter the name as `[name] - Horse Racing Regular, no bet on upcoming race`. Replace \[name] with your name.
2. (Optional) Enter the description as `Has bet on horse racing in the last 10 days, but has not placed a bet for an upcoming race`.
3. Select Evaluation method as **Batch**. Your screen will look like the one below.


   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-fVHfe2xlVwNnscLlvaKpG-20250508-185357.png)
4. Click on the **Publish** button at the top right to publish the audience.&#x20;

Once published, you will be redirected to the audience overview page, which will look like this:

![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-0kOTgXmr1UVftJ0il9Dro-20250508-185539.png)



## Create an audience for people who placed a bet today

We created a batch audience in the previous step that will run overnight every day. From the time a customer qualifies for the audience until the journey is triggered, if the customer has placed a bet, we do not want them to be contacted. To address this, we will create another streaming segment of all customers who placed a horse racing bet today.

:::hint{type="info"}
If you want to skip building this audience, you can use `[Example] Journey 2 - Placed Horse Racing Bet Today` in your journey and can skip this build step.
:::

1. From the Audiences overview page, click on **+ Create Audience**. This will open the *Create Audience* popup.
2. Select **Build Rule** as the create method.

   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-Q7Gp_UdmFIo6TT0RMFgrf-20250508-124756.png)
3. This will open the Rule Builder. You will immediately notice the **Attributes** tab selected underneath **Fields**, as well as the **XDM Individual Profile** selector under **BROWSE ATTRIBUTES.**

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/69dK8dLD2EkpuxmTKJ0UL_image.png)

Let's build an audience for our horse racing betting customers:

1. Ensure you are on the **Attributes** tab in the Fields section.
2. In the text search field, type `Horse Racing`. You will see Horse Racing attributes that matches the search.

   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-4B_xD4gk7OR6xaYEeCE84-20250508-161335.png)
3. Drag **Horse racing** attribute in the path *..Actions > Last Bet (28 days) > Horse racing* onto the canvas where it says **Start Building**.

   ![](https://images.archbee.com/6H6rknlvdVrktAepVnpsA-EPTBQUg-61Kkqym9NKhYA-20250508-162522.png?format=webp&width=1280)
4. Enter the value for Horse racing as **equals** `0` (zero), which makes the condition apply to all the Horse racing bets *today*.

   ![](https://images.archbee.com/6H6rknlvdVrktAepVnpsA-nMS0WE2VGSqfUILyXlWWE-20250508-192152.png?format=webp&width=1280)

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.



Let's publish our audience.

1. Enter a **Name** for your audience using the following naming convention, e.g. `[your name] - Placed Horse Racing Bet Today`.
2. (Optional) Enter a **Description**.
3. Select **Streaming\*** from the **Evaluation Method** dropdown list. You can read more about evaluation methods [here](https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/home#evaluate-segments).
4. Click on **Publish**.

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

![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-adiBDyx9DsDf9VQ-h2ZHY-20250509-035832.png)

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

