Slack app setup
i
This feature is available on the Scale plan.
Create a Slack app to enable the EventCatalog bot in your workspace. You can create the app using a manifest (recommended) or manually configure all settings.
Create from manifest (recommended)​
The fastest way to get started. The manifest automatically configures all required permissions and settings.
Steps​
- Navigate to api.slack.com/apps
- Click Create New App → From an app manifest
- Select your workspace and click Next
- Choose YAML and paste this manifest:
display_information:
name: EventCatalog Bot
description: Query your EventCatalog directly from Slack
background_color: "#000000"
features:
bot_user:
display_name: EventCatalog
always_online: true
oauth_config:
scopes:
bot:
- app_mentions:read
- chat:write
- reactions:read
- reactions:write
- channels:history
settings:
event_subscriptions:
bot_events:
- app_mention
- message.channels
interactivity:
is_enabled: false
org_deploy_enabled: false
socket_mode_enabled: true
token_rotation_enabled: false
- Click Next, review the summary, and click Create
Get credentials​
After creating the app, collect three credentials needed to run the bot.
App-Level Token​
- Go to Basic Information → App-Level Tokens
- Click Generate Token and Scopes
- Name:
socket-mode-token - Add scope:
connections:write - Click Generate and copy the token (starts with
xapp-) - Save this as
SLACK_APP_TOKEN
Bot Token​
- Go to OAuth & Permissions
- Click Install to Workspace
- Review permissions and click Allow
- Copy the Bot User OAuth Token (starts with
xoxb-) - Save this as
SLACK_BOT_TOKEN
Signing Secret​
- Go to Basic Information → App Credentials
- Copy the Signing Secret
- Save this as
SLACK_SIGNING_SECRET
Setup Slack app manually
If you prefer to configure settings yourself, follow these steps.
Create the app​
- Navigate to api.slack.com/apps
- Click Create New App → From scratch
- Name your app (e.g., "EventCatalog Bot") and select your workspace
- Click Create App
Enable Socket Mode​
- Click Socket Mode in the left sidebar
- Toggle Enable Socket Mode to On
- Create an App-Level Token when prompted:
- Name:
socket-mode-token - Scope:
connections:write
- Name:
- Click Generate
- Copy the token (starts with
xapp-) - this isSLACK_APP_TOKEN
Configure permissions​
- Click OAuth & Permissions in the left sidebar
- Scroll to Scopes → Bot Token Scopes
- Add these scopes:
app_mentions:read- Receive @mention eventschat:write- Send messagesreactions:read- Read reactionsreactions:write- Add and remove reactionschannels:history- Read public channel messages
Enable events​
- Click Event Subscriptions in the left sidebar
- Toggle Enable Events to On
- Expand Subscribe to bot events
- Add these events:
app_mentionmessage.channels
Install the app​
- Click OAuth & Permissions in the left sidebar
- Click Install to Workspace
- Review permissions and click Allow
- Copy the Bot User OAuth Token (starts with
xoxb-) - this isSLACK_BOT_TOKEN
Get signing secret​
- Click Basic Information in the left sidebar
- Scroll to App Credentials
- Copy the Signing Secret - this is
SLACK_SIGNING_SECRET
Optional: Private channels and DMs​
By default, the bot only reads thread context in public channels. To enable thread context in private channels and DMs, add these additional scopes:
groups:history- Private channelsim:history- Direct messagesmpim:history- Group DMs
After adding scopes, reinstall the app to your workspace.