Slack Setup
Connect Slack to chat with the AI agent in direct messages and receive reports in any channel.
Create a Slack App
- Go to api.slack.com/apps and click "Create New App"
- Choose "From scratch" and name your app (e.g. "SEO Dash")
- Under OAuth & Permissions, add these bot token scopes:
chat:write - Send messages
- app_mentions:read - Detect when the bot is mentioned
- im:history - Read DM history
- im:read - Access DM channels
- Install the app to your workspace
- Copy the Bot Token (starts with
xoxb-) - Under Basic Information, copy the Signing Secret
Configuration
- Go to Settings > Messaging Platforms
- Expand Slack and enter the Bot Token and Signing Secret
- Save
Event Subscriptions
- In your Slack App settings, go to Event Subscriptions and toggle it on
- Set the Request URL to:
https://your-domain.com/api/slack - Slack will send a verification challenge. SEO Dash handles this automatically.
- Under "Subscribe to bot events", add:
message.im - Save
Message Formatting
Messages are converted to Slack mrkdwn format with bold text, links, and code blocks.
Security
Slack messages are verified using HMAC-SHA256 signature verification. The signing secret ensures that only messages from Slack's servers are processed. Replay attacks are prevented by checking the request timestamp (must be within 5 minutes).