Create an AI Discord Bot in 10 Minutes (2026 Guide)

Piotr Grudzień profile picture Piotr Grudzień
on December 11, 2021 Updated on February 19, 2026 7 min read
Blogpost 9 Background Photo

Launch Your AI Chat Bot on Discord

Want to create a smart conversational AI bot for your Discord server? This step-by-step guide walks you through the process in just 10 minutes—no coding required!

Watch the Video


5 Simple Steps to Create Your AI Bot

By following these steps, you’ll have a fully functional AI chatbot on your Discord server:

  1. Create a Discord Server
  2. Create a Discord Application
  3. Add the Bot to Your Server
  4. Create a Quickchat AI Account
  5. Integrate Your Discord Bot with Quickchat AI

What Your AI Bot Will Look Like

Once set up, your bot will be live on Discord, ready to have natural conversations with your server members.

End goal - smart conversational AI


1. Create a Discord Server

If you don’t have a Discord account, create one at discord.com. Then, set up your first server:

Create your first server


2. Create a Discord Application

Go to the Discord Developer Portal and create a new application.

Create a new application


3. Add Your Bot to the Discord Server

Remember to enable your bot to receive message content by clicking on the toggle below:

Enable message content

Once your bot is created, you need to add it to your server. The way to do it is to construct a Discord URL and paste it into your browser:

https://discord.com/api/oauth2/authorize?client_id=<YOUR CLIENT ID>&permissions=309237712896&scope=bot

Where does the permissions number come from?

The permissions number (309237712896) comes from requesting the following permissions:

  • Send Messages
  • Create Public Threads
  • Send Messages in Threads
  • Read Message History

Those are the minimal set of permissions required for your bot to operate correctly. You can see it for yourself by going to discord.com/developers/applications, selecting your application, clicking on Bot on the left and scrolling down:

Your discord bot permissions

Where to find YOUR CLIENT ID?

The easiest way will be to look at the address bar in your browser and copy the long number which is part of the address:

https://discord.com/developers/applications/<YOUR CLIENT ID>/bot

Your client ID

In this case the client id is 1234567890123456789 which means that the full URL you need to go to to add the server will be:

https://discord.com/api/oauth2/authorize?client_id=1234567890123456789&permissions=309237712896&scope=bot

4. Create a Quickchat AI Account

Sign up for Quickchat AI to power your bot with human-like conversational AI.

Quickchat AI allows you to create AI Agents with custom knowledge bases, AI Actions and more—perfect for Discord bots, websites, and more.


5. Integrate Your Bot with Quickchat AI

To connect your bot with Quickchat AI, retrieve your Discord Bot Token from the Developer Portal.

  1. Go to Bot SettingsReset TokenCopy Token

Reset token

  1. In the Quickchat AI Dashboard, head to External Applications, enable the Discord Bot Integration and paste your token.

Paste token


Your AI Bot is Live!

Head back to Discord - your bot should be online and ready to chat! Just @mention it to start a conversation.

Bot active

When @mentioned, the bot will reply to users in a thread. Users can continue the conversation inside the thread without mentioning the bot.

Conversation in thread


How the Bot Responds

The bot can be triggered in several ways, each with different behavior around conversation history:

ScenarioHow to triggerConversation history
@mention in a channel@mention the bot in any text channelDepends on the Reply in setting (see below)
Message in a bot threadSend a message in a thread the bot createdFull thread history is maintained
Reply to a bot messageUse Discord’s Reply feature on a bot messageStarts a new conversation each time
Direct messageSend the bot a DMMaintained across the entire DM session

The “Reply in” Setting

In the Quickchat dashboard under Channels > External Apps > Discord, there is a “Reply in:” dropdown with two options:

  • Channel (default): The bot replies directly in the channel where it was mentioned. Each @mention starts a fresh conversation with no memory of prior interactions.
  • Thread: The bot creates a new thread for each @mention. The thread is named after the bot and the user (e.g., “Aria & john_doe”). Inside the thread, the bot responds to every message without requiring an @mention, and the full conversation history is preserved.

Direct Messages

In DMs, no @mention is needed. The bot responds to every message, and conversation history persists across the session. The bot does not have access to server channel history when responding in DMs.

Note: The bot only responds in threads it created itself. If someone creates a thread manually and writes in it, the bot will not respond.


How the Bot Understands Channel Context

When someone @mentions the bot in a channel, the bot does not just see the single message it was mentioned in. It automatically fetches recent messages from the channel and includes them in the AI’s prompt as a timestamped transcript. This means the bot understands the ongoing conversation and can reference what people said earlier.

