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

# Slack and Microsoft Teams

> Put an agent in a Slack or Microsoft Teams channel.

## Put an agent in Slack or Microsoft Teams

A channel connects one agent to one chat app as a bot. Channels need only credentials: there is no event picker. The agent replies to messages and mentions automatically. A channel belongs to the agent, not to a project-wide connection, so it has no scope setting.

## Connect a channel

**Who:** Model manage permission, and admin access to the Slack workspace or Azure tenant

**Where:** Agent builder → Tools → Channels → Connect

1. Click **Connect** on the provider and enter its credentials: Secret fields are stored securely and never shown again. Saving again replaces them.
   * **Slack:** **Bot Token** and **Signing Secret**;
   * **Teams:** **App ID**, **Tenant ID** and **Client Secret**;
   * **Workvivo** *(Preview)*: **API Bearer Token**, **Workvivo Org ID** and **API Base URL**.
2. The channel card shows *Connected*. Copy the webhook URL from it.
3. **In Slack:** create a Slack app and install it to your workspace to get the bot token; copy the signing secret from *Basic Information*. Give the bot the `chat:write` and `assistant:write` scopes and the read scopes it needs. Under *Event Subscriptions*, paste the webhook URL as the Request URL (Bud answers Slack's verification) and subscribe to `message` and `app_mention` bot events.
4. **In Teams:** create an Azure Bot and set its messaging endpoint to the webhook URL. To let the agent read channel history, grant the Graph permissions for channel and chat messages. Without them the agent still replies, but sees less of the conversation.

The agent then answers in threads, shows that it is working and which tools it is calling, and posts its final answer. Its policies and approvals apply as they do everywhere else. To disconnect, use the remove icon on the channel card.

> [!TIP]
>
> Invite the bot to the channel before testing, and use a test channel first. Anyone who can message the bot can start runs, so attach a governance policy before opening a channel to a wide audience.


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