---
title: "Slack"
description: "Get Baz notifications in Slack and ask Baz to answer, review, fix or summarize from any channel."
canonical: "https://baz.ai/docs/integrations/slack"
---

# Slack

Get Baz notifications in Slack and ask Baz to answer, review, fix or summarize from any channel.

The Slack integration does two things. It sends each user direct messages about the Baz events that need their attention, and it adds a Baz bot you can mention to ask questions about your code, review a pull request, or have the Fixer open a pull request.

## Install the Slack app

<Steps>
  <Step title="Open the Slack integration">
    Go to **Settings → Integrations**, select **Design & Collaboration**, then **Slack**.
  </Step>
  <Step title="Add Baz to your workspace">
    Select **Add to Slack** and approve the app in Slack. Baz asks for permission to join channels, post messages, send direct messages, and read user details including email.
  </Step>
  <Step title="Connect your user">
    Each person then opens the user menu at the bottom of the sidebar and selects **Connect Slack**, so Baz can match their Slack account to their Baz user.
  </Step>
</Steps>

Baz uses email addresses only to match people in your workspace with their Baz users.

## Notifications

Once your Slack user is connected, Baz sends you direct messages for events such as:

- New comments and resolved comments on your pull requests
- Pull request activity that involves you
- Plan review requests, comments and replies
- SRE findings and completed security scans
- Post-deploy monitoring checks

## Slack bot

Mention `@Baz` in a channel or thread. Tasks read the whole thread as context.

Use `@Baz ask <question>` for a quick answer from your code, or `@Baz deep <question>` when it needs to dig across files and repositories. `@Baz review [PR link]` reviews a pull request, `@Baz fix <instruction>` has the Fixer make the change and open a pull request, and `@Baz summary [days=7]` sums up recently merged pull requests (1 to 31 days).

If you mention Baz without a command, it answers as `ask`, or as `review` when the message contains a pull request link.

### Options

Add `repo=owner/name` or `branch=name` to point a task at a specific repository or branch. With `fix`, add `pr=no` to commit straight to `branch` instead of opening a pull request.

### In a thread

Mention Baz again to follow up, and reply directly when Baz asks a question. Start with `new` to begin a separate task.

### Manage and automate

Send `status` to see running tasks, `stop` to stop the current one, and `channel [name]` to move it to its own channel. `automate match="deploy failed" deep investigate` runs a task whenever a message matches the text, and `schedule every=mon at=9 summary` runs one on a schedule (`every=daily` or a weekday, `at=` a whole hour in UTC). `automations` lists them, `unautomate <id>` removes one, and `help` shows every command.

The full list is also in [Slack commands](/docs/reference/slack-commands).

## Related

<CardGroup cols={2}>
  <Card title="Slack commands" href="/docs/reference/slack-commands" icon="terminal">
    Reference for every bot command.
  </Card>
  <Card title="Fixer" href="/docs/agents/build/fixer" icon="wrench">
    The agent behind `@Baz fix`.
  </Card>
</CardGroup>
