โ† Back to Blog

OpenClaw Slack Integration: Add AI to Your Workspace

Slack is where your team already lives โ€” it is where decisions get made, questions get asked, and work gets done. Now imagine having an AI assistant sitting right there in your workspace, ready to answer questions, run automations, and handle tasks around the clock.

That is exactly what the OpenClaw Slack integration gives you. With a self-hosted AI connected directly to your Slack workspace, your team gets instant access to a powerful assistant without leaving the tool they already use every day.

This guide walks you through the complete setup โ€” from creating a Slack app to sending your first message to your AI. The whole process takes about 20โ€“30 minutes. By the end, you will have a fully functional AI assistant living inside your Slack workspace.

New to OpenClaw? Read our complete guide to what OpenClaw is before continuing. If you need help getting OpenClaw installed first, check out our professional setup service.

Why Slack + OpenClaw?

Most AI tools force you to switch context โ€” open a new tab, log into a dashboard, copy-paste results back into your workflow. Slack integration eliminates that friction entirely. Your AI lives where your team works.

Here is why Slack is one of the best channels for OpenClaw:

  • Zero context switching. Ask your AI a question in the same place you are already having conversations. No new tabs, no new apps.
  • Team-wide access. Everyone in the workspace can interact with the AI. No individual accounts or logins needed.
  • Threaded conversations. Slack threads keep AI interactions organized. A question in #support stays in its own thread โ€” no channel clutter.
  • Rich formatting. OpenClaw can send formatted responses with code blocks, bullet lists, links, and even file attachments directly in Slack.
  • Channel-based permissions. Control where the AI can respond by choosing which channels to invite it to. Keep it out of sensitive channels entirely.
  • Searchable history. Every AI interaction is logged in Slack's searchable history. Need that answer from last week? Just search for it.

Already set up other channels? Check our WhatsApp integration guide or Telegram integration guide โ€” you can run all three simultaneously.

Prerequisites

Before you start, make sure you have:

  1. A running OpenClaw instance. This can be on a VPS, a Mac Mini, or a Docker container. If you do not have OpenClaw installed yet, our setup service can get you running in under 30 minutes.
  2. Admin access to a Slack workspace. You need permissions to create and install Slack apps. If you are not an admin, ask your workspace administrator to follow along.
  3. A Slack workspace on any plan (Free, Pro, Business+, or Enterprise Grid). The integration works with all plans.
  4. SSH or terminal access to your OpenClaw server to edit the configuration file and restart the gateway.

Step 1: Create a Slack App

The first step is creating a Slack app that will act as your AI assistant's identity in the workspace. Think of the Slack app as the "body" your AI wears when it shows up in Slack.

  1. Go to api.slack.com/apps and click Create New App.
  2. Choose From scratch (not from a manifest).
  3. Name your app something recognizable โ€” for example, "OpenClaw AI" or your assistant's name.
  4. Select the workspace where you want to install it.
  5. Click Create App.

You now have a Slack app shell. Next, you need to give it the right permissions.

Step 2: Configure Bot Permissions (Scopes)

Your Slack app needs specific permissions to read messages, send responses, and interact with channels. These are called "OAuth scopes."

  1. In your app settings, go to OAuth & Permissions in the left sidebar.
  2. Scroll down to Bot Token Scopes.
  3. Add the following scopes:
    • app_mentions:read โ€” Lets the bot see when someone @mentions it.
    • channels:history โ€” Lets the bot read messages in public channels it has joined.
    • channels:read โ€” Lets the bot see a list of public channels.
    • chat:write โ€” Lets the bot send messages.
    • groups:history โ€” Lets the bot read messages in private channels it has been invited to.
    • groups:read โ€” Lets the bot see private channels it is in.
    • im:history โ€” Lets the bot read direct messages sent to it.
    • im:read โ€” Lets the bot see its direct message conversations.
    • reactions:write โ€” Lets the bot add emoji reactions to messages.
    • files:read โ€” Lets the bot download files shared in conversations.
    • files:write โ€” Lets the bot upload and share files.
    • users:read โ€” Lets the bot look up user display names.

These scopes give the bot everything it needs to participate in conversations naturally. It can read messages, respond, react with emoji, and handle file attachments.

Step 3: Enable Event Subscriptions

For your bot to receive messages in real time, you need to enable Socket Mode or Event Subscriptions. OpenClaw uses Socket Mode, which is simpler because it does not require a public URL or webhook endpoint.

  1. Go to Socket Mode in the left sidebar and toggle it on.
  2. You will be prompted to create an App-Level Token. Name it something like "openclaw-socket" and give it the connections:write scope.
  3. Copy the token that starts with xapp-. You will need this later.
  4. Now go to Event Subscriptions in the left sidebar and toggle it on.
  5. Under Subscribe to bot events, add:
    • message.channels โ€” Messages in public channels.
    • message.groups โ€” Messages in private channels.
    • message.im โ€” Direct messages to the bot.
    • app_mention โ€” When someone @mentions the bot.
  6. Click Save Changes.

