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

# Manage classes

> Add classes to a taxonomy group, choose how they classify, and update, delete or move them.

> [!NOTE]
>
> New to taxonomy? Start with the [overview](https://docs.nebuly.com/documentation/platform/taxonomy). To create a group first, see [Manage groups](https://docs.nebuly.com/documentation/setup/taxonomy.md).

## Viewing classes

Classes live inside their group. On the **Taxonomy** page, click the arrow next to a group to see its classes, or use **Expand all** to open every group at once. The number next to each group shows how many classes it has.

![Image](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/image-81.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=8efe964404c8a627c974437115db7386)

## Adding a class

Add classes to a group to track exactly what matters to you: a product, a type of request, a behaviour of your assistant, or any signal you want to count. You can add classes to System and Custom groups.

**1. Click + on the group**

On the **Taxonomy** page, hover over the group and click **+** next to its name.

![Screenshot 2026 11 20 At 16 48 47](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/Screenshot-2026-11-20-at-16.48.47.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=3316acbc2071ec9082662a11873cf97e)

**2. Choose how to define the class**

The **Add taxonomy class** window opens. Pick **Description**, **Regex**, **Filter** or **Customized**.

> [!NOTE]
>
> Not sure which one to pick? See [Which method to select](https://docs.nebuly.com/documentation/platform/taxonomy-writing-classes.md#which-method-to-select-when-creating-new-classes) in Write good classes.

![Image](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/image-82.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=722de98f527b9ca573fc58f874e1d799)

**3. Fill in the details**

The fields depend on the method you picked. Every method starts with a **Name** (required): what the class contains, such as *Refund requests*.

> [tab] Description
>
> Nebuly reads the name and the description, and uses them to decide which interactions belong in the class. It matches by meaning, so different wordings and languages are all caught.
>
> * **Name** (required): Nebuly reads it too, so make it clear and specific.
>
> * **Description** (required): what belongs in the class, written in plain words. For example: *Inquiries where the user asks for money back or for the status of a refund.*
>
> * **Advanced** (optional): which part of the conversation Nebuly reads, and whether to classify past interactions. See [Advanced settings](#advanced-settings-for-classes).
>
> > [!TIP]
> >
> > The quality of a description decides how well the class works. See [Write good classes](https://docs.nebuly.com/documentation/platform/taxonomy-writing-classes.md) for rules and examples.

> [tab] Regex
>
> Nebuly puts an interaction in the class when its text matches your regular expression. The match is exact: no interpretation, no synonyms.
>
> * **Name** (required): a label for the class. With regex, the name does not affect what the class catches.
> * **Pattern** (required): the regular expression to match, such as `\b(refund|reimburse|chargeback)\b`.
> * **Notes** (optional): context for your team, such as what the class tracks and why it was created. Nebuly does not use notes to classify.
> * **Advanced** (optional): which part of the conversation the pattern runs on, and whether to classify past interactions. See [Advanced settings](#advanced-settings-for-classes).
>
>   ![Image](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/image-84.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=3dfa3701f06e1fa6565a2af73b9775d6)

> [tab] Filter
>
> Nebuly puts an interaction in the class when it matches your filter conditions. It reuses data Nebuly already has on each interaction, so the result is deterministic.
>
> * **Name** (required): a label for the class. The name does not affect what the class catches.
> * **Active filters** (required): each filter is a row with three parts:
>
>   * **Field**: the property to check, such as **User emotions**, **User rating**, **User group**, **Source** or **RAG source**. Use **Type** in the dropdown to narrow the list.
>   * **Operator**: how to compare, such as **Equals**.
>   * **Value**: the value to match, such as *Frustrated*.
>
>   Click **Add filter** to add more rows. Click **×** to remove one.
> * **Notes** (optional): context for your team. Nebuly does not use notes to classify.
> * **Advanced** (optional): only **Apply retroactively**. Filters don't need a target, because they don't read the text.
>
>   ![Image](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/image-85.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=8600a78d3c48ff36226c34fdb224148a)

> [tab] Customized
>
> Nebuly puts an interaction in the class when it matches the rule you build. A rule combines description, regex and filter conditions with **AND** or **OR**.
>
> This is the most powerful method, because one rule can mix meaning, exact text and data Nebuly already has. For example, a class for *Frustrated users asking for a refund* can combine a description (the user asks for money back), a regex (`refund|chargeback`) and a filter (User emotions = Frustrated). Use it for precise classes that no single method can capture alone.
>
> * **Name** (required): a label for the class.
> * **Rule** (required): 
>   * **Condition type**: pick **Description**, **Regex** or **Filter** for each condition, then fill it in like the matching method.
>   * **Where the classifier acts**: for description and regex conditions, choose **User query**, **Agent answer**, **Input** or **Output**. Each condition can read a different part of the conversation.
>   * **Add condition**: adds another condition. The **AND / OR** connector between conditions is editable.
>   * **Add group**: nests conditions, for example *A AND (B OR C)*. Use **Group rows** to put existing conditions into a group.
> * **Expression preview**: a read-only line showing the full rule, such as `text contains "refund" on user query AND ...`. Check it before saving.
> * **Notes** (optional): context for your team. Nebuly does not use notes to classify.
>
>   ![Image](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/image-86.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=00cb7f80fa301a8fd389979ff657a473)

**4. Open Advanced**

At the bottom of the form, click **Advanced** to see two extra settings:

* **Where the classifier acts**: which part of the conversation Nebuly checks, such as the user's message or the assistant's reply.
* **Apply retroactively**: also classify interactions you collected before creating the class.

The defaults work for most classes. See [Advanced settings](#advanced-settings-for-classes) for details.

![Image](https://mintcdn.com/nebulyai/7qKhZqSZri_c66_J/images/image-87.png?fit=max\&auto=format\&n=7qKhZqSZri_c66_J\&q=85\&s=59c39614669a9bf0b4ddbfaed2e08a32)

**5. Click Save**

The class starts filling at the next processing run. Open a few of its interactions in **Live Data** to check they belong there, and refine the definition if needed.

> [!NOTE]
>
> **Good to know**
>
> * **One class per group**: each interaction gets at most one class in a group. If two classes overlap, both totals become unreliable. See [Write good classes](https://docs.nebuly.com/documentation/platform/taxonomy-writing-classes.md).
> * **Don't create "Other" class**: Nebuly already puts what fits nothing into Other.
> * **Self-hosted**: every class with a description adds work to each processing run. See [Processing cost on self-hosted deployments](https://docs.nebuly.com/documentation/setup/taxonomy.md#processing-cost-on-self-hosted-deployments).

### Advanced settings for classes

The **Advanced** section lets you fine-tune a class: which part of the conversation Nebuly reads, and whether it also classifies interactions you collected before creating the class. The defaults work for most classes.

**Where should the classifier act?**

| Option | What Nebuly reads | Use it when |
| - | - | - |
| **User query** | A short English summary of the user's message, written by Nebuly with the context of the conversation | The class is about what the user wants. **Start here.** |
| **Agent answer** | A short English summary of the assistant's reply, written the same way | The class is about how the assistant behaves: it refuses, falls back or lacks information. |
| **Input** | The full input passed to the model, including system prompt and context | The exact words matter: codes, names, language, or something in the context. |
| **Output** | The raw model output, before any post-processing | The exact wording matters: a link, a disclaimer, a fixed phrase. |

Summaries handle different wordings and languages for you, and Nebuly's models work best on them. Use **Input** or **Output** only when a summary could lose an important detail.

**Apply retroactively**: turn it on to also classify past interactions. You can choose:

* **Apply on keywords** (default): pick from a searchable list of keywords found in your past interactions. Only interactions with the keywords you select are reclassified. This is the fastest and cheapest option when the class covers a specific subject.
* **Apply all**: reclassify all past interactions.

If it's off, the class only applies to new interactions.

## What actions you can do with classes

What you can change depends on the group the class belongs to.

<table>
  <colgroup>
    <col width="218" />

    <col width="166" />

    <col width="166" />

    <col width="250" />
  </colgroup>

  <thead>
    <tr>
      <th>Action</th>
      <th>System</th>
      <th>Custom</th>
      <th>Tag</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Add classes</td>
      <td>Yes</td>
      <td>Yes</td>
      <td>No, classes come from your tag values</td>
    </tr>

    <tr>
      <td>Update a class</td>
      <td>Yes</td>
      <td>Yes</td>
      <td>No</td>
    </tr>

    <tr>
      <td>Delete a class</td>
      <td>Yes</td>
      <td>Yes</td>
      <td>No</td>
    </tr>

    <tr>
      <td>Move interactions by hand</td>
      <td>Yes, from Live Data</td>
      <td>Yes, from Live Data</td>
      <td>No</td>
    </tr>
  </tbody>
</table>

To act on a class, expand its group, hover over the class and click **⋮**. You'll see **Update** and **Delete**.

You can also select several classes at the same time by ticking their checkboxes. A control bar appears at the bottom of the page.

### Update

Click **⋮** > **Update** to edit a class. You can change:

* **Name**: Nebuly uses it to classify, so renaming can change what the class catches.
* **Description**: what belongs in the class.
* **Where the classifier acts**: User query, Agent answer, Input or Output.

> [!NOTE]
>
> **What happens after you change a class?**
>
> * The new definition applies from the **next processing run**, to new interactions only.
> * Interactions that are already classified **keep their current class**. Nothing changes in your past reports.
> * To apply the new definition to past interactions, [reprocess the group](https://docs.nebuly.com/documentation/setup/taxonomy.md#reprocess).

> [!TIP]
>
> If another class overlaps with the one you're editing, update both at the same time. Then reprocess the last 7 days and check the result before relying on the new numbers.

### Delete

Click **⋮** > **Delete** to remove a class you no longer need. At the next processing run, its interactions move to the best remaining class, or to Other.

> [!TIP]
>
> Plan big changes before deleting, for example with the Nebuly MCP. If the deleted class's interactions keep fitting nothing, Nebuly may create a similar class again. See the [FAQ](#faq).

### Move interactions by hand

To fix a few wrong labels without changing any definition:

1. Open **Live Data** and search for a word, such as a feature name.
2. Select the interactions that are in the wrong class.
3. Click **Move to topic** or **Create user action**.

Interactions you move by hand stay where you put them, even after reprocessing.

> [!TIP]
>
> If many interactions are in the wrong place, fix the class description instead and reprocess the group. It's faster and keeps working for new data.

## How edits affect past labels

**Editing a class only changes new interactions.** Past interactions keep their class unless you:

* **delete** the class: its interactions move at the next processing run
* **reprocess** the group: see [Reprocess](https://docs.nebuly.com/documentation/setup/taxonomy.md#reprocess)
* **move** them by hand in Live Data

## FAQ

> [accordion] Why do classes I deleted come back?
>
> Their interactions still don't fit any class. Once there are enough of them, Nebuly creates a class for them again. To stop this, add a class that catches them, such as Off-topic, or widen an existing description.

> [accordion] Can I control the size of Other?
>
> By default, Other has no limit. Nebuly can split it into new classes above a threshold, such as 5%, but this may create many small classes.

> [accordion] Can I merge two classes?
>
> Not with a single action. Widen the description of the class you want to keep, delete the other one, then reprocess the group.

> [accordion] Does editing a class change past labels?
>
> No, only new interactions. To update past ones, reprocess the group: up to 7 days on SaaS, 3 months on self-hosted. Or delete the class, so its interactions move at the next run.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.