Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.idun-group.com/llms.txt

Use this file to discover all available pages before exploring further.

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 admin page

Navigate to /admin/integrations/ in the running standalone. The channel catalog shows WhatsApp, Discord, Google Chat, Slack, and Microsoft Teams as active channels.
2

Create the Discord integration

Click 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
Add Discord integration
3

Save

Save the form. The reload pipeline registers the Discord webhook handler on the running engine.

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.

Next steps

Slack

Connect your agent to Slack DMs and channels.

Microsoft Teams

Reach the same agent through Bot Framework in Teams.

Production hardening

Secure the engine before exposing webhooks to the public internet.
Last modified on May 20, 2026