> ## Documentation Index
> Fetch the complete documentation index at: https://docs.botbrains.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Audiences

> Segment and target specific user groups for personalized AI experiences

Audiences let you segment users so you can deliver different [guidance](/concepts/guidance), [knowledge](/concepts/knowledge), and tool access to different groups. You define an audience once, then attach it to guidance rules or data providers. Conversations that don't match any audience filter receive guidance set to "Everyone."

## Creating Audiences

1. Navigate to **Settings → Audiences**
2. Click **Create audience**
3. Name it descriptively (for example, "Enterprise EU Customers")
4. Build segmentation rules using the query builder
5. Save

Combine multiple conditions with AND/OR logic. The root-level group always uses AND logic.

<img src="https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=32a88887b41aeb71c1328dabba3db4c1" alt="Audience creation form with query builder showing AND/OR logic for segmenting users" data-generation-prompt="Navigate to Settings > Audiences on platform.botbrains.io. If an audience exists, click on it to expand it; otherwise click Create Audience. Show the expanded audience with its query builder rules visible (conditions, AND/OR logic, field selectors). Use 1920x1080 viewport, collapse sidebar." data-og-width="1920" width="1920" data-og-height="1080" height="1080" data-path="images/audiences/audience-query-builder.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?w=280&fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=607d7e7a8449c606268a412a3ed2a734 280w, https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?w=560&fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=12ea7a0c9ea41fa6ea4d2a9bc70d9cec 560w, https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?w=840&fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=ab82d751736e779d4326b2d9b867a735 840w, https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?w=1100&fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=3356409d8ed619371c72cc3714c482b3 1100w, https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?w=1650&fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=7a0d05f42c491f6168fe9e0366ea7cee 1650w, https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-query-builder.png?w=2500&fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=fb3930f58f24cfaaddff21dbabf01ef4 2500w" />

## Available Fields

### User Attributes

| Field        | Examples                                       |
| ------------ | ---------------------------------------------- |
| Identity     | User ID, email, phone, name, external ID       |
| Platform IDs | Zendesk ID, Slack ID, WhatsApp ID              |
| Metadata     | Timezone, locales, external attributes (JSON)  |
| Labels       | User-assigned labels                           |
| Activity     | Last seen date, account creation date          |
| Verification | Email signed, phone signed, external ID signed |

### Channel Properties

| Field        | Examples                                           |
| ------------ | -------------------------------------------------- |
| Channel type | Browser, WhatsApp, Zendesk, Slack, API, Salesforce |
| Zendesk      | Subdomain, group ID, brand ID, private mode status |
| Slack        | Team ID, team name                                 |
| WhatsApp     | Phone number                                       |
| Browser      | URL, user agent                                    |

### Conversation Context

| Field       | Examples                                            |
| ----------- | --------------------------------------------------- |
| Identifiers | Conversation ID, external ID                        |
| Metrics     | Message count, conversation length                  |
| Timestamps  | Created date, updated date, first/last message time |
| Metadata    | Integration type, tags, labels                      |

### Time Conditions

| Field      | Examples                                     |
| ---------- | -------------------------------------------- |
| Date/Time  | Current date, current datetime               |
| Components | Hour, day of week, day of month, month, year |
| Timezone   | Timezone string                              |

## Operators

| Type        | Operators                                                            |
| ----------- | -------------------------------------------------------------------- |
| Text        | is, isn't, contains, starts with, ends with, is empty, isn't empty   |
| Number      | is, isn't, less than, greater than, between, is empty                |
| boolean     | is true, is false                                                    |
| Date        | is, before, after, between dates, in the last, in the next, is empty |
| Select      | is one of, isn't one of                                              |
| multiselect | contains, contains any of, contains none of, is empty                |
| JSON        | text is, number is, boolean is, contains, path exists                |

## Examples

**VIP customers:**

```
User External Attributes -> JSON text is -> "tier" = "enterprise"
AND User Labels -> contains any of -> ["vip", "premium"]
```

**After-hours support:**

```
(Current Hour -> less than -> 9 OR Current Hour -> greater than -> 17)
AND User Timezone -> contains -> "America"
```

**New Zendesk users:**

```
Channel Type -> is one of -> ["zendesk"]
AND User Created At -> in the last -> 7 days
```

## Where to Use Audiences

**Guidance rules.** Attach an audience to a guidance rule to scope its instructions and tools to matching conversations. See [Instruct AI Agent](/guides/instruct-ai-agent#audience-targeting).

**Data providers.** Assign a default audience to a data provider so new sources automatically inherit the scope, making knowledge available only to matching users.

**Knowledge sources.** Scope individual sources to specific audiences so users only see relevant documentation.

<img src="https://mintcdn.com/botbrains/mrGgmLFCJjw3qsuy/images/audiences/audience-selector-guidance-rule.png?fit=max&auto=format&n=mrGgmLFCJjw3qsuy&q=85&s=852bd5e67143073bd98ec367c46d1c5c" alt="Guidance rule showing audience selector dropdown in the Audience section" data-generation-prompt="Navigate to platform.botbrains.io/~/profiles?tab=guidance. Click on any guidance rule to expand it. Scroll down to the Audience section and click on it to expand. Show the audience selector dropdown open with available audience options. Use 1920x1080 viewport, collapse sidebar." width="1920" height="1080" data-path="images/audiences/audience-selector-guidance-rule.png" />
