# Classifications

Define AI labeling rules for sessions or issues, then filter and group by the labels they apply.

A **classification** is a question you want asked of every conversation. You name the question, list the answers it may give, and Brizz runs a classifier over your traffic that assigns one — "which product area was this about?", "why did this run produce nothing?", "what kind of task was the user trying to do?"

Where [user intents](/docs/platform/analyze/user-intents.md) are *discovered* for you, a classification is *declared* by you. Both end up as a dimension you can filter and group by; the difference is who decides what the categories are.

## What it is

A classification appears as an **AI rule** under **Settings → Labels → Rules**. It has a **label group**, a list of labels with optional descriptions, and optional **instructions** telling the AI how to decide. Choose whether it assigns one label or several, and whether it labels sessions or issues.

Select the services the rule runs on. Existing rules that cover all services appear as **All services** in the Rules list.

Under the hood a classification is a [label](/docs/platform/labels.md) plus the classifier that populates it. That's the payoff — once it's running, its categories behave like any other label: filter [Sessions](/docs/platform/observe/sessions.md) by them, group charts by them, slice [Issues](/docs/platform/issues.md) with them.

Brizz also supplies built-in labels. They appear alongside your own labels on the Labels tab and are read-only to your organization.

## Building one

Choose **Create rule**, select its services, choose **With AI**, and select **Sessions** or **Issues**. The editor is one form rather than a wizard.

**Labels and instructions.** Create a label group or select one that does not already have an AI rule. Add at least two labels, with descriptions explaining when each applies. Use **Instructions** for guidance shared by the whole rule. Turn off **One label per session** (or **One label per issue**) to allow several matches.

**Context for sessions.** Choose what the classifier is allowed to read: user turns, assistant turns, tool calls, events, errors, and reasoning. For tool calls, separately select inputs, results, and errors; you can also include sub-agent structure. An issue rule reads the issue rather than using these session context settings.

This is an exclusion at the data layer, not an instruction in a prompt. Anything you leave out never leaves the backend, so a classifier scoped to user turns alone cannot be talked into reading a system prompt or the raw body of a document your agent was processing. The default is deliberately narrow: user and assistant messages only.

**Which sessions to classify.** Narrow the population with session filters, the same ones the [Sessions](/docs/platform/observe/sessions.md) page offers. The **Sampling** section shows what fraction of matching sessions will be labeled; only super admins can change it. Issue rules do not use session filters or sampling.

**Past sessions.** Choose **From now**, **Last 7 days**, **Last 30 days**, or a **Custom** range before saving. A past range starts a backfill after the rule is saved — see [Backfilling history](#backfilling-history). AI rules on issues label new issues and do not offer a historical run.

### Previewing before you save

At any point you can run a **preview**: the classifier runs over a handful of recent sessions and returns, for each one, the category it assigned and its reasoning. The run is asynchronous — it reports progress as it goes and you can cancel it.

Read the reasoning, not just the verdict. A category assigned for the wrong reason will keep being assigned for the wrong reason at scale. Preview also reports sessions it **skipped**, meaning your context scope excluded everything that session had to offer — distinct from a session it read and matched to nothing, and usually a sign the scope is too tight.

Previewing is a loop, not a gate: adjust the categories, the guidance, or the context scope, and run it again.

### Backfilling history

A **backfill run** pushes existing sessions through a classification. Every run is windowed to a time range, and before you start one Brizz estimates its size: how many sessions matched, how many survive sampling, and how many LLM calls the run would make.

Read the LLM-call estimate rather than the session count. The classifier walks each session in rolling windows, so a session figure understates the real work several-fold. Large runs ask you to confirm; past a limit they're refused outright and you have to narrow the window.

A few things about a completed run:

- **Classified is lower than processed** whenever the runner declined a session — machine-generated ones are skipped outright rather than scored.
- **Failed chunks** mean a partial success: some batches errored and their sessions were left unclassified. Re-run that window.
- **Only previously matched** re-scores just the sessions this classification already labeled, which is what you want after editing categories rather than after creating them.

## How to read it in the dashboard

The **Rules** list shows AI and filter rules together. Each row shows its type, services, labels, whether it affects sessions or issues, and **Applied last 7 days**. Search by label or service and filter to **AI rule** to focus on classifications. Use the switch to pause or resume a rule without removing labels already applied.

Use the rule's **⋮** menu to:

- **Edit rule** — change its labels, instructions, and other settings.
- **See labeled sessions** or **See labeled issues** — open the items carrying its labels, when any have been applied.
- **Backfill history** — inspect past runs for an AI rule on sessions.
- **Open rule dashboard** — open its custom dashboard when one exists. Where custom dashboards are enabled, **Create rule dashboard** is offered for missing dashboards on AI session rules.

## Renaming a category

Renaming a category is not a text edit — a category is identified by the value string the classifier wrote into every stored assignment. Rename it through the editor and Brizz moves the existing assignments to the new name. Change the string some other way and it reads as dropping one category and adding another: the new name starts empty, and the history goes with the old one.

## How to act on it

1. **Declare a dimension you already argue about.** The classifications that earn their keep are the ones answering a question your team asks weekly — which product area, which failure mode, which kind of request.
2. **Write descriptions, not just values.** `billing` is a label; "questions about invoices, payment methods, or refunds" is something a classifier can act on.
3. **Tighten the context scope deliberately.** A classifier that reads everything will classify the content your agent was processing rather than the conversation about it — the failure mode this step exists to prevent.
4. **Preview first, backfill later.** Check the labels and reasoning before running over a large history window.
5. **Compare labels in charts.** Group a chart by the rule's label group to see where outcomes differ.

## Availability

The **Rules** page requires admin or higher. The **With AI** option requires classifications to be enabled for your organization; super admins can also see it. If the option is missing, [contact us](mailto:support@brizz.ai). Label management also requires a plan that includes AI labels.

## See also

- [Labels](/docs/platform/labels.md) — what a classification becomes once it's running, and how to filter and group by it.
- [User intents](/docs/platform/analyze/user-intents.md) — the discovered counterpart to a declared dimension.
- [Sessions](/docs/platform/observe/sessions.md) — where a category's items open, and the filters used to narrow a rule's population.
- [Issues](/docs/platform/issues.md) — the problems the issue-rate column is counting.

---

[All Brizz documentation](https://docs.brizz.ai/llms.txt) · [Full documentation (single file)](https://docs.brizz.ai/llms-full.txt)