Here is an example of what that context looks like from the AI’s perspective:

Most recent messages on the #general channel:
[2026-02-19 14:01] alice: Has anyone tried the new API endpoint?
[2026-02-19 14:03] bob: Yeah, I got a 429 back after about 50 requests
[2026-02-19 14:05] alice: @QuickchatBot what's the rate limit for the v2 API?

The bot also reads messages from active threads and archived threads in the channel, so thread discussions are included in the context.

When someone uses Discord’s Reply feature to respond to a specific message, the bot narrows its context to just the messages immediately surrounding the replied-to message, instead of fetching the full recent history. This gives targeted context for the specific conversation the user is referencing.

Special content in messages (stickers, GIFs, images, embeds, reactions) is represented with annotations so the bot is aware of them even though it cannot see them visually in the context transcript. @mention tokens are replaced with readable display names.

No configuration is needed. Channel context is on by default for all Quickchat AI bots on Discord.

Bot using channel context to answer a follow-up question

Smart AI Search Over Server History

By default, the bot only reads messages from the channel where it was mentioned. With Smart AI search over server history enabled, the AI can query messages from any text channel in the server. The AI decides which channel to look at based on the user’s question.

For example, if someone asks in #general “what was the conclusion in #engineering about the migration?”, the bot can read the recent history of #engineering and answer based on what it finds there.

The feature also supports time-window filtering and pagination, so the AI can look further back in history when needed.

ModeScopeBest for
DefaultCurrent channel onlyGeneral-purpose community bot
Smart AI search over server historyAny channel in the serverSupport bots, knowledge retrieval across channels

Note: Smart AI search over server history is currently in beta. If you’re interested, reach out via email or on the Quickchat Discord server.

Smart AI search over server history toggle in the Discord integration settings


Sending Images to the Bot

Users can attach an image when @mentioning the bot, and the AI will process it using its vision capabilities. Supported formats are PNG, JPG, JPEG, GIF, and WebP. If multiple images are attached, the bot processes the first one.

The image URL from Discord’s CDN is passed alongside the message text to the AI model as a multimodal input, so the AI sees both the text and the image in the same turn. No configuration is needed. Image understanding is enabled by default.

Some practical examples for Discord communities:

  • Developer community: a user screenshots a stack trace or error message and asks the bot to explain it
  • Design community: a user shares a UI mockup and asks the bot for feedback
  • Gaming community: a user shares a screenshot of game settings and asks the bot for optimization tips
  • E-commerce support: a customer sends a photo of a defective product to the support bot

A user sends a screenshot to the bot, and the bot analyzes the image to answer their question


Connecting AI Actions to Discord

AI Actions let the bot call external APIs and tools during a Discord conversation. They are configured once in the Quickchat dashboard under AI Agent > Actions & MCPs and work across all channels (Discord, website widget, WhatsApp, Telegram, etc.).

Two types of actions are available:

Action typeWhat it does
API ActionMakes HTTP requests (GET, POST, PUT, DELETE) to external endpoints with configurable parameters, headers, and body
Remote MCPConnects to a Model Context Protocol server for access to external tools and data sources

Here are some examples of what you could build with AI Actions on Discord:

  • Order tracking bot: Connect an API Action to your e-commerce backend so community members can ask “where’s my order #12345?” and get real-time status.
  • GitHub issue bot: Hook up a Remote MCP to your GitHub repo so developers can ask the bot “are there any open bugs tagged critical?” directly in Discord.
  • Moderation helper: Connect to a content moderation API so the bot can analyze reported messages when asked.
  • Meeting scheduler: Connect a Remote MCP to Cal.com or Google Calendar so users can book meetings with your team through Discord.
  • CRM integration: Connect to HubSpot so the bot can log leads or create support tickets from Discord conversations.

Setting Up an API Action

  1. In the Quickchat dashboard, go to AI Agent > Actions & MCPs.
  2. Under Custom Actions, click Add Action and select API Action.
  3. Give the action a name (e.g., “Check Order Status”) and a description that tells the AI when to use it (e.g., “Use this when a user asks about their order status. Ask for the order number first.”).
  4. Set the HTTP method (e.g., GET), the endpoint URL, and any parameters.
  5. Save.

The action is now available to the bot in all channels, including Discord. For a more detailed walkthrough, see the HubSpot AI Actions tutorial or the Actions documentation.

The Actions &#x26; MCPs page in the Quickchat dashboard showing a configured API Action


Further Reading

These guides cover related topics in more detail:


Sign up for Quickchat AI to start building your AI Agent, or join the community on Discord: discord.gg/KqkHwvPRNH