Skip to main content
Connect your Idun agent to Discord so users can interact with it through slash commands in any server.

Prerequisites

  • A running Idun agent (engine)
  • A Discord account
  • Your engine must be publicly reachable (use ngrok for local development)

Setup

1

Open the integrations catalog

Navigate to Integrations. The channel catalog shows WhatsApp, Discord, and Slack as active channels. Teams, Telegram, LINE, Notion, and Google Chat are planned.Integrations catalog
2

Create the Discord integration

Click + on Discord and fill in the form:
FieldValue
bot_tokenBot token from your Discord application
application_idApplication ID from the Discord Developer Portal
public_keyPublic key from the Discord Developer Portal
Discord integration form
3

Assign to an agent

After saving, open the agent you want to connect and select the Discord integration from the Integrations field.

How it works

  1. User sends /ask query: ... in Discord
  2. Discord POSTs the interaction to your engine’s webhook
  3. Engine verifies the Ed25519 signature
  4. Engine defers the response (Discord requires a reply within 3 seconds)
  5. Engine invokes the agent asynchronously with the query text
  6. Engine edits the deferred message with the agent’s reply
Session tracking: The Discord user ID is used as the session ID, so conversation context is maintained per user. Message limit: Discord messages are capped at 2,000 characters. Longer replies are truncated.
Last modified on March 22, 2026