Slack App Setup
Add your NeuroGen AI agent to your Slack workspace. Your app can respond to mentions and DMs.
Prerequisites
- A NeuroGen account with an AI agent created
- A Slack account
- Admin access to a Slack workspace
Step 1: Create Your Slack App
-
Go to api.slack.com/apps
-
Click the green "Create an App" button
⚠️ Note: Ignore the "Your App Configuration Tokens" section at the bottom - that's not what you need.
-
Choose "From scratch"
-
Enter an App Name (e.g., "NeuroGen Assistant")
-
Select your Workspace
-
Click "Create App"
You'll be taken to the app's "Basic Information" page with a left sidebar for configuration.
Step 2: Add Bot Scopes
-
In the left sidebar, click "OAuth & Permissions"
-
Scroll down to the "Scopes" section
-
Under "Bot Token Scopes", click "Add an OAuth Scope"
-
Add these scopes:
| Scope | Purpose |
|---|---|
chat:write |
Send messages |
app_mentions:read |
Respond to @mentions |
im:history |
Read direct messages |
Do NOT add
links:read- it's not needed and can cause issues.
Step 3: Enable Direct Messages
-
In the left sidebar, click "App Home"
-
Scroll down the page until you find the "Show Tabs" section (near the bottom)
-
Check the box: "Allow users to send Slash commands and messages from the messages tab"
-
The page saves automatically
Troubleshooting: If you don't see "Show Tabs", look for "Messages Tab" toggle or "Your App's Presence in Slack" section.
Step 4: Set Up Event Subscriptions
-
In the left sidebar, click "Event Subscriptions"
-
Toggle "Enable Events" to ON
-
For Request URL, enter:
https://neurogen.cc/api/slack/eventsWait for the green "Verified" checkmark. -
Scroll down to "Subscribe to bot events"
-
Click "Add Bot User Event" and add:
| Event | Purpose |
|---|---|
message.im |
Receive direct messages |
app_mention |
Receive @mentions |
- Click Save Changes
⚠️ Important: Do NOT add anything to "App Unfurl Domains" - leave it empty. Adding domains there can break your workspace access.
Step 5: Install to Workspace
-
In the left sidebar, click "Install App"
-
Click "Install to Workspace"
-
Click "Allow" to grant permissions
-
Copy the "Bot User OAuth Token" (starts with
xoxb-)
Use the Bot User OAuth Token, not the User OAuth Token.
Step 6: Connect to NeuroGen
-
Go to Dashboard → Integrations
-
Click Slack
-
Paste your Bot User OAuth Token
-
Select an AI Agent
-
Click Connect Slack App
Step 7: Test Your Bot
Option 1: Direct Message
- In Slack, find "Apps" in the left sidebar
- Click your app name
- Send a message like "Hello"
Option 2: In a Channel
- Go to any channel
- Type
/invite @YourAppName - Then type
@YourAppName hello
Troubleshooting
Greyed Out Screen / Can't Access Workspace
This is usually caused by App Unfurl Domains:
- Go to api.slack.com/apps → your app
- Click "Event Subscriptions"
- Scroll to "App Unfurl Domains"
- Remove all domains listed there
- Save and reinstall the app
"Sending messages to this app has been turned off"
The Messages Tab isn't enabled:
- Go to api.slack.com/apps → your app
- Click "App Home"
- Scroll down to "Show Tabs"
- Check "Allow users to send Slash commands and messages from the messages tab"
- Reinstall the app
Bot Not Responding
- Check Event Subscriptions is enabled with green checkmark
- Verify Request URL:
https://neurogen.cc/api/slack/events - Make sure
message.imandapp_mentionevents are subscribed - Reinstall the app after any changes
Can't Find the Bot in Slack
- In Slack sidebar, look for "Apps" section
- If not visible, click "More" → "Apps"
- Or press Ctrl+K and search for your app name
Token Errors
- Make sure you copied the Bot User OAuth Token (starts with
xoxb-) - NOT the User OAuth Token (starts with
xoxp-)
What You DON'T Need
These are not required and can cause problems:
- ❌ Redirect URLs - only needed for public distribution
- ❌
links:readscope - causes unfurl domain requirements - ❌
link_sharedevent - causes unfurl domain requirements - ❌ App Unfurl Domains - can break workspace access
- ❌ User OAuth Token - use Bot token instead
Quick Reference
| Setting | Location | Value |
|---|---|---|
| Bot Scopes | OAuth & Permissions | chat:write, app_mentions:read, im:history |
| Messages Tab | App Home → Show Tabs | ✅ Enabled |
| Events URL | Event Subscriptions | https://neurogen.cc/api/slack/events |
| Bot Events | Event Subscriptions | message.im, app_mention |
| Unfurl Domains | Event Subscriptions | Leave empty |
Need Help?
Contact support@neurogen.cc