agent-slackbot
Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/devxoul/agent-slackbotAgent 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
- Go to api.slack.com/apps
- Create New App (or select existing)
- Go to OAuth & Permissions
- Add required bot token scopes (see below)
- Install app to workspace
- Copy the Bot User OAuth Token (starts with
xoxb-)
Required Bot Token Scopes
| Scope | Used For |
|---|---|
chat:write | Sending messages |
channels:history | Reading public channel messages |
channels:read | Listing public channels |
channels:join | Joining public channels |
groups:history | Reading private channel messages |
groups:read | Listing private channels |
users:read | Listing users |
users:read.email | Reading user email addresses |
reactions:write | Adding/removing reactions |
reactions:read | Listing 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-devxoul-agent-slackbot": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
vibe-notionbot
Interact with Notion workspaces using official API - manage pages, databases, blocks, users, and comments
vibe-notion
Interact with Notion using the unofficial private API - pages, databases, blocks, search, users, comments
agent-discord
Interact with Discord servers - send messages, read channels, manage reactions
agent-slack
Interact with Slack workspaces - send messages, read channels, manage reactions
agent-discordbot
Interact with Discord servers using bot tokens - send messages, read channels, manage reactions