Use the Slack Channel Monitor when you want Agent Canvas to watch a Slack channel and trigger an OpenHands agent when a message matches your instructions. Common examples include:Documentation Index
Fetch the complete documentation index at: https://allhandsai-docs-onboarding-agent-canvas.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Responding when someone mentions a support keyword
- Turning bug reports into GitHub issues
- Summarizing incidents from an alerts channel
- Running a repository task from a Slack request
Prerequisites
Before you start, make sure you have:- Agent Canvas installed and running
- An LLM configured for the backend that will run the automation
- Permission to create and install a Slack app in your workspace
- Access to install MCP servers and save secrets in Agent Canvas
Create the Slack App
- Go to the Slack API dashboard.
- Click
Create New App. - Select
From scratch. - Enter an app name, such as
OpenHands. - Choose the workspace where you want to install the bot.
- Click
Create App.
Add Bot Token Scopes
Before Slack gives you a bot token, you need to define what the bot is allowed to do.- In the Slack app settings, open
OAuth & Permissions. - Scroll to
Scopes. - Under
Bot Token Scopes, clickAdd an OAuth Scope. - Add the scopes required by the Slack MCP server and your monitor.
| Scope | Purpose |
|---|---|
app_mentions:read | View messages that directly mention the app in conversations it belongs to |
channels:read | List and read public channel metadata |
channels:history | Read messages from public channels |
chat:write | Send messages as the app |
emoji:read | View custom emoji in the workspace |
groups:history | Read messages from private channels the app has been added to |
reactions:read | View emoji reactions and associated message content |
reactions:write | Add and edit emoji reactions |
users:read | Resolve Slack users and profiles |
Slack may require you to reinstall the app after changing scopes.
Install the App and Copy the Bot Token
- Stay on the
OAuth & Permissionspage. - Click
Install to Workspace. - Review the requested permissions.
- Click
Allow. - Copy the
Bot User OAuth Tokenfrom theOAuth Tokenssection.
Invite the Bot to Channels
The bot does not automatically join channels. Invite it to every channel you want the automation to monitor. The Agent Canvas backend can only watch channels the bot can access.Find Your Slack Workspace ID
The Slack MCP server also needs your workspace ID. You can find it from your Slack URL or workspace settings. See Slack’s guide to locating your Slack URL or ID.Add the Slack MCP Server
The Slack MCP server gives the agent tools for reading Slack channel activity and posting responses.- In Agent Canvas, check the backend switcher in the bottom-left corner.
- Make sure the active backend is the backend where you want the Slack monitor to run.
- Open
Customize. - Open
MCP Servers. - Select
Slackfrom the MCP library. - Paste the bot token.
- Enter your Slack workspace ID.
- Save the MCP server configuration.
Add the Slack Bot Token as a Secret
Some automations also need the token available as a backend secret.- Open
Settings. - Open
Secrets. - Click
Add a new Secret. - Set the secret name to
SLACK_BOT_TOKEN. - Paste the bot token as the secret value.
- Save the secret.
Start the Slack Channel Monitor Workflow
- Open
Automatein the left navigation. - Find
Start from a proven workflow. - Choose the Slack channel monitor workflow.
- Agent Canvas opens a new conversation with a prefilled setup prompt.
- Send the prompt as-is, or edit it first if you already know what you want.
Customize the Monitor
You do not need to know every detail before sending the prefilled prompt. The agent will ask follow-up questions to clarify:- The Slack channel or channels to monitor
- The message pattern, keyword, or mention that should trigger the agent
- What the agent should do when a message matches
- Whether the agent should reply in Slack
- Any GitHub repository or external service the agent should use
Verify the Automation
After the automation is created:- Open
Automate. - Confirm the new automation appears in the list.
- Open the automation details and check that it is enabled.
- Post a test message in a channel the bot has joined.
- Confirm that the agent run appears and performs the action you requested.

