Slack
Last updated Jun 3, 2026 Slack is a communication channel for agents that need to participate in team conversations. A Slack-connected agent can receive events from Slack, route each message to the right agent instance, and respond back to direct messages or channel mentions.
Use Slack when you want an agent to:
- Respond to direct messages from Slack users.
- Reply when mentioned in public channels.
- Maintain context inside Slack threads.
- Serve multiple Slack workspaces from one deployment.
How it works
Slack sends events to your Worker through the Slack Events API ↗︎. Your Worker verifies each request, identifies the installed workspace, and routes the event to an agent instance.
Common Slack events include:
| Event | Use case |
|---|---|
message.im |
Direct messages to the bot |
app_mention |
Mentions in channels |
For multi-workspace Slack apps, store each workspace installation separately and route events by team or enterprise ID. Each workspace can map to an isolated agent instance with its own Durable Object-backed state.
Build a Slack agent
For a complete walkthrough, including Slack app setup, OAuth, event subscriptions, and deployment, use the Slack agent example.
Slack agent
Build and deploy an AI-powered Slack bot on Cloudflare Workers using the Agents SDK.
Related resources
Slack Events API
Receive events when users message, mention, or interact with a Slack app.
Slack app authentication
Configure OAuth, bot tokens, signing secrets, and request verification for Slack apps.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/agents/communication-channels/slack/#page","headline":"Slack","description":"Connect agents to Slack workspaces so they can respond to direct messages, mentions, and threaded conversations.","url":"https://developers.cloudflare.com/agents/communication-channels/slack/","inLanguage":"en","image":"https://developers.cloudflare.com/agents/communication-channels/slack/og.png?v=08e77a5025b2e16f","dateModified":"2026-06-03","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Build real-time voice agents with speech-to-text, text-to-speech, and conversation persistence over WebSocket. title: Voice image: https://developers.cloudflare.com/agents/communication-channels/voice/og.png?v=def5f75be26dd0bb
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/agents/llms.txt
Use this file to discover all available pages before exploring further.
Docs