Step 1: Create a Slack App
- Go to api.slack.com/apps → Create New App → From scratch
- Name it (e.g. “CORE Butler”) and pick your workspace → Create App
Step 2: Configure OAuth scopes
Go to OAuth & Permissions in the sidebar. Bot Token Scopes: add all of these:| Scope | Why |
|---|---|
app_mentions:read | Receive @mention events |
chat:write | Send messages and replies |
im:history | Read DM history |
im:read | Access DM channels |
im:write | Open DM conversations |
users:read | Look up user info |
channels:read | Access channel metadata |
channels:history, channels:read, channels:write, chat:write, groups:history, groups:read, groups:write, im:history, im:read, im:write, mpim:history, mpim:read, mpim:write, reactions:read, reactions:write, search:read, stars:read, team:read, users:read
Redirect URL: under Redirect URLs, add:
Step 3: Enable Event Subscriptions
Go to Event Subscriptions → toggle Enable Events on. Request URL:app_mention: fires when someone @mentions your bot in a channelmessage.im: fires when someone DMs your bot
Step 4: Set the signing secret
Go to Basic Information → App Credentials → copy the Signing Secret. Add to your.env:
Step 5: Connect in CORE dashboard
- Open your CORE dashboard → Integrations → find Slack → click Connect
- You’ll be redirected to Slack’s OAuth page: authorise the app
- The app is now installed in your workspace with both a bot token and your user token
Step 6: Talk to your butler
Via DM: Open Slack → find your app under Apps in the sidebar → send a message directly. Via @mention: Go to any channel → type/invite @YourAppName to add the bot → then use @YourAppName your message in any message.
Verify it’s working:
