Slack Setup
Connect Hermes Agent to Slack using Socket Mode for real-time communication.
Setup Steps
- Create an app: Go to Slack API, create a new app
- Enable Socket Mode: In app settings → Socket Mode → Enable
- Get tokens:
- Bot Token (
xoxb-...): OAuth & Permissions → Install to Workspace - App Token (
xapp-...): Basic Information → App-Level Tokens → Generate (withconnections:writescope)
- Bot Token (
- Configure: Run
hermes gateway setupand select Slack, or add to~/.hermes/.envmanually:
SLACK_BOT_TOKEN=xoxb-...
SLACK_APP_TOKEN=xapp-...
SLACK_ALLOWED_USERS=U01234ABCDE # Comma-separated Slack user IDs
- Start the gateway:
hermes gateway
Optional: Home Channel
Set a default channel for cron job delivery:
SLACK_HOME_CHANNEL=C01234567890
Required Bot Scopes
Make sure your Slack app has these OAuth scopes:
chat:write— Send messageschannels:history— Read channel messagesim:history— Read DM messagesfiles:write— Upload files (audio, images)
Voice Messages
Voice messages on Slack are automatically transcribed (requires VOICE_TOOLS_OPENAI_KEY). TTS audio is sent as file attachments.
Security
warning
Always set SLACK_ALLOWED_USERS to restrict who can use the bot. Without it, the gateway denies all users by default.