# How to Build an Audience with the Agent


{{< customreadfile "/includes/lookout/beta-callout.md" >}}

Audiences start as a sentence. You say who you are after, and the agent finds them.

## Describe your campaign objective

{{< info >}}
Every audience begins in chat. The **Audiences** page lists what you have built, but it has no **New audience** button — ask the agent for one instead.
{{< /info >}}

In a chat, describe who you want to reach and why — the way you would brief a colleague:

> I want to re-engage high-value customers in the US who bought more than twice in the last 90 days but haven't opened an email since June.

You don't need to know which tables or columns hold this data. The agent explores your connected warehouse on your behalf — scanning the available tables, sampling the columns it plans to use, and checking how they join. It determines the best way to express your objective as a set of data rules, based on what your warehouse actually contains and what it has learned about your data through the [Context Hub]({{< ref "lookout/working-with-lookout/context-hub.md" >}}).

**Note**: If something is ambiguous, for example, two tables both look like orders, or "bought" could mean an order placed or an order delivered, the agent asks you before choosing. This human-in-the-loop design means the agent does the data exploration, but you always make the decisions.

{{< image src="images/lookout/fixing-ambiguity.webp" alt="A chat asking for high-value European customers who have not purchased lately, with the agent probing the warehouse and asking which inactivity window to use" >}}

When it has a draft, it saves the audience and shows you a card linking to it. Click **Go to audience** to see the rules it wrote.

{{< image src="images/lookout/audience-draft.webp" alt="Audience draft in Lookout" >}}

## Check what the agent built

Open the audience to see it in two halves. The **definition** is on the left, and the agent stays with you on the right, so you can keep talking about the audience while you look at it.

Note that:

- The definition reads as a set of rules grouped under the customer table the audience is built from. 
- Each rule names a column, an operator, and a value. For example, `country is US`, `order_count is more than 2`.
- Rules inside a group combine with **AND** or **OR**, and you can switch a group between the two by selecting the connector between its rules.

To see the query behind the whole audience, select **Show SQL**.

{{< image src="images/lookout/define-audience-conditions.webp" alt="Define audience conditions" >}}

## Size it

The header carries the audience **Size**. A newly drafted audience shows **Unknown** until you run a count; refresh it to ask your warehouse how many people currently match.

The size goes **Stale** whenever the definition changes, because the number on screen no longer describes the rules on screen. Refresh it again to get a current figure.

{{< image src="images/lookout/audience-definition.webp" alt="Define audience conditions" >}}

{{< info >}}
**Save** stays disabled until the size is fresh. It is a deliberate check — you always know how many people you are about to save before you save them.
{{< /info >}}

## Adjust and save

You can change the audience two ways, and they work together:

- **Ask the agent**: Tell it what is wrong — "drop the email rule", "make it 3 purchases, not 2" — and it rewrites the definition.
- **Edit it yourself**: Change an operator or a value directly in the definition. See [Refine an Audience with AI Insights]({{< ref "lookout/audiences/refine-an-audience.md" >}}) for the controls that help you pick a value.

Your own edits are a draft until you save them. If the agent rewrites the definition while you have unsaved edits open, neither version is thrown away — both are shown and you choose which to keep.

Refresh the size once more, then **Save**.

## Next steps

- [Refine an Audience with AI Insights]({{< ref "lookout/audiences/refine-an-audience.md" >}}): Tune a rule against what is actually in your data
- [Activate an Audience]({{< ref "lookout/audiences/activate-an-audience.md" >}}): Send it to a destination

<br />

