🧙♂️Guide: How to Deploy Your Discord AI Agent

Welcome to the AI Agent, the most powerful feature in the AICORA suite. This guide will walk you through deploying a custom-trained AI moderator into your Discord community. This bot will act as a 24/7 knowledge expert, trained exclusively on your project's information.
The process involves 3 main parts: creating a bot identity in Discord's Developer Portal, giving it the right permissions, and finally, launching it from the AICORA application.
Let's begin.
Part 1: Creating Your Bot's Identity on Discord
First, we need to register a new "Application" with Discord. This will be the official identity for your bot.
Step 1: The Developer Portal
Open your browser and navigate to the Discord Developer Portal.
Log in with your primary Discord account if prompted.
Click the purple New Application button in the top-right corner.

Name Your Application: A pop-up will ask for a name. This name is primarily for your own reference in the Developer Portal. To keep things simple, we recommend using the name you intend for your bot, for example: [Your Project Name] AI Mod.
Step 2: Customizing Your Bot's Public Profile

You will now be on the General Information tab for your new application. This is where you set up how your bot looks to the world.
APP ICON: Upload an avatar for your bot. Your project's logo is the perfect choice.
NAME: This is the name users will see. You can edit it here if you wish.
DESCRIPTION: Write a short "About Me" for your bot. This is visible on its profile. We recommend something clear and helpful, like:
"I am the official AI Assistant for Project AICORA. I'm trained on our public documents to answer your questions. Mention me directly for help!"
Guide for Adding Tags (optional):Add up to 5 tags to help describe your bot's function.
Think about the keywords users might search for to find a bot like yours. Your tags should clearly communicate your bot's purpose and its primary domain. We recommend a mix of function and industry tags, for example: AI, support, community tools, web3, crypto.
Part 2: Activating the Bot and Setting Permissions
Now, let's create the Bot User that will live inside your Application. This is what will have the username and token.
Step 3: Creating the Bot User
In the left-hand menu, navigate to the Bot tab.
Set the USERNAME: This is the official, public name your bot will have in every Discord server. While the Application name from Step 1 can be different, we strongly recommend making this USERNAME the same for consistency. If you named your application [Your Project] AI Mod, set this username to [Your Project] AI Mod as well.
BANNER (Optional): You can also upload a custom banner image that will appear at the top of your bot's profile. This is a great way to add more personality and branding. The recommended size is 680x240 pixels

Step 4: Obtaining the Secret Token
This is the secure "password" that allows AICORA to run your bot.
On the same Bot page, click the Reset Token button. Confirm the pop-up.

Your new, secret token will be revealed. Click the Copy button.

Paste this token into a safe, temporary place. You will need it in the final step.
🔒 Security Notice: Treat this token with the same security as a password. Never share it publicly.
Step 5: Enabling Privileged Intents (CRUCIAL!)
For your AI Agent to read messages and function correctly, you MUST enable 3 critical permissions.
On the Bot page, scroll down to the Privileged Gateway Intents section.
Enable all 3 toggles:
PRESENCE INTENT
SERVER MEMBERS INTENT
MESSAGE CONTENT INTENT (Without this, your bot cannot read user questions.)
A green Save Changes button will appear. You must click this button to save your settings.
Part 3: Inviting the Bot and Launching from AICORA
Your bot is now configured. The final steps are to invite it to your server and launch it.
Step 6: Generating the Invite Link
In the left-hand menu, go to OAuth2 and then select URL Generator.
In the SCOPES panel, check the box for bot.
A BOT PERMISSIONS panel will appear below. This defines what your bot can do in your server.
The Recommended Method: For simplicity and to ensure full functionality, check the single box for Administrator. This grants all necessary permissions at once.
(For Experts): If you prefer granular control, please ensure you at least grant
View Channels
,Send Messages
, andRead Message History
.
Scroll to the bottom and click the Copy button next to the GENERATED URL.

Step 7: Adding the Bot to Your Server
Paste the copied URL into a new browser tab and press Enter.
An authorization screen will appear. Select the desired server from the dropdown menu and click Continue.

Review the requested permissions and click Authorize.

You may need to complete a captcha. Once done, you will see a "Success!" message. Your bot is now a member of your server.

It looks like this:

Step 8: Final Launch in AICORA
It's time to bring it all home.
Open the AICORA application and navigate to the AI AGENT tab.
Select the DISCORD sub-tab.
Discord Bot Token: Paste the secret token you saved from Step 4.
Your Project Name: Enter your project's name. The code uses this to provide better context to our AI backend, leading to more relevant answers.
Click the purple RUN BOT button.

The Running Logs
will show a confirmation that your bot has logged in. It is now online and active in your server, ready to assist your community by responding to direct @mentions and relevant questions.
Last updated