# Fix Issues from Slack with the Sentry Slack Integration

> Set up the Sentry Slack integration to query the Seer agent, trigger Autofix from alert notifications, and triage and debug issues without leaving Slack.

**URL:** https://sentry.io/cookbook/fix-sentry-issues-from-slack/

---

Use the Sentry Slack integration to query the Seer agent, trigger Autofix from alert notifications, and debug issues without leaving Slack.

**Time:** ~10 minutes | **Difficulty:** Beginner

## What You'll Learn

- Installed the Sentry Slack integration with Seer agent permissions

- Created an alert rule that sends Slack notifications when new issues occur

- Asked the Seer agent questions about your application directly in Slack

- Triggered autofix on a Sentry issue from a Slack alert notification

- Reviewed root cause analysis results in Sentry

**Topics:** Seer, Issues, Alerts

## Before you start

**Accounts & access**

- [Sentry account](https://sentry.io/signup/) on a plan that includes [Seer](https://sentry.io/product/seer/), with at least one project receiving errors

- [Slack workspace](https://slack.com/) where you have permission to install apps

- Sentry organization owner, manager, or admin role (required to install the Slack integration)

**Knowledge**

- Basic familiarity with [Sentry alert rules](https://docs.sentry.io/product/monitors-and-alerts/alerts/)

- Familiarity with Slack channels and mentions

## Steps

### 1. Install the Slack integration in Sentry

In Sentry, navigate to [Settings > Integrations](https://sentry.io/orgredirect/organizations/:orgslug/settings/integrations/) and search for **Slack**.

- Click **Add Workspace** and authorize the connection to your Slack workspace.

- If you already have the Slack integration installed, you may need to re-authorize it to grant the Seer agent the proper permissions to communicate in your channels.

- Once authorized, select which channels or workspaces should receive notifications.

[Slack integration docs](https://docs.sentry.io/integrations/notification-incidents/slack/)

### 2. Add Sentry to a Slack channel

In Slack, go to the channel where you want to interact with the Seer agent and set up the connection.

- Type `@Sentry` in the channel to invite the bot. Slack will prompt you to add the Sentry app.

- Link your personal Slack identity to your Sentry account by typing `/sentry link` in any channel and following the prompts. This ensures the agent can verify your identity and access your organization's data.

- If you skip the linking step, the Seer agent will prompt you to link when you first interact with it.

- Once connected, the Seer agent is ready to answer questions in that channel.

### 3. Create an alert rule with Slack notifications

In Sentry, go to [Alerts](https://sentry.io/orgredirect/organizations/:orgslug/monitors/alerts/) and click **Create Alert**.

- Choose **Issue Alert** and scope it to a project or environment.

- Set your conditions (for example, "A new issue is created") and add the action **Send a Slack notification**.

- Select your workspace, specify the target channel, and optionally tag specific users. Save the rule.

- When a matching issue fires, your team will get a Slack notification with a direct link to the issue and a **Fix with Seer** button.

[Alert rule docs](https://docs.sentry.io/product/monitors-and-alerts/alerts/)

### 4. Ask the Seer agent about your application in Slack

In any Slack channel where Sentry has been added, mention `@Sentry` followed by your question. For example: `@Sentry show me my most recent issues` or `@Sentry what's causing the TypeError in the checkout flow?` The Seer agent queries your Sentry instance and returns relevant telemetry and context, including errors, traces, and session replays. Anyone on the team can join the thread and ask follow-up questions, making it a collaborative debugging experience.

[Seer docs](https://docs.sentry.io/product/ai-in-sentry/seer/)

### 5. Trigger autofix from a Slack alert

When a Sentry alert notification arrives in Slack, look for the **Fix with Seer** button on the message.

- Click it to kick off Seer's autofix, which analyzes the issue and identifies the root cause.

- If you have automation configured, Seer can also generate a fix.

- You can ask the Seer agent more questions about the alert in the thread before triggering autofix, so you have full context before taking action.

[Autofix docs](https://docs.sentry.io/product/ai-in-sentry/seer/autofix/)

### 6. Review the root cause analysis in Sentry

After autofix runs, click through to the issue in Sentry to see the full root cause analysis.

- Seer will show what caused the error, why it happened, and reproduction steps.

- Expand the **Evidence** section to see all the context and inputs Seer used to analyze the issue, including linked errors, source files, traces, and replays.

- From here you can hand the root cause off to your team or open the **Autofix** tab to generate a fix.

- The Slack thread stays as a record of the debugging conversation for anyone who needs context later.

## Summary

**Debug without leaving Slack.**

Your team can now analyze, triage, and fix Sentry issues directly from Slack, keeping everyone in the loop without context-switching.

## Pro Tips

- Use the Seer agent in Slack threads to build context before triggering autofix, so you can confirm the issue is worth fixing first.

- Set up alert filters (error level, event count, specific tags) to keep Slack notifications focused on high-impact issues.

- If your Slack workspace has a paid plan with AI assistant apps, you can open Seer Agent as a persistent panel for private one-on-one conversations.

- Anyone on the team can join a Seer agent thread in Slack, making debugging a multiplayer activity without switching tools.

## Common Pitfalls

- If you already have the Slack integration installed, you may need to re-authorize it to enable Seer agent permissions.

- The Seer agent only works in channels where the Sentry app has been added. If it does not respond, check that the bot is in the channel.

- Alert rules that are too broad will flood your Slack channel with notifications. Use filters to target only critical issues.

- If your Slack workspace is connected to multiple Sentry organizations, use `/sentry set org [slug]` to tell the agent which one to query.

## FAQ

**Does the Seer agent in Slack cost extra beyond my Sentry plan?**

The Slack integration itself is free, but Seer requires a paid Sentry plan. If your plan already includes Seer, there is no additional cost to use it in Slack.

**Can I use the Seer agent in private Slack channels?**

Yes, as long as the Sentry app has been added to the private channel. Use `@Sentry` in the channel to invite the bot.

**What if my Slack workspace is connected to multiple Sentry organizations?**

The Seer agent will try to infer the correct organization from context (for example, Sentry links in the thread). You can also set it manually with the `/sentry set org [organization_slug]` command.

**Do I need to re-authorize the Slack integration if it is already installed?**

If you installed the Slack integration before the Seer agent was available, yes. Re-authorizing grants the additional permissions the Seer agent needs to respond in your channels.

## Next Steps

- [product/seer](https://sentry.io/product/seer/)

- [Set up coding agent integrations](https://docs.sentry.io/integrations/coding-agents/claude/): Hand off Seer's root cause analysis to Claude Code or Cursor for automated PR generation.

- [Fine-tune your alert rules](https://docs.sentry.io/product/monitors-and-alerts/alerts/#alerts-best-practices): Scope alerts by project, environment, error level, and event frequency to reduce noise.

---

*Source: [sentry.io/cookbook/fix-sentry-issues-from-slack/](https://sentry.io/cookbook/fix-sentry-issues-from-slack/)*
