By SupportHQ Team · December 4, 2026 · Channels
How to Add an AI Bot to Your Discord Server (Step by Step)
This guide has three parts. Part 1 shows how to add any bot to a Discord server, and which permissions to refuse. Part 2 shows how to make your own Discord bot in the Developer Portal. Part 3 connects that bot to an AI support agent, with SupportHQ as the worked example.
To add a music or moderation bot, Part 1 is enough. For an AI bot that answers from your docs, read all three.
We checked every Discord step against Discord’s developer docs and help center in November 2026. Discord renames buttons from time to time. If a label differs on your screen, look for the closest match.
Part 1: How to add a bot to a Discord server
What you need
- The right permission. You must own the server or have the Manage Server permission. Discord’s Using Apps help article states this rule. If you do not have it, ask a server admin.
- Desktop or browser for the App Directory. Discord says the App Directory is not on mobile. An invite link works on any device.
How a bot invite works
A bot invite is an OAuth2 link. The link names three things:
- The app. The
client_idin the link is the app’s ID. - The scopes. The
botscope puts the bot user in your server. Theapplications.commandsscope lets the app add slash commands. Discord includes it by default withbot. - The permissions. A number in the link that lists what the bot asks to do in your server.
A raw invite link looks like this:
https://discord.com/oauth2/authorize?client_id=123456789012345678&scope=bot&permissions=274877975552
When you open the link, Discord shows an authorization screen. You pick a server, review the permissions, and select Authorize. Discord then adds the bot to your server and gives it a role with the permissions you approved.
Two ways to add a bot
From the App Directory. Select the server name in the top-left corner. Go to Server Settings > App Directory. Find the bot, open its page, and select Add App. Follow the prompts, review the permissions, and select Authorize.
From an invite link. Most bots put an “Add to Discord” or “Invite” button on their website. It opens the same authorization screen. Check that the link starts with https://discord.com/oauth2/authorize. A link on another domain is not a Discord invite.
After you authorize, the bot appears in your server’s member list. It also appears in Server Settings > Integrations > Bots and Apps. That page shows who added each bot, when, and the permissions it requested.
Which permissions to refuse
Read the permission list before you select Authorize. A bot needs only the permissions for its job. A support bot reads and sends messages. It does not need to ban anyone.
| Permission | What it allows | Give it to a support or chat bot? |
|---|---|---|
| Administrator | Every permission. It also bypasses channel permission overwrites, so the bot can read every private channel. | No. Refuse it. |
| Manage Server | Change server settings. | No |
| Manage Roles | Create and edit roles below the bot’s own role. | No, unless the bot’s job is roles. |
| Manage Webhooks | Create webhooks that post as any name. | No, unless the bot’s job is webhooks. |
| Ban Members, Kick Members | Remove people from the server. | Only for a moderation bot. |
| Manage Messages | Delete other people’s messages. | Only for a moderation bot. |
| Mention @everyone, @here, and All Roles | Ping the whole server. | No |
| View Channel, Send Messages, Send Messages in Threads, Read Message History | Read and reply in channels it can see. | Yes. This is the minimum for a chat bot. |
The rule of thumb: if a bot you did not build asks for Administrator, do not add it. Grant the minimum now. You can add permissions to the bot’s role later.
To remove a bot, right-click it in the member list and select Kick (needs Kick Members), or remove it under Server Settings > Integrations (needs Manage Server).
Part 2: How to make your own Discord bot
You need your own bot application when a service asks you to “bring your own bot”. SupportHQ works this way. You also need one if you plan to write bot code. The steps below are the same in both cases.
Step 1: Create the application
- Sign in to the Discord Developer Portal with your Discord account.
- Create a new application. Enter a name, accept the terms, and select Create.
- You land on General Information. Copy the Application ID. Some tools call it the client ID.
The application name and icon are what members see on the bot. Use your product name, so members know the bot is official.
Step 2: Get the bot token
- Open the Bot page in the left sidebar.
- Under Token, select Reset Token and confirm.
- Copy the token and store it in a password manager.
Discord shows the token once. If you lose it, reset it again. The old token then stops working.
Treat the token like a password. Anyone with it can log in as your bot. Never paste it in a public channel, a screenshot, or a code repository. If it leaks, reset it at once.
Step 3: Turn on the intents you need
Intents decide which events Discord sends to your bot. Three intents are privileged: Presence Intent, Server Members Intent, and Message Content Intent. You turn them on under Privileged Gateway Intents on the Bot page.
An AI bot that answers questions needs Message Content Intent. Without it, Discord leaves the text of most messages empty. The bot still gets text from direct messages and from messages that mention it, but not from ordinary channel messages. Leave the other two intents off unless your bot needs them.
Discord changed the review rule in 2026. If your app reaches 10,000 users across its servers, you must apply for continued access to privileged intents. Below that, the toggle is enough. Discord counts the unique users in all servers the app is in, so one large server can pass the limit. Discord then sends a notice and gives you 90 days to apply. The details are in Changes to Privileged Intent Access.
Step 4: Decide who can add the bot
On the Bot page, the Public Bot setting controls who can add your bot to servers. When it is on, anyone with Manage Server can add it with your invite link. When it is off, only you and your developer team can.
A support bot belongs in your servers only, so turn Public Bot off. If the portal refuses the change, open the Installation page, set Install Link to None, and try again. Then build the invite link by hand, as in Step 5.
Step 5: Build the invite link
Use one of two methods.
Method A: the Installation page.
- Open Installation in the left sidebar.
- Under Installation Contexts, keep Guild Install on. You can turn off User Install for a support bot.
- Under Install Link, choose Discord Provided Link.
- Under Default Install Settings, add the
botscope. Then pick the bot permissions. - Save, and copy the install link.
Method B: a link you build. Paste your Application ID into this URL:
https://discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&scope=bot&permissions=274877975552
The number 274877975552 grants four permissions: View Channel, Send Messages, Read Message History, and Send Messages in Threads. It is the sum of their values in Discord’s permissions reference. Do not add Administrator.
Open the link, pick your server, and select Authorize. The bot joins your server. It shows as offline until a program logs in with its token.
Step 6: Give the bot something to run
A bot user does nothing on its own. A program must log in with the token and handle messages. You can write that program with a library such as discord.js or discord.py and host it yourself. Or you can paste the token into a service that runs the bot for you. Part 3 shows the second path.
Part 3: Connect your bot to an AI support agent
SupportHQ runs an AI support agent on your own Discord bot. The agent answers from your knowledge base. It hands off to your team when it cannot help. You write no code and host nothing.
Step 1: Paste the token and Application ID
- In SupportHQ, open your bot and go to the Integrations tab.
- In the Discord card, paste the Bot Token and the Client ID (your Application ID).
- Test the connection, then turn the card on and save.
SupportHQ connects to Discord through the Gateway, so your bot comes online. If you skipped Message Content Intent in Part 2, turn it on now. Without it the agent cannot read most questions.
Do Step 3 before you turn the card on. The agent starts to reply as soon as it connects.
Step 2: Choose the channels with Discord permissions
The bot reads only the channels its role can see. That is the main control.
- Give the bot’s role View Channel, Read Message History, Send Messages, and Send Messages in Threads on your help channels and forum channels.
- Deny View Channel on staff channels, off-topic channels, and private ticket channels.
Forum posts inherit the forum’s permissions, so the bot sees each new post in a forum it can read.
SupportHQ also has an Allowed channel IDs filter under advanced settings. Leave it empty in most servers. It matches the exact channel or thread a message is in. A forum’s ID does not cover the posts inside it. Use Allowed server (guild) IDs if you want to lock the bot to one server.
Direct messages to the bot are off by default. Turn on Listen to DMs if you want the agent to answer them.
Step 3: Write the rules for when it replies
This step matters most. If you write no rule for Discord, the agent replies to every message in every channel it can read. In a busy server, that gets the bot muted on day one.
In SupportHQ, these rules live on the Assistant tab, under Responses. Turn on Response Conditions and add a rule. Each rule names the channels it covers (Web, Telegram, or Discord) and states, in plain English, when to reply. Before each reply, the agent checks the message against your rules. It sees the channel name, whether someone mentioned the bot, and the recent conversation. In a thread or forum post, the channel name is the post title, not the forum name. Scope forums with role permissions, not with channel names.
A strict first set:
Answer product questions.
In the channel named general, reply only when the bot is mentioned.
Never reply in a channel whose name starts with ticket-.
Do not reply to small talk or to messages between members.
Loosen the rules after a week, once you trust the answers. Our post on when an AI agent should stay quiet has more rules that work in busy servers.
Step 4: Tell the bot who your team is
Under advanced settings, add Team member user IDs or Team role IDs. To copy an ID, turn on Developer Mode in Discord’s Advanced settings, then right-click a user or role.
The bot never answers messages from these people, unless they mention the bot or send it a DM. When a team member replies to a member in a channel, the bot stays quiet toward that member for a while. Your mods do not have to race the bot.
Step 5: Load your knowledge and set up handoff
Upload your docs, FAQ, and release notes, or sync your website. Then choose who gets an alert by email, Telegram, or SMS when the agent escalates.
The agent escalates when it is not confident, when a member asks for a person, or when the request needs an action it cannot take, such as a refund. It writes a reason, an urgency, and a summary. Your team replies from the SupportHQ inbox, and the reply posts back to Discord.
How it behaves in your server
- It posts a native Discord reply that mentions the member. You can turn off the reply style or the mention in settings.
- It answers in the member’s language. If your docs do not cover a question, it says so.
- It ignores messages from other bots.
- Each thread and each forum post is its own conversation in the inbox. A plain channel is one running conversation.
That last point affects handoff. An inbox reply pauses the agent on that conversation, so in a plain channel it pauses the agent for the whole channel. A forum channel gives you one handoff per question.
SupportHQ is not a moderation bot or a ticket bot. It does not kick, ban, or assign roles, and it does not open private ticket channels. To run it next to a ticket bot, see Discord ticket bot vs AI support agent.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| The bot joined but stays offline | No program is logged in with the token | Paste the token into SupportHQ, or start your bot code |
| The bot replies only when mentioned | Message Content Intent is off | Turn it on in the Bot page, then save |
| The bot is silent in one channel | Its role cannot see that channel | Allow View Channel and Send Messages for the bot’s role there |
| The bot is silent in forum posts | Allowed channel IDs holds the forum’s ID | Clear the filter and scope with role permissions |
| The bot answers everything | No Discord rule in Response Conditions | Add a strict rule, as in Part 3, Step 3 |
FAQ
How do I add bots to a Discord server on mobile?
Open the bot’s invite link in the Discord app or a mobile browser, pick the server, and authorize. The App Directory itself is on desktop and browser only.
Why can’t I see my server in the invite list?
The list shows only servers where you are the owner or have Manage Server.
Do I need to code to make a Discord AI bot?
Not with a hosted service. You create the bot in the Developer Portal, and the service runs it. You need code only for custom features, such as your own slash commands.
What does SupportHQ cost for Discord?
Discord is included on every plan. Starter is $29 per month with 2,000 conversations. Growth is $49 per month with 3,000. There are no per-seat fees. Every account starts with a 7-day free trial, and no card is needed.
Your first hour
Create the bot, turn on Message Content Intent, and invite it with the four permissions above. Then give it one forum channel, not the whole server. Limit it with role permissions. Write the strict rules from Part 3, ask it ten real questions from last week, and read the answers in the inbox. If an answer is wrong, the fix is a doc, not a setting.
The Discord support bot page lists every setting. SupportHQ for Discord communities shows typical questions and handoff cases. When you are ready, start a 7-day trial and connect the bot you just made.