Scenario Guide

Build AI Slack & Discord Bots with Agent Skills

Traditional Slack and Discord bots respond to keyword matches with canned replies. AI agent bots understand intent, use tools, and generate contextual responses — all from natural language. With Slack MCP, Discord MCP, and a small set of supporting skills, you can deploy a bot that handles Q&A, incident alerts, deployment status checks, and community moderation without writing a custom backend. This guide covers the top five skills for building AI-powered messaging bots, a four-step event-driven workflow, and a comparison table to help you assemble the right stack for your use case.

Table of Contents

  1. 1. What Is an AI Messaging Bot
  2. 2. Top 5 Bot-Building Skills
  3. 3. Four-Step Event Workflow
  4. 4. Use Cases
  5. 5. Comparison Table
  6. 6. FAQ (7 questions)
  7. 7. Related Resources

What Is an AI-Powered Messaging Bot

An AI-powered messaging bot is a Slack or Discord integration where the response logic is handled by a large language model rather than a fixed decision tree. When a user sends a message, the bot forwards it to an AI agent — connected via the Model Context Protocol — which reads the message, determines the intent, calls any relevant tools (search, database, CI system), and composes a natural language reply. The result is a bot that can handle open-ended questions, multi-step workflows, and edge cases that would require extensive hand-coding in a traditional bot framework.

The Model Context Protocol is the key enabler here. MCP allows your AI agent to connect to Slack and Discord as first-class tools rather than as external APIs that require custom integration code. The agent can read channel history for context, post formatted messages, manage threads, and handle file attachments through simple tool calls — the same interface it uses to query a database or run a code snippet. This uniform interface makes it straightforward to build bots that combine platform-native messaging with powerful backend capabilities.

In 2026, five MCP skills have emerged as the standard building blocks for AI messaging bots. Slack MCP and Discord MCP handle the platform integrations. Webhook Skill MCP provides the event trigger layer. LLM Router MCP routes different intents to different handlers. Notification MCP Skill manages outbound alert dispatch. Together they form a complete, production-ready stack for AI bots that serve teams of any size.

Top 5 Slack & Discord Bot Skills

The following five MCP servers represent the best options for building AI-powered messaging bots in 2026. Each has been evaluated for ease of setup, platform feature coverage, and production reliability.

Slack MCP

Low

Slack

Bidirectional integration with Slack workspaces. Your agent can read channel history, post messages, create threads, upload files, and respond to slash commands — giving any AI assistant a persistent Slack presence.

Best for: Team notifications, command bots, incident response, Q&A bots

@modelcontextprotocol/server-slack

Setup time: 10 min

Discord MCP

Low

Community

Full Discord bot capabilities via MCP: send messages to channels, manage threads, react to messages, and listen for commands in guilds. Supports slash commands, embeds, and role-based access control.

Best for: Community bots, gaming servers, developer communities, moderation

mcp-discord

Setup time: 10 min

Webhook Skill MCP

Medium

Community

Registers and receives inbound webhooks from any external service and forwards the payload to your AI agent. Handles Slack Event API callbacks, Discord Interactions endpoint, GitHub webhooks, and custom event sources.

Best for: Event-driven bots, GitHub integrations, third-party triggers

mcp-webhook-skill

Setup time: 5 min

LLM Router MCP

Medium

Community

Routes incoming messages to the appropriate LLM handler based on intent classification. Supports multiple model backends (Claude, GPT-4, Gemini) and can apply per-intent rate limiting, context injection, and fallback chains.

Best for: Multi-intent bots, cost optimisation, model fallback, A/B testing

mcp-llm-router

Setup time: 8 min

Notification MCP Skill

Low

Community

Unified notification dispatch skill that sends alerts to Slack, Discord, email, and PagerDuty from a single agent tool call. Supports message templates, priority levels, and deduplication to prevent alert storms.

Best for: Alert routing, on-call notifications, status updates, monitoring bots

mcp-notification-skill

Setup time: 5 min

Four-Step Event-Driven Workflow

The following workflow describes the complete lifecycle of a bot interaction, from the initial platform event through to the user-facing response. This pattern works for both Slack and Discord with minor configuration differences.

Step 1: Event Trigger

Configure the Slack MCP or Discord MCP server to connect to your workspace or guild. For Slack, enable Socket Mode in your app settings to avoid needing a public endpoint during development:

// ~/.claude/settings.json
{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-slack"],
      "env": {
        "SLACK_BOT_TOKEN": "$SLACK_BOT_TOKEN",
        "SLACK_TEAM_ID": "$SLACK_TEAM_ID"
      }
    },
    "discord": {
      "command": "npx",
      "args": ["-y", "mcp-discord"],
      "env": {
        "DISCORD_TOKEN": "$DISCORD_TOKEN"
      }
    },
    "llm-router": {
      "command": "npx",
      "args": ["-y", "mcp-llm-router"]
    }
  }
}

Step 2: Intent Classification

When the agent receives an incoming message event, the first step is classifying the user\u0027s intent. Instruct the LLM Router MCP to map common intents to handlers before the bot goes live: "Given a user message in our engineering Slack channel, classify it as one of: deploy-status, incident-report, tech-qa, or general-chat. Route deploy-status and incident-report to a fast model with tool access. Route tech-qa to a slower, higher-quality model with documentation search. Route general-chat to a brief canned response."

Step 3: Action Dispatch

Based on the classified intent, the agent dispatches the appropriate action. For a deploy-status query, it calls the CI MCP tool to fetch the latest pipeline state. For an incident report, it creates a Slack thread, pings the on-call engineer, and posts the incident details in a formatted block. For a tech-qa query, it searches the documentation index and returns a cited answer. Each action is completed through MCP tool calls, keeping the logic composable and auditable.

