AgentConnect
How-to guides

Shared Slack bot routing

Use one shared Slack identity while each channel routes to an agent with its own model, instructions, workspace, and trigger.

A shared Slack bot lets one Slack App serve multiple AgentConnect agents. People invite and mention a single bot identity, while AgentConnect routes each channel to the agent configured as its default dispatch.

Create a Slack bot identity that can be shared across agents

This is useful when different channels need different models, repositories, tools, or behavior without installing a separate Slack App for every agent.

This follows the contextual routing pattern from Multi-agent work modes, where each inbound message goes to one selected agent instead of broadcasting to all of them.

Slack conversationDefault dispatchTriggerExample role
#engineeringengineering-agentany messageImplementation and repository work
#securitysecurity-agent@-mentionThreat analysis and sensitive reviews
#supportsupport-agentany messageProduct questions and issue triage

Before you start

You need:

  • Two or more online agents
  • Permission to create or install a Slack App in the workspace

On AgentConnect Cloud, Relay-backed Slack delivery is ready out of the box. Shared bots require HTTP (Events API), because Socket Mode bots are bound to a single daemon and can't be shared across agents.

AgentConnect OSS operators should configure public Relay URLs before creating the App.

1. Create the channel-specific agents

Create one agent for each behavior you want, and configure its model, instructions, workspace, tools, and permissions on the agent page.

Keep the specialization in the agents themselves instead of writing one large prompt that branches on channel names. Let the shared bot's channel routing send each channel straight to the right agent.

For example:

  • engineering-agent uses a coding model with write access to the main repository
  • security-agent uses a stronger reasoning model with read-only access and a security-focused prompt
  • support-agent uses a fast model with product documentation tools

2. Make the Slack bot sharable

AgentConnect Cloud

Start with the built-in app:

  1. On the built-in agentconnect agent, choose Integrations → Add integration → Slack → Add to Slack and approve the workspace installation. Skip this step if it's already connected.
  2. Open Integrations → Messaging apps → Slack.
  3. Turn on Sharable for the built-in AgentConnect bot.

The Cloud app already uses HTTP delivery, so there's no callback URL, signing secret, or transport to configure.

Custom app or self-hosted deployment

On the first agent, open Integrations → Add integration → Slack:

  1. Create a Slack App using a configuration token or the manifest flow.
  2. Set Delivery to HTTP (Events API).
  3. Enable Shared bot — let multiple agents use this one bot.
  4. Complete the Slack installation and connect it to the agent.

With the configuration-token flow, AgentConnect captures the signing secret automatically. With the manifest flow, paste the bot token and signing secret from your Slack App settings.

Invite the App to every channel it should serve:

/invite @your-bot

The channels appear in AgentConnect once Slack reports the bot's membership.

3. Connect the same App to the other agents

For each remaining agent:

  1. Open Integrations → Add integration → Slack.
  2. Choose Use an existing bot.
  3. Select the shared bot you created.
  4. Connect it to the agent.

Don't create another Slack App. Every connected agent now shares the same Slack bot identity and credentials while running on its own daemon.

4. Assign each channel

Open Integrations → Messaging apps → Slack and expand the shared bot. For each channel, pick its Default dispatch agent. To pick the agent per conversation instead, select Or pick by decision and route with a Decision.

Next, set the channel trigger from any connected agent's Slack integration. Because the trigger belongs to the shared bot and channel, AgentConnect syncs the same setting across every member-agent row:

  • @-mention: run only when the bot is mentioned. Unmentioned follow-ups continue in threads the agent has already joined.
  • any message: run the default agent for every message in that channel.
  • Off: mute all inbound routing for this shared bot in the channel, including mentions, existing threads, and fallback to a sibling or default agent. Restricted agents also start Off until an editor enables the conversation.

Every active shared-bot channel has exactly one default dispatch agent. Changing the assigned agent in the Console keeps the channel's trigger setting intact.

How routing behaves

  1. The channel's default dispatch and trigger determine which agent handles a new message.
  2. Once a thread is assigned, unmentioned follow-ups stay with that agent.
  3. Replies use the same Slack App identity. When the response footer is enabled, it shows the actual AgentConnect agent, runtime, and model.
  4. An agent can't trigger itself: AgentConnect drops each agent's own messages before they loop back in.

An unaddressed new message in a channel routes to one agent: the channel's default dispatch. A shared bot routes multiple channel-specific agents behind one identity rather than broadcasting every message to all of them.

If someone explicitly brings another shared-bot agent into the same thread, both agents keep their own sessions and settings. Use agent visibility if those agents should also delegate directly to one another.

Troubleshooting

SymptomCheck
Sharable is unavailableUse HTTP delivery with a live Relay; Cloud is preconfigured
A channel is missingInvite or re-invite the bot; wait for membership sync
The wrong agent answersCheck Default dispatch and the channel trigger
Follow-ups use the previous agentStart a new thread or switch the session agent

See Slack for installation details and Configure an agent for models, prompts, workspaces, and permissions.

How is this guide?

On this page

How is this guide?