Skip to main content

How to Connect Slack to OpenClaw

A complete guide to integrating Slack with OpenClaw using ClawLink. Send messages, manage channels, and automate your team communication.

What You Can Do

Once connected, your OpenClaw agent can:
  • Send messages - Post to channels or DMs
  • Read messages - Fetch recent messages from channels
  • Manage channels - Create channels, manage settings
  • React to messages - Add emoji reactions
  • Thread replies - Reply in message threads

Prerequisites

  • A Slack workspace where you have admin rights (or can create apps)
  • A Slack account

Step 1: Create a Slack App

  1. Go to api.slack.com/apps
  2. Click Create New App
  3. Choose From scratch
  4. Select your workspace
  5. Name it “ClawLink”

Step 2: Add Bot Token Scopes

  1. Go to OAuth & Permissions
  2. Under Bot Token Scopes, add:
    • chat:write - Send messages
    • channels:read - List channels
    • channels:history - Read channel messages
    • groups:read - Read private channels
    • users:read - List users
    • reactions:write - Add reactions

Step 3: Install App to Workspace

  1. Scroll to the top of OAuth & Permissions
  2. Click Install to Workspace
  3. Review permissions and click Allow

Step 4: Get Your Bot Token

After installation, you’ll see a Bot User OAuth Token starting with xoxb- Copy this token!
Never share this token publicly. It allows full access to your bot.
  1. Go to your ClawLink dashboard
  2. Navigate to Integrations
  3. Find Slack and click Connect
  4. Paste your Slack Bot Token
  5. Click Save

Example Usage

Send a Message

“Post in #general that the daily standup is starting in 5 minutes.”

Read Channel Messages

“What were the main discussion points in #engineering yesterday?”

Send a DM

“Send a DM to @john about the new feature launch.”

Create a Thread

“Reply to the deployment notification in #devops with ‘Deploy successful!’”

API Reference

FunctionDescription
slack_send_messageSend a message to a channel or user
slack_read_messagesRead recent messages
slack_create_channelCreate a new channel
slack_add_reactionAdd emoji reaction to a message

Troubleshooting

”Invalid token”

  • Make sure you copied the Bot User OAuth Token (starts with xoxb-)
  • Not the signing secret or webhook URL

”Channel not found”

  • Make sure the bot is added to the channel
  • Use channel ID instead of name

”Permission denied”

  • Verify all required scopes are added
  • Reinstall the app after adding scopes