docs/usage/messenger/slack.mdx
Slack works in two phases: a workspace admin installs the official LobeHub Slack app once, and then each member links their personal LobeHub account. Both phases happen from Settings → Messenger → Slack.
In LobeHub, open Settings → Messenger and click the Slack card. Click Connect in the top-right.
You'll be redirected to Slack's authorisation screen. Pick the workspace you want to install into and click Allow.
After approval you're redirected back to LobeHub. The workspace shows up as a workspace row in Connections, with a status of Connected.
Workspace already connected by someone else? LobeHub blocks the install and shows a "Workspace already connected" notice. You don't need to install again — just DM @LobeHub in Slack to link your personal account. If you want to take over ownership, ask the original installer to disconnect the workspace first.
</Steps>
In Slack, open the Apps sidebar and find LobeHub, or search for @LobeHub. Open a DM with the bot.
Send any message to the bot to trigger the linking flow. The bot replies with a one-time confirmation link.
Tap the link, sign in to LobeHub if asked, and choose a default agent. Every message you DM the bot in this workspace will route to this agent.
Your link appears as a user row under the workspace install in Connections. </Steps>
Two equivalent ways:
/agents and pick a different agent.The change takes effect on the next message you send.
Slack has two distinct disconnect actions:
| Action | Effect |
|---|---|
| Disconnect on a user row | Unlinks your LobeHub account from your Slack account in this workspace. Your inbound DMs stop until you message the bot and link again. |
| Disconnect on a workspace row | Removes the workspace install. The bot is frozen for everyone in that workspace because dispatch is token-gated — existing user links remain on file but pause until the workspace is re-installed. |
You can re-install (workspace) or re-link (personal) at any time by repeating the relevant phase.
<reason>) — Common reasons: authorisation cancelled, install session expired (re-open the modal and try again), Slack returned incomplete data (retry; if persistent, contact support).