ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

agent-slackbot

Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/devxoul/agent-slackbot
Or

Agent SlackBot

A TypeScript CLI tool that enables AI agents and humans to interact with Slack workspaces using bot tokens (xoxb-). Unlike agent-slack which extracts user tokens from the desktop app, agent-slackbot uses standard Slack Bot tokens for server-side and CI/CD integrations.

Quick Start

# Set your bot token
agent-slackbot auth set xoxb-your-bot-token

# Or set with a custom bot identifier for multi-bot setups
agent-slackbot auth set xoxb-your-bot-token --bot deploy --name "Deploy Bot"

# Verify authentication
agent-slackbot auth status

# Send a message
agent-slackbot message send C0ACZKTDDC0 "Hello from bot!"

# List channels
agent-slackbot channel list

Authentication

Bot Token Setup

agent-slackbot uses Slack Bot tokens (xoxb-) which you get from the Slack App configuration:

# Set bot token (validates against Slack API before saving)
agent-slackbot auth set xoxb-your-bot-token

# Set with a custom bot identifier
agent-slackbot auth set xoxb-your-bot-token --bot deploy --name "Deploy Bot"

# Check auth status
agent-slackbot auth status

# Clear stored credentials
agent-slackbot auth clear

Multi-Bot Management

Store multiple bot tokens and switch between them:

# Add multiple bots
agent-slackbot auth set xoxb-deploy-token --bot deploy --name "Deploy Bot"
agent-slackbot auth set xoxb-alert-token --bot alert --name "Alert Bot"

# List all stored bots
agent-slackbot auth list

# Switch active bot
agent-slackbot auth use deploy

# Use a specific bot for one command (without switching)
agent-slackbot message send C0ACZKTDDC0 "Alert!" --bot alert

# Remove a stored bot
agent-slackbot auth remove deploy

# Disambiguate bots with same ID across workspaces
agent-slackbot auth use T123456/deploy

The --bot <id> flag is available on all commands to override the active bot for a single invocation.

Getting a Bot Token

  1. Go to api.slack.com/apps
  2. Create New App (or select existing)
  3. Go to OAuth & Permissions
  4. Add required bot token scopes (see below)
  5. Install app to workspace
  6. Copy the Bot User OAuth Token (starts with xoxb-)

Required Bot Token Scopes

ScopeUsed For
chat:writeSending messages
channels:historyReading public channel messages
channels:readListing public channels
channels:joinJoining public channels
groups:historyReading private channel messages
groups:readListing private channels
users:readListing users
users:read.emailReading user email addresses
reactions:writeAdding/removing reactions
reactions:readListing reactions

Environment Variables (CI/CD)

For CI/CD pipelines, set these environment variables instead of using auth set:

export E2E_SLACKBOT_TOKEN=xoxb-your-bot-token
export E2E_SLACKBOT_WORKSPACE_ID=T123456
export E2E_SLACKBOT_WORKSPACE_NAME="My Workspace"

Memory

Metadata

Author@devxoul
Stars2387
Views1
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-devxoul-agent-slackbot": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.