Skip to content

Slack: Channels & Beyond

Claude Code integrates with team communication. Mention @Claude in Slack with a bug report and get a pull request back. Route events from Telegram, Discord, or webhooks into sessions. This lesson covers the team communication surface.

Gnome mascot

What you'll learn

  • @Claude in Slack, mention it with a bug report and get a PR back
  • Channels connect Telegram, Discord, iMessage, and webhooks to Claude Code sessions
  • The same CLAUDE.md, settings, and MCP servers work across all surfaces

The problem

Your team reports bugs in Slack. You triage them, create issues, assign them, and eventually someone writes code. Claude Code shortens that loop: a teammate mentions @Claude with a bug description, and Claude Code investigates the codebase, writes a fix, and opens a PR, all before you've finished reading the message.

Build it

Step 1: Set up Slack integration

Follow the Slack setup in the Claude Code docs. Once connected, team members can:

@Claude the login page is returning a 500 error when users enter an email with a + symbol

Claude Code investigates the codebase, finds the bug, fixes it, and opens a PR.

Step 2: Set up Channels

In the web dashboard, configure Channels for Telegram, Discord, iMessage, or custom webhooks. Each channel can push events into Claude Code sessions.

Step 3: Webhook integration

You can programmatically trigger a Claude Code session by sending a POST request to a custom webhook URL. This is commonly used in CI pipelines or monitoring systems to dispatch an agent when an error event occurs.

bash
# Send a webhook to trigger Claude Code
curl -X POST https://your-claude-webhook \
  -H "Content-Type: application/json" \
  -d '{"event": "deploy-failed", "service": "api", "error": "Connection refused on port 8080"}'

What goes wrong

MistakeHow you notice itThe fix
@Claude doesn't respond in SlackMessage sits unacknowledgedCheck the Slack app is installed and has the correct permissions. Verify Claude Code is running and connected
Channel events flood the sessionClaude Code processes every event and context fills upConfigure channel filters to only forward specific event types
Webhook authentication fails401 or 403 responsesVerify the webhook secret matches. Rotate the secret if compromised

Confirm it worked

  1. Set up a test Slack workspace or use an existing one
  2. Install the Claude Code Slack app
  3. Send @Claude hello in a channel, Claude should respond

Next: Capstone: CI Pipeline Guardian