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

# Discord

> Connect Discord to query your agent data, receive pattern alerts, and get scheduled recaps.

The Discord integration lets you ask questions about your agent data directly from Discord, receive real-time pattern alerts, and get scheduled recaps delivered to your channels.

<Note>
  Discord integration requires a Pro or Enterprise plan.
</Note>

## Setup

<Steps>
  <Step title="Connect your Discord server">
    Go to the **Integrations** page in your [dashboard](https://www.thecontextcompany.com/prod/settings?tab=integrations) and click **Connect Discord**. This starts an OAuth flow to install the bot in your Discord server.
  </Step>

  <Step title="Subscribe a channel">
    In Discord, open the text channel where you want alerts or recaps and run `/subscribe`. This registers the channel for pattern alerts and makes it available for recap delivery in the dashboard.
  </Step>

  <Step title="Use the channel in the dashboard">
    Subscribed channels appear in channel pickers across the dashboard — for [pattern alerts](/analyze/patterns), [recaps](/analyze/recaps), and other notification settings.
  </Step>
</Steps>

## Recaps and pattern alerts

Discord channels are delivery destinations for two features:

* **[Recaps](/analyze/recaps)** — scheduled AI-written summaries of production activity, delivered on a daily or weekly cadence as markdown messages
* **[Pattern alerts](/analyze/patterns)** — notifications when tracked patterns are detected, with frequency options including every detection, threshold-based alerts, and daily digests

Configure which channels receive each from the Recaps and Patterns pages in your dashboard, or via [MCP](/access-data/mcp) using `list_notification_channels`.

## Insight search in Discord

Run `/ask` in any subscribed channel to use [insight search](/analyze/insight-search) directly from Discord. Include your question as the command argument:

```
/ask question:What are the most common errors this week?
```

The bot replies in the channel with a data-backed answer. When it detects a behavior worth tracking, it suggests creating a [pattern](/analyze/patterns) with interactive **Track Pattern** buttons.

## Slash commands

| Command        | Description                                                        |
| -------------- | ------------------------------------------------------------------ |
| `/subscribe`   | Subscribe the current channel to pattern alerts and recap delivery |
| `/unsubscribe` | Remove the current channel's subscription                          |
| `/ask`         | Run insight search with optional pattern suggestions               |
| `/help`        | Show setup guidance and a link to the dashboard                    |

## Managing servers

View connected servers and subscribed channels from the **Integrations** page in your dashboard. You can disconnect a server at any time — this removes the bot and clears all channel subscriptions for that server.

## Related

* [Recaps](/analyze/recaps)
* [Patterns](/analyze/patterns)
* [Insight Search](/analyze/insight-search)
* [MCP](/access-data/mcp)
