Slack
@idaria/channel-slackslack
Slack-Channel via Events API (Webhook, prod-empfohlen) oder Socket Mode (Fallback ohne Public-Host). Routet Slack-DMs und @Mentions an deine Agenten.
Setup guide
Create a Slack app
You create a Slack app, grant bot scopes and choose one of two transport modes. Takes about 10 minutes.
1. Create the app
2. Set bot scopes
Left sidebar → OAuth & Permissions → Scopes → Bot Token Scopes → add these:
app_mentions:read, chat:write, im:history,
channels:history, groups:history, mpim:history, users:read,
channels:read, groups:read, im:read, mpim:read
(the four *:read scopes let the bot read who is in a conversation: in
channels and group chats agents answer only when the member list is known;
optional: users:read.email, so the Conductor people picker can show and match e-mail addresses;
optional: reactions:write, so a facilitating agent acknowledges a contribution with a 👍 instead of a reply;
optional: reactions:read, so a facilitating agent sees reactions, for example a 👍 that confirms its reading of a vote).
3. Install & get the bot token
4. Choose a transport
Option A — Events API (for production, public HTTPS host)
Option B — Socket Mode (local / behind a firewall, no public host)
5. Add the /agent command
Left sidebar → Slash Commands → Create New Command:
command /agent, short description Choose which agent you talk to, usage hint [agent name].
Events API mode: Request URL <your-base-url>/api/slack/commands. Socket Mode: no URL needed.
Optionally add /agents the same way (lists the agents available to you).
Slack does not allow slash commands inside threads: there, write @YourBot /agent Mira.
The command only forwards its text; the idaria kernel carries it out and answers you privately.
6. Invite the bot to channels
Run /invite @YourBot in each channel you want. DMs work without an
invite (if Allow direct messages is on).
Own app per agent
The app in this setup is shared: agents are reached through it with /agent.
An agent can also have a Slack app of its own (own name, avatar and @mention):
create it from the same app manifest, then enter its credentials on the
agent's page in idaria (Channels → Own bots). See the README.
Setup fields
The operator fills these in when installing the plugin.
- bot_tokenBot User OAuth Token (xoxb-…)OAuth & Permissions → Bot User OAuth Token. Benötigte Bot-Scopes: app_mentions:read, chat:write, im:history, channels:history, groups:history, mpim:history, users:read, channels:read, groups:read, im:read, mpim:read (optional users:read.email für die Personensuche, reactions:write für die 👍-Bestätigung von Beiträgen, reactions:read für Reaktionen in moderierten Unterhaltungen). Die *:read-Scopes liefern die Mitgliederliste; ohne sie antwortet der Bot in Gruppen nicht.
- public_base_urlPublic HTTPS Base-URL (Events API)Öffentliche HTTPS-Origin, unter der die Middleware erreichbar ist (z.B. https://bot.example.com). GESETZT → Events-API-Modus: trage `<base>/api/slack/events` in deiner Slack-App unter Event Subscriptions als Request URL ein. LEER → Socket-Mode-Fallback (kein Public-Host, gut für lokale Dev).
- signing_secretSigning Secret (Events API)Basic Information → App Credentials → Signing Secret. Verifiziert eingehende Slack-Requests (HMAC). Nur im Events-API-Modus nötig (wenn public_base_url gesetzt ist).
- app_tokenApp-Level Token (xapp-…, nur Socket Mode)Basic Information → App-Level Tokens. Token mit Scope `connections:write` + Socket Mode aktivieren. Öffnet die WebSocket-Verbindung. Nur nötig, wenn public_base_url LEER ist (Socket-Mode-Fallback).
- respond_in_channelsVerhalten in ChannelsWann antwortet der Bot in Channels/Gruppen? `mention` (empfohlen): nur wenn der Bot direkt mit @ erwähnt wird. `all`: auf jede Nachricht in Channels, in denen der Bot Mitglied ist (laut).
- allow_dmsDirektnachrichten zulassenWenn aktiv, antwortet der Bot auf 1:1-DMs. Andernfalls bleiben DMs still.
Show all 7 setup fields
- allowlistAllowlist (optional)Komma-getrennte Slack-Channel-IDs (C…) und/oder User-IDs (U…), die mit dem Bot interagieren dürfen. Leer = alle erlaubten Konversationen.
Permissions
This is everything the plugin is allowed to access once it is installed.
- secrets
- yes
- memory
- none
- none
- graph
- none
- none
- network
- slack.com*.slack.com
- filesystem
- no
Dependencies and capabilities
- chatAgent@^1
Versions
| Version | Core | Size | Published | sha256 | Download |
|---|---|---|---|---|---|
| v0.8.0 | >=1.87.0 <2.0 | 191.2 KB | 30 Nov 2026 | 907ab8e5553e… | .zip |