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

# Enable Patterns

> Enable Patterns to find recurring problems in your traces, set up Slack alerts, and start your first discovery run.

Patterns uses Loop to find recurring problems and trends in your project's traces. Once you're [capturing traces](https://docs.braintrust.dev/tracing-quickstart.md), you can enable scheduled discovery.

## Before you start

To enable Patterns, you need:

* [Traces logged to your project](https://docs.braintrust.dev/tracing-quickstart.md)
* [Access to models](https://docs.braintrust.dev/loop/manage.md#models-and-providers), either built-in or from a compatible AI provider
* Membership in the **Owners** or **Engineers** [permission group](https://docs.braintrust.dev/admin/access-control.md#built-in-permission-groups), or another group that grants the project's [`Update` permission](https://docs.braintrust.dev/admin/access-control#what-update-covers)

To receive notifications, you also need a [connected Slack workspace](https://docs.braintrust.dev/admin/organizations.md#enable-slack-integration).

## Enable pattern discovery

1. Go to [** Patterns**](https://www.braintrust.dev/app/~/patterns) and click **Continue**. If the panel shows **Enable Patterns**, click it to finish setup.
2. If prompted, choose a model provider.
3. Optional: Select a Slack workspace and channel for [alerts about new or reactivated patterns](#slack-notifications).
4. Click **Enable Patterns**, or **Enable without Slack alerting** if that option appears and you haven't selected a channel.

![Get started with Patterns panel with a Continue button](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/enable-patterns.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=3f7242f4598bd92719263faba9f7ff79)

![Patterns Slack alert setup with a channel selector and Enable Patterns button](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/enable-patterns-slack.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=4e49e9c51c9dbcaa2a0a7499f43f0041)

Braintrust creates a **Pattern discovery** rule and queues its first run immediately. It then runs daily at 9:00 AM in your default timezone, examining the last 30 days of traces. Patterns appear as the run finishes. To change the schedule or focus on specific traces and problems, [configure pattern discovery](https://docs.braintrust.dev/observe/patterns/configure.md).

> [accordion] What Slack notifications include
>
> Loop sends one alert per pattern it creates or reactivates during a run. Updates to an active pattern don't trigger another alert. A run with no new or reactivated patterns sends no Slack message.
>
> Each alert includes the pattern's name and description, plus available evidence links, [severity](https://docs.braintrust.dev/observe/patterns/review.md#severity), [categories](https://docs.braintrust.dev/observe/patterns/review.md#categories), and first and last seen times. When the pattern has a [saved measurement](https://docs.braintrust.dev/observe/patterns/review.md#affected-traces), the alert also shows the number of users, sessions, or traces affected across the project, such as **Users affected** 87 (Nov 1 – Nov 14).
>
> Each evidence link opens the example in the pattern's [evidence panel](https://docs.braintrust.dev/observe/patterns/review.md#examples).
>
> To add or change a channel after setup, edit the rule's [**Alerts**](https://docs.braintrust.dev/observe/patterns/configure.md#tune-a-pattern-rule).

## Troubleshoot

> [accordion] Why am I asked to choose a provider?
>
> * When built-in models are available, Patterns selects them automatically. On Enterprise, you can choose a compatible configured provider instead.
> * When built-in models are unavailable, Patterns selects your only compatible configured provider automatically. If you have several, you choose one.
>
> The rule keeps using the provider and model selected during setup. To change them later, edit the rule's [**Model**](https://docs.braintrust.dev/observe/patterns/configure.md#tune-a-pattern-rule), or turn on **Auto** to follow your organization's default provider for Loop.

> [accordion] Setup asks you to add a provider
>
> When neither a compatible organization-level AI provider nor usable [built-in models](https://docs.braintrust.dev/admin/ai-providers.md#available-models) are available, the setup panel shows **Add provider** instead of **Enable Patterns**. Click **Add provider** to configure a provider without leaving setup.
>
> * **Built-in models are disabled.** To use them instead of your own provider, enable them in \*\* Settings\*\* > [\*\* Models\*\*](https://www.braintrust.dev/app/~/configuration/models/organization). Your organization must meet the [built-in model requirements](https://docs.braintrust.dev/admin/ai-providers.md#requirements).
> * **Your model credits are exhausted.** Add your own provider key with **Add provider**, or select **Upgrade** to raise your plan's limits. See [model credits](https://docs.braintrust.dev/plans-and-limits.md#model-credits) for how usage is counted.

> [accordion] Slack channel isn't listed
>
> If more than one Slack workspace is connected, select the workspace first. Click  to refresh the channel list, or enter the channel ID. Use a dedicated channel for pattern alerts.
>
> You can leave the channel empty to skip notifications and [add it later](https://docs.braintrust.dev/observe/patterns/configure.md#tune-a-pattern-rule).

## Next steps

* [Review and act on patterns](https://docs.braintrust.dev/observe/patterns/review.md) once the first run finishes.
* [Configure pattern discovery](https://docs.braintrust.dev/observe/patterns/configure.md) to tune rules, customize the rubric, or troubleshoot runs.
* [Find problems in coding-agent sessions](https://docs.braintrust.dev/cookbook/recipes/CodingAgentInsights.md) with coding agent insights.


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