Skip to main content
Connect your Idun agent to Slack so users can interact with it through direct messages or channel messages.

Prerequisites

  • A running Idun agent (engine)
  • A Slack workspace where you have permission to install apps
  • 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.Integrations catalog
2

Create the Slack integration

Click + on Slack and fill in the bot token and signing secret.
FieldValue
bot_tokenBot User OAuth Token from your Slack app (xoxb-...)
signing_secretSigning secret from your Slack app
3

Assign to an agent

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

How it works

  1. User sends a message to the bot (DM or channel)
  2. Slack POSTs the event to your engine’s webhook
  3. Engine verifies the HMAC-SHA256 signature using the signing secret
  4. Engine invokes the agent with the message text
  5. Engine sends the agent’s reply back via the Slack Web API (chat.postMessage)
Session tracking: The Slack user ID is used as the session ID, so conversation context is maintained per user. Bot messages ignored: The handler skips messages with a bot_id to avoid infinite loops.
Last modified on March 22, 2026