Skip to main content
Patterns helps you discover recurring problems and opportunities to improve your AI application. It uses Loop to investigate your traces and surface findings with evidence and suggested next steps. Use these findings to prioritize fixes, uncover unmet user needs, or monitor recurring behavior.
Patterns is in public preview and can change before reaching general availability.
Pattern report with properties, an impact chart, summary, suggested fix, and highlighted trace evidence

Before you start

To enable Patterns, you need: To receive Slack notifications, you also need a connected Slack workspace.

Connect your code

Optionally, connect GitHub so Loop can investigate trace problems alongside the code that produced them and point suggested fixes to relevant files. The GitHub guide covers setup, required permissions, and shared access.

Enable pattern discovery

  1. Go to Patterns and click Continue.
  2. If prompted, choose a model provider.
  3. Optionally, select a Slack workspace and channel for alerts about new or reopened patterns.
  4. Click Enable Patterns.
Get started with Patterns panel with a Continue button
Patterns Slack alert setup with a channel selector and Enable Patterns button
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.

Configure pattern alerts

Braintrust sends alerts for new or reopened patterns, including those found in interactive Loop conversations. Updates to an active pattern don’t trigger another alert. All destinations receive individual pattern alerts, not a report from the discovery run. For recurring summaries, including when there are no significant changes, create a Digest.

Choose destinations

You can configure one Slack channel alongside webhooks and PagerDuty. All configured destinations receive alerts for new and reopened patterns across the project. Editing destinations requires the project’s Update permission.
Saving project destinations replaces rule-specific alert routing: all rules use the project destinations. Removing all project destinations stops alerts, even if rules still have destinations.
Go to Settings > Patterns. Under Alert destination, choose:
  • Slack: Select a workspace and channel.
  • Other > Webhook: Enter the URL. Use Add webhook for another endpoint.
  • Other > PagerDuty: Enter an integration key and choose a severity.
Click Save. To edit a destination, click its button again. Alerts don’t use a Formatting prompt.
Until project destinations are saved, existing rules send alerts to their own destinations, configured under Alerts in the rule editor. Save project destinations to receive alerts for patterns created in interactive conversations too. The Slack channel selected during Patterns setup becomes a project destination.

Slack alert contents

  • Finding: Name, description, severity, categories, and first and last seen times. Reopened patterns show Reopened after the name.
  • Evidence: Available links open examples in the pattern’s evidence panel.
  • Impact: When a saved measurement is available, the alert shows affected users, sessions, or traces across the project, such as Users affected 87 (Nov 1 – Nov 14).

Tag an agent or teammate

Braintrust can mention a Slack agent or teammate in a reply to each pattern alert, with instructions to investigate it. First, save a Slack destination for the project. Then, on the same Settings page:
  1. Click Configure beside Pattern Slack mention, or Enabled to edit it.
  2. Select a workspace member under Mention agent/user.
  3. Enter a Prompt of up to 2,000 characters. Include {{pattern}} for the pattern link. For example:
  4. Check Preview, then click Save.
Mentions apply only to Slack alerts in the configured workspace. To stop mentions while keeping alerts, open Pattern Slack mention and click Disable.

Troubleshoot

  • 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, or turn on Auto to follow your organization’s default provider for Loop.
When neither a compatible organization-level AI provider nor usable built-in 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. Your organization must meet the built-in model 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 for how usage is counted.
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 skip Slack during setup and add a channel later.

Next steps