Discord Setup

Run your agent as a Discord bot in your server with full message support.

Creating a Discord Bot

  1. Go to the Discord Developer Portal
  2. Click New Application and give it a name
  3. Go to the Bot section and click Add Bot
  4. Under Privileged Gateway Intents, enable:
    • Message Content Intent – required for reading messages
  5. Copy the Bot Token

Inviting the Bot

  1. Go to OAuth2 > URL Generator
  2. Select the bot scope
  3. Select these permissions:
    • Send Messages
    • Read Message History
    • Use Slash Commands
  4. Copy the generated URL and open it in your browser
  5. Select your server and authorize the bot

Connecting to Lenno

  1. Go to your agent’s Channels tab
  2. Click Add Channel and select Discord
  3. Paste the Bot Token
  4. Click Save

Tips

  • The bot will respond in any channel it has access to
  • Use Discord’s role permissions to control which channels the bot can see
  • For dedicated support, create a specific channel and restrict bot access to it