Discord Agent Integration Walkthrough
Last updated
Last updated
Go to
Click "New Application" and give your application a name
Click on Bot.
Set a username and a nice unique icon for your bot.
Toggle "Public Bot" off (if you don't want others to invite it).
Enable "Message Content Intent" (for reading messages).
Copy the Token (click "Reset Token" if needed, then store it safely).
Go to the OAuth2 tab → OAuth2 URL Generator
Under OAuth2 URL Generator, check bot
Under Bot Permissions, check the appropriate text permissions you want. See screenshot fo recommended permissions
Keep integration type to Guild Install
Copy the generated URL and paste it on your browser to add the bot to your server
Authorize your bot on your server
Make sure you give your bot permissions on the channels you want it to interact with
Go to your agent's configuration page. Under aigentOS, click the Discord Tab. Configure accordingly and click Save Agent Settings button
And then click the Settings Tab
Paste your Bot Token in the Discord Bot Token text box
Add channel IDs you want your Discord agent to interact with. You can copy the channel id by right-clicking the channel in Discord and clicking Copy Channel ID from the context menu. And then paste the channel id in the textbox and click Add.
Click the "Send Test Message" button in to verify that you have the correct channel ID. Remember that the Discord bot you created needs to have the correct permission in the channel you added.