Step 4: Install the App to Your Workspace

  1. Go to Install App in the left sidebar.
  2. Click Install to Workspace.
  3. Review the permissions and click Allow.
  4. Copy the Bot User OAuth Token that starts with xoxb-. This is the main token OpenClaw needs.

You now have two tokens: the App-Level Token (xapp-) and the Bot User OAuth Token (xoxb-). Keep both handy.

Step 5: Configure OpenClaw

Open your OpenClaw configuration file โ€” typically openclaw.json in your OpenClaw directory or ~/.openclaw/openclaw.json.

Add or update the channels section to include Slack:

{
  "channels": {
    "slack": {
      "enabled": true,
      "botToken": "xoxb-your-bot-token-here",
      "appToken": "xapp-your-app-token-here"
    }
  }
}

Here is what each field does:

  • "enabled": true โ€” Activates the Slack channel.
  • "botToken" โ€” The Bot User OAuth Token (xoxb-) from Step 4. This authenticates the bot.
  • "appToken" โ€” The App-Level Token (xapp-) from Step 3. This enables Socket Mode for real-time messaging.

Step 6: Start the Gateway and Test

With the configuration saved, start or restart the OpenClaw gateway:

openclaw gateway restart

Watch the logs for a Slack connection confirmation. You should see something like "Slack channel connected" or "Socket Mode active."

Now test the connection:

  1. Open your Slack workspace and invite the bot to a channel: type /invite @YourBotName in any channel.
  2. Send a message mentioning the bot: @YourBotName Hey, are you there?
  3. Wait a few seconds. The bot should respond in the channel or thread.
  4. You can also send a direct message to the bot โ€” just find it in your DM list and type a message.

If the bot responds, congratulations โ€” your OpenClaw Slack integration is live.

Advanced Configuration

The basic setup gets you a working AI in Slack. Here are ways to make it more powerful.

Channel-Specific Behavior

Not every channel needs the same AI behavior. You might want the bot to:

  • Actively respond in a #support or #questions channel โ€” answering every message directed at it.
  • Listen and summarize in a #general channel โ€” only responding when explicitly mentioned.
  • Run automations in a #ops channel โ€” triggering workflows when certain keywords or patterns appear.

OpenClaw skills let you define per-channel behavior. You can configure the AI persona, response triggers, and automation rules for each channel independently.

Custom Bot Identity

Give your AI assistant a name, avatar, and personality that fits your team culture. In the Slack app settings under Basic Information, you can:

  • Set a display name and username.
  • Upload a custom profile photo or avatar.
  • Write a description so team members know what the bot does.

In OpenClaw, you can configure the AI's persona through a SOUL.md file โ€” defining its tone, expertise areas, and personality traits. This means your Slack bot can feel like a real team member rather than a generic chatbot.

Skills and Automations

OpenClaw's skill system lets you extend what the AI can do in Slack. Some popular skills for Slack workspaces include:

  • Web search. Ask your AI to look up information without leaving Slack.
  • File analysis. Send a PDF, spreadsheet, or image to the bot and ask it to summarize, extract data, or answer questions about the content.
  • Code execution. Have the AI write and run code snippets, generate reports, or process data on the fly.
  • CRM integration. Look up contacts, update deal stages, or log notes directly from Slack.
  • Scheduled reports. Configure the AI to post daily summaries, metrics, or status updates to specific channels.

Multi-Channel Setup

OpenClaw is not limited to Slack. You can run Slack alongside WhatsApp, Telegram, Discord, and more. All channels share the same AI brain, skills, and context. A conversation you start in Slack can be continued on WhatsApp if you are away from your desk.

Security Best Practices

Connecting an AI to your team workspace requires thoughtful security. Here are the key things to get right:

  • Limit channel access. Only invite the bot to channels where it is needed. Do not add it to sensitive HR, legal, or executive channels unless the AI specifically needs access.
  • Store tokens securely. Never commit your xoxb- or xapp- tokens to a Git repository. Use environment variables or a secrets manager.
  • Audit regularly. Review which channels the bot is in periodically. Remove it from channels where it is no longer needed.
  • Self-hosted = your data. Because OpenClaw is self-hosted, your Slack messages are processed on your own server. They are not sent to a third-party SaaS platform โ€” only to the AI model provider you choose (e.g., Anthropic for Claude, OpenAI for GPT).
  • Rotate tokens. If you suspect a token has been compromised, regenerate it in the Slack app settings immediately and update your OpenClaw config.

