# Slack Bot

> The FlyMyAI bot posts and reads in the Slack channels it was added to.

Lets an agent post and read as the FlyMyAI bot in the channels of a Slack
workspace it was added to. Connect your Slack workspace once via OAuth - no
token to paste.

To search Slack, read your DMs, share files or work with canvases as
yourself, use the default [Slack](https://docs.flymy.ai/mcp/slack.md) connector instead.

## What it can do

- List channels and users
- Read recent messages in a channel or thread
- Post messages and thread replies
- Add and remove reactions

## How to get credentials

Slack uses OAuth - there's no token to copy or custom app to build.

1. In FlyMyAI, open **Slack Bot** in the MCP list and click **Connect** to
   start the setup flow.
2. A Slack authorization screen opens. Pick the target workspace, sign in,
   and click **Allow** to approve the requested scopes.
3. You're redirected back to FlyMyAI; the tool flips to **Configured**.

The agent posts as the FlyMyAI Slack app. For any channel the agent should
read or post in that it isn't already in, invite it with `/invite @FlyMyAI`
in that channel.

## Fields to fill in FlyMyAI

No fields - the **Connect Slack** OAuth flow stores the workspace token
automatically. To switch workspaces, remove the tool and reconnect.

## Troubleshooting

- **`not_in_channel`** - invite the app to the channel with
  `/invite @FlyMyAI`.
- **OAuth denied** - approve the FlyMyAI app on the Slack consent screen; a
  workspace admin may need to allow third-party apps or approve the install.
- **Need more access** - reconnect via **Connect Slack** to re-run the OAuth
  flow with the current scopes.

## Links

- [Slack OAuth & permissions](https://api.slack.com/authentication/oauth-v2)
- [OAuth scopes reference](https://api.slack.com/scopes)
