- Listens for mentions in Slack channels
- Processes questions using the same agent as the web chat interface
- Returns answers with SQL queries, data tables, and visualizations
- Maintains conversation context within Slack threads
The Slack bot uses the same agent context, rules, and capabilities as your web chat interface. Any improvements to your agent automatically benefit Slack users.
Setup
Step 1: Create a Slack App
- Go to https://api.slack.com/apps/
- Click “Create New App”
- Select “From scratch”
- Name your app (e.g., “dazense-chat”)
- Select your workspace
- Click “Create App”
Step 2: Configure Bot Scope
- In your Slack app settings, go to “OAuth & Permissions”
- Scroll to “Bot Token Scopes”
- Add the following scopes:
app_mentions:read- To receive mentions of your botchat:write- To send messages to Slack
Step 3: Install App to Workspace
- Still in “OAuth & Permissions”, scroll to the top
- Click “Install to Workspace”
- Review permissions and click “Allow”
Step 4: Connect your Slack Bot to dazense Agent
Option 1: configuration within dazense UI- From “OAuth & Permissions” page, copy the Bot User OAuth Token (starts with
xoxb-) - In dazense UI, go to Settings / Project / Slack integration and paste the Bot Token
- In Slack interface, go to “Basic Information” in your app settings and copy the Signing Secret
- In dazense UI, paste the signing secret
- From “OAuth & Permissions” page, copy the Bot User OAuth Token (starts with
xoxb-) - In Slack interface, go to “Basic Information” in your app settings and copy the Signing Secret
- Add these variables to your deployed container
Step 5: Configure Event & Interactions Subscriptions
- In dazense UI, go to the Settings / Project / Slack integration You will see 2 urls: Event Subscriptions -> Request URL and Interactivity & Shortcuts -> Request URL
- Go to “Event Subscriptions” in your app settings
- Enable “Enable Events”
- Set the Request URL to the Event Subscriptions -> Request URL from dazense UI
Example:
- Under “Subscribe to bot events”, add:
app_mentions- Listen for when users mention your bot
- Click “Save Changes”
- Go to “Interactivity & Shortcuts” in your app settings
- Enable “Interactivity”
- Set the Request URL to Interactivity & Shortcuts -> Request URL
Example:
- Click “Save Changes”
Step 6: Add Bot to Channels
- In Slack, go to any channel where you want the bot
- Type
/invite @dazense-chat(or your bot’s name) - The bot will now listen for mentions in that channel
Usage
Ask Questions Mention the bot in any channel where it’s been added:- Process your question using the same agent as the web interface
- Generate SQL queries based on your context
- Execute queries against your connected databases
- Return results in a formatted Slack message
- Send you the link to the full conversation to open it in browser UI
The bot replies in threads to keep conversations organized. Make sure to reply in the thread for follow-up questions. You need to use @dazense-chat at every question, even in thread, for the bot to see it.
What’s Next?
- Chat Overview - Learn about the web chat interface
- Self-Hosting Guide - Deploy dazense with Docker or on your own Cloud Run instance
