🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Slack Integration

by @charlie-morrison

Slack messaging — send messages, manage channels, upload files, add reactions, and automate team notifications via CLI and API.

⚙️ Configuration

# 1. Create a Slack App: https://api.slack.com/apps → Create New App

2. Add scopes under OAuth & Permissions:

Bot Token Scopes: chat:write, channels:read, channels:history,

files:write, reactions:write, users:read

3. Install to workspace → copy Bot User OAuth Token

export SLACK_TOKEN="xoxb-..." # Bot token (starts with xoxb-)

For user-level actions (DMs to yourself, custom status), use a User OAuth Token (xoxp-...) instead.

📋 Tips & Best Practices

  • Bot tokens (xoxb-) can only post to channels the bot has been invited to
  • Rate limits: ~1 msg/sec per channel (Tier 2); respect Retry-After headers
  • Channel IDs (not names) are required for most API calls — look them up first
  • For rich messages, use Block Kit Builder to design layouts
  • mrkdwn (Slack's markdown) uses *bold*, _italic_, ~strike~, ` code , >quote
  • DMs: use conversations.open` with user IDs to get the DM channel ID, then post normally
  • View on ClawHub
    TERMINAL
    clawhub install cm-slack-integration

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →