Deploy your AI agent as a Discord bot. Interact with users in Discord servers through text channels, direct messages, and voice channels. Supports slash commands and rich embeds.
Bot token authentication
// Discord.js bot example
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages] });
client.on('messageCreate', async message => {
if (message.author.bot) return;
// Forward to AI agent
const response = await callAgent(message.content);
await message.reply(response);
});
client.login('YOUR_BOT_TOKEN');