Connect Slack

Connect a Slack bot to a Buda agent with Socket Mode — chat in channels or DMs, no public webhook to host.

Put your agent inside your team's Slack — an ops copilot, a support responder, an internal knowledge bot. Buda connects with two tokens over Socket Mode, so there's no public webhook URL to host. Once connected, the bot answers in channels and DMs.

A Slack message answered by a Buda agent

Connect the bot

Create a Slack app

Go to api.slack.com/apps, click Create New App → From scratch, name it (e.g. Buda Assistant), choose your workspace, and click Create App.

Enable Socket Mode and get the app-level token

Open Socket Mode and toggle it on. When prompted, create an app-level token: name it (e.g. buda-socket), add the connections:write scope, and Generate. Copy the token — it starts with xapp-.

Add bot token scopes

Go to OAuth & Permissions → Bot Token Scopes and add:

  • app_mentions:read — receive @mentions in channels
  • channels:history — read channel history
  • chat:write — send messages
  • im:history, im:read, im:write — read and open DMs
  • users:read — resolve display names

Subscribe to events

Open Event Subscriptions, toggle Enable Events, and under Subscribe to bot events add app_mention and message.im. Click Save Changes.

Install and get the bot token

Back in OAuth & Permissions, click Install to Workspace and authorize. Copy the Bot User OAuth Token — it starts with xoxb-.

Configure the channel in Buda

Open Settings → Channels, click Add Channel, and select Slack. Paste both tokens — Bot User OAuth Token (xoxb-) and App-Level Token (xapp-) — optionally set a label and target agent, then click Connect.

Start chatting

  • In a channel: invite the bot with /invite @YourBotName, then @mention it.
  • In a DM: open a direct message and send anything — no @mention needed.

Troubleshooting

SymptomFix
No reply in a channelInvite the bot first, then @mention it; confirm app_mention is subscribed
No reply in DMsConfirm message.im and the im:* scopes are added
Connection failsRe-check that both xoxb- and xapp- tokens are pasted correctly

On this page