Skip to main content
profClaw’s Slack integration supports both Socket Mode (recommended, no public URL needed) and HTTP webhook mode. It handles slash commands, direct messages, app mentions, and interactive components.

Capabilities

FeatureSupported
Direct messagesYes
Channel messagesYes (on mention)
Slash commandsYes
Block Kit messagesYes
Interactive buttons/menusYes
Message reactionsYes
Message threadsYes
File sharingYes
Socket ModeYes
OAuth app installationYes

Setup

Environment Variables

SLACK_BOT_TOKEN
string
required
Bot OAuth token. Format: xoxb-...
SLACK_APP_TOKEN
string
App-level token for Socket Mode. Format: xapp-... Required when SLACK_MODE=socket.
SLACK_SIGNING_SECRET
string
Signing secret for webhook verification. Required when SLACK_MODE=http.
SLACK_MODE
string
Connection mode: socket or http. Defaults to http.
SLACK_WEBHOOK_URL
string
Incoming webhook URL for simple outbound messages (optional).

Configuration Example

SLACK_BOT_TOKEN=xoxb-1234567890-...
SLACK_APP_TOKEN=xapp-1-...
SLACK_MODE=socket

Slash Commands

Register slash commands in your Slack app and profClaw will handle them:
/ask [question]        - Ask the AI a question
/run [skill] [args]    - Run a profClaw skill
/status                - Check agent status
Custom slash commands can be registered via the CLI:
profclaw slack commands add /deploy "Deploy to production" "run deploy"

Block Kit Messages

profClaw sends structured Block Kit messages for rich responses:
{
  "blocks": [
    {
      "type": "section",
      "text": { "type": "mrkdwn", "text": "Here's what I found:" }
    },
    {
      "type": "actions",
      "elements": [
        { "type": "button", "text": { "type": "plain_text", "text": "Approve" }, "action_id": "approve" }
      ]
    }
  ]
}

Notes

  • Socket Mode is strongly recommended for development and behind-firewall deployments.
  • In Socket Mode, profClaw connects outbound to Slack’s servers - no inbound ports needed.
  • The bot responds to @mention in channels and to all DMs by default.
  • Multiple Slack workspaces are supported via multi-account configuration.