Step 4: Response

The agent composes the final response and posts it through Slack MCP or Discord MCP. For Slack, use Block Kit JSON for rich formatting — buttons, sections, and contextual links. For Discord, use embeds with colour coding (green for success, red for incidents) and reaction emoji for quick acknowledgement. The Notification MCP Skill handles any secondary notifications — for example, sending a PagerDuty alert in parallel with the Slack message for high-priority incidents.

Use Cases

AI messaging bots built with MCP skills serve a wide range of engineering and community management scenarios. Here are four concrete examples with worked prompts.

Engineering On-Call Bot

Deploy to an #incidents channel: when an alert fires, the bot automatically creates a dedicated thread, posts the alert payload in a formatted block, pings the on-call engineer based on the current PagerDuty rotation, and asks "Is this a known issue?" The team responds in the thread and the bot logs the incident timeline for the post-mortem. All of this runs through Slack MCP and Notification MCP Skill with no custom backend code.

Developer Q&A Bot

Connect to your internal documentation index: when a developer asks "how do I configure the payment service?" in #engineering, the bot classifies the intent as tech-qa, searches the Notion docs via Notion MCP, and responds with a direct answer and a link to the source page. Questions that cannot be answered from documentation are escalated to a senior engineer via a Slack DM.

Deployment Status Bot

Integrate with your CI/CD system: when someone types "/deploy status" in any channel, the bot queries the GitHub Actions MCP or CI MCP for the latest run on the main branch and responds with a formatted embed showing the build status, commit hash, and duration. Failed builds trigger a proactive notification in #deployments before anyone has to ask.

Discord Community Moderation Bot

For open-source project servers: the bot monitors specified channels for questions, classifies them as bug reports or general questions, and routes them to the appropriate thread. Bug reports are automatically cross-posted to GitHub via GitHub MCP with the message content as the issue body. General questions receive an AI-generated answer with citations from the project documentation.

Comparison Table

Use this table to choose the right skills for your bot stack. The key decision criteria are whether you need Slack or Discord (or both), whether you need event-driven triggers or polling, and whether you need multi-model routing for cost optimisation.

SkillPlatformEvent-DrivenRich FormattingSetupFree Tier
Slack MCPSlackYes (Socket Mode)Block Kit10 minYes (free app)
Discord MCPDiscordYes (Gateway)Embeds, components10 minYes (free bot)
Webhook Skill MCPAny (inbound)Yes (HTTP callback)N/A (trigger only)5 minYes (open source)
LLM Router MCPAny (middleware)Yes (on message)N/A (routing only)8 minYes (open source)
Notification MCPSlack, Discord, emailYes (on alert)Templates5 minYes (open source)

Frequently Asked Questions

What is an AI Slack or Discord bot built with agent skills?

An AI Slack or Discord bot built with agent skills is a chatbot that connects your messaging platform to an AI agent via the Model Context Protocol. Unlike traditional bots that match keywords to canned responses, an AI agent bot understands natural language intent, can call external tools (search, code execution, database queries), and generates dynamic responses based on context. The MCP layer handles the messaging platform integration so the agent can focus on reasoning and task execution.

How does the event trigger step work in the bot workflow?

The event trigger is handled by the Webhook Skill MCP or the native Slack/Discord MCP event listeners. When a user posts a message in a monitored channel, mentions the bot, or issues a slash command, the platform sends an event to your bot's endpoint. The Webhook Skill MCP receives this event and forwards the payload to your AI agent, which then reads the message content, sender information, and any attached files as structured JSON before deciding how to respond.

Can I run an AI Slack bot without a public server endpoint?

For development and testing, yes. Slack's Socket Mode lets your bot connect to the Slack API using a persistent WebSocket connection from your local machine, eliminating the need for a public HTTPS endpoint. The Slack MCP server supports Socket Mode out of the box. For production deployments, you will need a hosted endpoint — a Cloudflare Worker, AWS Lambda, or a simple Node.js server — that can receive incoming events from Slack's Event API.

What is intent classification and why does an AI bot need it?

Intent classification is the step where the agent determines what the user wants to do from their message before deciding how to respond. For example, a message like "what's the deploy status?" maps to the intent "check deployment" while "how do I set up the database?" maps to "technical question." The LLM Router MCP routes each intent to a specialised handler — a deployment status tool, a documentation search, or a general-purpose LLM — so each type of question gets the most appropriate and cost-effective response.

How do I prevent my Slack bot from spamming duplicate notifications?

The Notification MCP Skill includes built-in deduplication using a configurable time window. If the same event triggers multiple alerts within the deduplication window (default: 5 minutes), only the first notification is sent and subsequent duplicates are silently dropped. You can also configure suppression rules: for example, suppress low-priority alerts during off-hours and batch them into a daily digest. For Slack specifically, threading related notifications under a single parent message is a highly effective way to reduce noise.

Can I build a Discord moderation bot with these skills?

Yes. Discord MCP supports reading message content, checking user roles, deleting messages, timing out users, and posting in moderation log channels. You can instruct the agent to monitor specific channels for prohibited content patterns, automatically apply a timeout when a rule is violated, post a moderation action record to the logs channel, and notify a moderator via direct message. The LLM Router MCP can classify messages by severity to apply proportionate responses rather than treating all violations the same.

How do I handle rate limits when my bot receives high message volume?

Both Slack and Discord impose rate limits on outbound API calls (typically one message per second per channel for Slack and five per five seconds for Discord). The Slack MCP and Discord MCP servers implement exponential backoff and retry logic automatically. For inbound high-volume scenarios such as a busy community channel, configure the LLM Router MCP to queue and batch messages rather than spawning a separate agent call for every message. Priority rules ensure that @mentions and slash commands bypass the queue and receive immediate responses.