Create a Slack bot
This page walks you through building a Slack app that Aside can drive. Slack needs two tokens: a bot token (xoxb-) and an app-level token (xapp-) for Socket Mode. Socket Mode means Aside connects out to Slack; you host no server and open no ports.
Before you start
- You need permission to install apps in your Slack workspace.
- Aside must be running on your device for the bot to respond.
Create the app from a manifest
- Open api.slack.com/apps and choose
Create New App > From a manifest. - Pick your workspace.
- Clear the manifest input and paste this:
- Create the app, then choose
Install to Workspaceand authorize it.
Finish the Slack configuration
Slack may finish creating the app before every manifest permission reaches the first installation. Complete these checks before copying credentials or connecting the bot to Aside:- Open
Go to App Settingsafter the installation finishes. - Complete
Go to Agentsif Slack shows that prompt. - If Slack says the permission scopes changed, choose
reinstall your appand authorize it again. - Open
OAuth & Permissions. Confirm thatBot Token Scopeslistsassistant:write,chat:write,im:write,reactions:write,users:read,files:read,channels:history,groups:history,im:history, andmpim:history. - Open
Event Subscriptions. Confirm that events are enabled and the bot subscribes tomessage.channels,message.groups,message.im,message.mpim,app_home_opened, andapp_context_changed.
Collect the tokens
- After the final scope check, copy the Bot User OAuth Token from
OAuth & Permissions. It starts withxoxb-. - Open
Basic Information > App-Level Tokens, create a token with theconnections:writescope, and copy it. It starts withxapp-.
Connect it to Aside
InSettings > Channels, choose Slack, pick Manual, and paste both tokens. The connection shows as connected on the Channels page once the Socket Mode handshake succeeds.Test it
Send the bot a direct message in Slack. If it asks for pairing, approve the request in the connection’sPairing tab, then message the bot again.In channels, invite the bot with /invite @Aside. Mention it in a root message to start a conversation; later replies in that thread continue without another mention. If the root did not mention the bot, mention it once inside the thread to start a new conversation there. Turning off Require mentions in threads lets the first unmentioned thread reply start that conversation instead, but channel root messages still require a mention. Earlier messages from paired people in that thread are supplied as context. Direct messages always reach the bot.To run /model, /effort, /sessions, /usage, or /new in a thread, type a leading space ( /model) so Slack sends the text as a message. Slack intercepts a bare / and does not deliver third-party slash commands inside threads.