Skip to main content

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

1

Create the app

Go to api.slack.com/apps and click Create New App.Select From scratch, name it “profClaw”, and choose your workspace.
2

Configure Bot Token Scopes

Navigate to OAuth and Permissions and add these Bot Token Scopes:
3

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.
4

Enable Events

Go to Event Subscriptions and enable events. Subscribe to:
  • message.channels
  • message.im
  • app_mention
5

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-.
6

Copy the Signing Secret

Go to Basic Information and copy the Signing Secret from the App Credentials section.

Step 2: Configure profClaw

Set the required environment variables:
Or add to .profclaw/settings.yml:

Step 3: Start profClaw

You should see:
Run profclaw doctor --chat to verify Slack connectivity without starting the full server.

Step 4: Test It

Invite the bot to a channel first:
Then mention it or send a direct message:
The bot replies in a thread by default, showing tool execution progress as it runs.

Configuration Options

Security Considerations

The Slack bot inherits your profClaw security mode. In permissive mode, anyone who can message the bot can execute file operations and shell commands. Use standard or ask mode for any shared workspace.
Restrict which channels the bot responds in using allowlists:
See Security Overview for how security modes affect tool execution.

Multi-Workspace Setup

To run the bot across multiple Slack workspaces, configure multiple accounts:

Chat Providers Overview

Connect profClaw to Discord, Telegram, WhatsApp, and more.

Docker Deployment

Run profClaw and your Slack bot in production with Docker.