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

# Use a Devin Bot in Slack

> Give a Devin Bot its own Slack app and handle so your team can @-mention it in channels or message it directly.

Each [Devin Bot](https://docs.devin.ai/work-with-devin/bots) can have its own Slack app with its own handle. Your team messages the Bot directly or mentions it in a channel, and the Bot replies in the thread:

![A Slack thread in #frontend. Sam writes: @frontend-bot anything on checkout waiting on me? The Bot replies twice in the thread: One thing. The mobile layout fix is ready to review. Then: Merged. Checkout is centered on mobile now.](https://mintcdn.com/cognitionai/ieJ1Le8GMm2INQp4/images/bots/bots-slack-thread.svg?fit=max\&auto=format\&n=ieJ1Le8GMm2INQp4\&q=85\&s=d54f5c2951d6e89a07d9d592aa025508)

## Before you start

Connect Slack to your organization first. See the [Slack integration](https://docs.devin.ai/integrations/slack.md). Until a Bot has its own Slack app, it uses the shared Devin app as a fallback.

| Action | Who can do it |
| - | - |
| Authorize Devin in Slack and add the Bot's app | The Bot's creator. |
| Select channels, rename, reinstall, or delete the app, and change its permissions | Members who can configure the Bot. |

## Set up the Bot's Slack app

Open the **Slack** page of the Bot's settings. A new Bot's chat offers the same setup in its **Connect your chat app** card.

**1. Authorize**

Allow the requested permissions in Slack. This is a one-time authorization for your Slack account that lets Devin create and install the Bot's app on your behalf.

**2. Add to Slack**

Pick the handle people use to @-mention the Bot.

**3. Select channels**

Choose the public channels where the Bot should work. For a private channel, run `/invite @handle` in Slack.

**4. Choose who can message the Bot**

Only the people the Bot is shared with can use it in Slack. To widen that, change **Who can message** under [Slack permissions](#slack-permissions).

Adding the Bot to a channel gives it write access there. Otherwise, it can still read public channels the shared Devin app is in.

In the Bot's chat in Devin, type `#` to mention a Slack channel, for example to ask the Bot to post a summary there.

### Slack admin approval

If your workspace requires admin approval for apps, a Slack admin has to install the Bot's app. The **Slack** page shows where the request stands and gives you a link to send your admin.

Devin creates a Slack app for each Bot. To approve these apps automatically, a Slack admin can:

1. In Slack's admin settings, go to **Integrations → Installed apps** and open **Devin**.
2. Click **Manage → Manage permissions**.
3. Check **Allow this app to install managed agent apps**, then click **Save**.

![Slack's Manage permissions dialog for the Devin app, with the Allow this app to install managed agent apps checkbox above the Cancel and Save buttons.](https://mintcdn.com/cognitionai/ieJ1Le8GMm2INQp4/images/bots/bots-slack-manage-permissions.svg?fit=max\&auto=format\&n=ieJ1Le8GMm2INQp4\&q=85\&s=a0e74a8152d16adae9bde1cf8fa58fbd)

## Slack permissions

Two settings control how the Bot behaves in Slack:

| Setting | What it controls | Options |
| - | - | - |
| **Who can message** | Which Slack members can DM the Bot, and whose thread replies it reads. | **People with access**, **Everyone in the organization**, **Anyone in your Slack workspace**, or **Anyone in Slack, including Slack Connect**. |
| **Allowed channels** | Which channels the Bot can join without an explicit `/invite`. | **None**, **Channels Devin is in**, or **Any public channel**. |

Each **Who can message** level includes the ones before it:

| Level | Who can DM the Bot and reply in its threads |
| - | - |
| **People with access** | Only the people the Bot is shared with. The Bot reads only their thread replies. |
| **Everyone in the organization** | Any member of your Devin organization. A member the Bot isn't shared with reaches the Bot's own conversation, and doesn't start sessions as themselves. |
| **Anyone in your Slack workspace** | Also people in your connected Slack workspaces who have no Devin account. |
| **Anyone in Slack, including Slack Connect** | Also people outside your organization, such as Slack Connect guests. |

A few rules apply:

* Every level above **People with access** needs direct messages turned on in your organization's Slack **Default Access** settings. While they're off, only **People with access** can be picked, and the setting says why.
* **Anyone in Slack, including Slack Connect** is offered only in organizations where external Slack users are enabled for automations, and Devin asks you to confirm the choice.
* A person can always add the Bot to a channel with `/invite`, whatever **Allowed channels** is set to.

> [!WARNING]
>
> A Bot that responds to untrusted messages is at risk of prompt injection. Be very cautious when allowing messages from people outside your organization.

The **Who can message** setting also appears under **Message sources** on the Bot's **Sharing** page. See [Message sources](https://docs.devin.ai/work-with-devin/bots/access-and-security.md#message-sources).

## Rename, reinstall, or delete the app

Members who can configure the Bot can manage its app from the **Slack** page:

* **Rename in Slack** changes the app's name and @-mention in Slack. The Bot's name in Devin stays the same.
* **Reinstall app** installs the app again. A reinstall can also wait for a Slack admin's approval.
* **Delete app** removes the Bot's app from Slack. You can create a new one afterward.

Renaming the Bot in Devin also renames its Slack app, unless you gave the app a different handle with **Rename in Slack**.

If the app is uninstalled from Slack, or its Slack workspace is disconnected from Devin, the **Slack** page says so and offers to install it again.

## Related pages

* [Devin Bots overview](https://docs.devin.ai/work-with-devin/bots)
* [Access and security](https://docs.devin.ai/work-with-devin/bots/access-and-security.md)
* [Use a Devin Bot in iMessage](https://docs.devin.ai/work-with-devin/bots/imessage.md)
* [Slack integration](https://docs.devin.ai/integrations/slack.md)
* [Automations triggered from Slack](https://docs.devin.ai/product-guides/automations.md#slack-triggers)


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