Saltar al contenido principal
Todas las integraciones

Discord Integration

Deploy your AI agent as a Discord bot. Slash commands and rich embeds for your community.

Como funciona con Discord

Three steps to add an AI assistant to your Discord server.

Add to Server
Bot invited to server
Permissions configured
Slash commands registered

Lo que obtienes

A powerful AI assistant for your Discord community.

Slash Commands

The bot registers /ask and /search slash commands automatically when added to your server.

Rich Embeds

Responses come as beautifully formatted Discord embeds with source links.

@Mention Support

Users can also @mention the bot in any channel it has access to.

DM Support

Users can DM the bot directly for private queries away from public channels.

Configuracion rapida

Build a custom Discord bot with the TypeScript SDK.

discord-bot.ts
// Discord.js bot with InfoLens
import { InfoLensClient } from '@infolens/sdk';
import { Client, GatewayIntentBits } from 'discord.js';

const il = new InfoLensClient({ apiKey: 'pk_live_...' });
const bot = new Client({
  intents: [GatewayIntentBits.Guilds]
});

bot.on('interactionCreate', async (i) => {
  if (!i.isChatInputCommand()) return;
  const res = await il.agents.chat({
    agentId: 'ag_7f3k9x2m',
    apiKey: 'pk_live_...',
    message: i.options.getString('question')
  });
  await i.reply(res.answer);
});

Preguntas frecuentes

Listo para integrar con Discord?

Crea tu cuenta gratuita y ten tu agente de IA activo en minutos.