Overview
This guide walks you through setting up profClaw as a Slack bot that can respond to messages, execute tools, and run agentic workflows directly in your Slack channels.Prerequisites
- profClaw installed and running (mini or pro mode) - see Installation
- A Slack workspace where you have admin access
- An AI provider configured (e.g., Anthropic or OpenAI) - see AI Providers
Step 1: Create a Slack App
Create the app
Go to api.slack.com/apps and click Create New App.Select From scratch, name it “profClaw”, and choose your workspace.
Configure Bot Token Scopes
Navigate to OAuth and Permissions and add these Bot Token Scopes:
| Scope | Purpose |
|---|---|
chat:write | Send messages |
app_mentions:read | Respond to @mentions |
channels:history | Read channel messages |
channels:read | List channels |
files:read | Access shared files |
files:write | Upload files |
im:history | Read direct messages |
im:read | Access DM channels |
im:write | Send direct messages |
Enable Socket Mode
Go to Socket Mode and enable it. Create an app-level token with
connections:write scope.Save the token - it starts with xapp-.Socket Mode connects to Slack over a persistent WebSocket, so you do not need a public webhook URL for development.Enable Events
Go to Event Subscriptions and enable events. Subscribe to:
message.channelsmessage.imapp_mention
Install to workspace
Go to Install App and click Install to Workspace. Authorize the permissions.Save the Bot User OAuth Token - it starts with
xoxb-.Step 2: Configure profClaw
Set the required environment variables:.profclaw/settings.yml:
Step 3: Start profClaw
Step 4: Test It
Invite the bot to a channel first:Configuration Options
| Variable | Default | Description |
|---|---|---|
SLACK_RESPONSE_THREAD | true | Reply in threads instead of inline |
SLACK_TYPING_INDICATOR | true | Show typing indicator while processing |
SLACK_MAX_MESSAGE_LENGTH | 4000 | Max message length (Slack API limit) |
SLACK_ALLOWED_CHANNELS | * | Comma-separated channel IDs to respond in |