Troubleshooting Common Issues

Bot Does Not Respond

  • Make sure the bot is invited to the channel. Type /invite @YourBotName in the channel.
  • Verify both tokens (xoxb- and xapp-) are correct in your config.
  • Check the OpenClaw gateway logs for errors: openclaw gateway logs.
  • Make sure Socket Mode is enabled in the Slack app settings.
  • Confirm the event subscriptions (message.channels, message.im, etc.) are set up.

Bot Responds Slowly

  • Check your server resources. OpenClaw needs enough CPU and memory to process requests quickly.
  • The AI model response time is often the bottleneck. Faster models or shorter prompts can help.
  • If you are on a VPS, make sure the server is in a region close to Slack's infrastructure (US or EU).

Permission Errors

  • If you see "missing_scope" errors, go back to OAuth & Permissions in your Slack app settings and add the missing scope.
  • After adding new scopes, you need to reinstall the app to the workspace for the changes to take effect.

Socket Mode Connection Drops

  • Make sure your server has a stable internet connection.
  • OpenClaw automatically reconnects when the socket drops. Check the logs to confirm reconnection is happening.
  • If drops are frequent, check your server firewall โ€” outbound WebSocket connections on port 443 need to be allowed.

Real-World Use Cases

Once your OpenClaw Slack integration is running, here are some ways teams use it:

  • Instant IT support. Employees ask the AI common IT questions โ€” password resets, software access, VPN setup guides โ€” and get instant answers without waiting for the help desk.
  • Sales enablement. Sales reps ask the AI to look up prospect information, draft follow-up emails, or generate talking points before a call, all without leaving Slack.
  • Engineering assistant. Developers ask the AI to explain code, debug errors, write documentation, or generate boilerplate โ€” right in the #engineering channel.
  • Meeting summaries. After a meeting, paste the notes or transcript into Slack and ask the AI to generate action items, summaries, or follow-up tasks.
  • Onboarding buddy. New hires can ask the AI company-specific questions โ€” "Where do I find the brand guidelines?" or "What is the PTO policy?" โ€” and get instant, accurate answers.

Companies across major tech hubs โ€” from San Francisco to Austin to New York โ€” are using OpenClaw with Slack to give their teams an AI-powered edge.

Frequently Asked Questions

Is the OpenClaw Slack integration free?

The Slack integration itself is free โ€” OpenClaw is open source and there are no per-message fees for the Slack channel. You will need a Slack workspace (free or paid plan) and API credentials from a Slack app you create. Your only ongoing costs are the server running OpenClaw and your AI model API usage (e.g., Claude or GPT-4).

Can OpenClaw respond in Slack threads?

Yes. OpenClaw supports threaded conversations in Slack. When a user replies in a thread, OpenClaw can follow the thread context and respond within the same thread, keeping channels organized. This is configured automatically when you enable the Slack channel.

Does OpenClaw work with Slack free plan workspaces?

Yes. OpenClaw works with Slack free, Pro, Business+, and Enterprise Grid plans. The Slack Bot Token API works the same across all plans. The only limitation on free plans is the 90-day message history, but that does not affect OpenClaw since it maintains its own conversation context.

Can I use OpenClaw in multiple Slack channels?

Absolutely. You can invite the OpenClaw bot to as many channels as you want. You can configure different behaviors per channel โ€” for example, the bot might actively respond in a support channel but only listen and summarize in a general channel. Channel-specific behavior is controlled through OpenClaw skills and configuration.

Will OpenClaw read all messages in my Slack workspace?

No. OpenClaw only receives messages in channels where the bot has been explicitly invited. It cannot read messages in channels it has not joined, and it cannot access direct messages between other users. You have full control over which channels the bot can see.

Can I connect OpenClaw to Slack and WhatsApp at the same time?

Yes. OpenClaw supports multiple channels simultaneously. You can run Slack, WhatsApp, Telegram, Discord, and more โ€” all connected to the same AI assistant with shared context and skills. Messages from any channel are processed by the same underlying AI.

What's Next?

You now have a fully working OpenClaw Slack integration. Your team has an AI assistant available 24/7, right where they already work. Here are some next steps to get even more value:

Need Help Setting Up Slack?

The Slack integration is one of the most popular OpenClaw channels, and for good reason โ€” it puts AI directly into your team's workflow. But every workspace is different, and getting permissions, scopes, and configuration right can be tricky.

If you want someone to handle the setup for you, our professional setup service includes full Slack configuration. We will create the app, configure permissions, connect it to your OpenClaw instance, and test it โ€” all in a 30-minute call while you watch.

Ready to add AI to your Slack workspace?

Book a free 30-minute call and we'll set everything up for you โ€” Slack app, permissions, skills, the works.

Book Your Free Call โ†’