docs/src/content/docs/en/relay-agents-in-im-with-bots/slack.md
Slack is for teams that want agent messages in an existing channel, DM, or workspace app. You need a Bot Token and an App Token.
New to bots? Start with the "Bots And IM Agent Relay" section in Detailed Configuration to understand the overall flow and the Forward agent messages and Handoff modes, then come back here for a single platform.
| Name in the Slack dashboard | CCR field | Looks like | When you need it |
|---|---|---|---|
| Bot User OAuth Token | Bot Token | xoxb-... | Required — lets the bot send and receive |
| App-Level Token | App Token | xapp-... | Lets Socket Mode establish the connection |
Create New App.From scratch.CCR.Create App.Socket Mode on the left.Socket Mode.ccr-socket.connections:write scope.xapp-... App-Level Token for CCR's App Token.OAuth & Permissions.Bot Token Scopes under Scopes.app_mentions:read, channels:history, channels:read, chat:write, im:history, im:read, im:write.files:read and files:write to send/receive files.groups:history and groups:read for private channels.Install to Workspace at the top and authorize.Bot User OAuth Token (starts with xoxb-) for CCR's Bot Token.Skip this if you only use DMs.
/invite @YourBotName in the message box.Without an invite, the bot usually only gets DMs — not channel messages.
xoxb-... into Bot Token.xapp-... into App Token.For lock-screen-only alerts, use Handoff without Forward agent messages.
How to tell it worked: Slack shows the agent's message, and when you reply, the agent continues.
xapp- and has connections:write.channels:* / groups:* scopes. Reinstall to the workspace after adding scopes.