Use Agents in Slack
Link your LibreChat account, ask an agent questions in channels and direct messages, approve its actions, and manage your connection.
This page is for everyone who talks to an agent in Slack. If the bot is already in your workspace, you can be up and running in about a minute.
Start a conversation
Invite the bot once per channel, then mention it with your question:
/invite @support_assistant
@support_assistant How do I reset a customer's password?Installing the app does not add it to every channel. If nothing happens when you mention it, invite it first.
Find the bot under Apps in Slack's sidebar, open it, and send a message on the Messages tab. No mention is needed in a direct message.
The bot answers in a thread under your message.
Link your account
The first time you ask, the bot replies privately with Connect your LibreChat account to use this bot. and a Link account button. Only you can see it. Linking takes two short confirmations, one in each app.
- 1. Select Link accountIn the bot's private message
- 2. Link in LibreChatSign in and check the account and agent
- 3. Confirm in SlackSelect Confirm account from the same Slack account
- 4. Ask againYour earlier message does not run automatically
Open the link. Select Link account in Slack. LibreChat opens in your browser; sign in if asked. Use the account you want the agent to act as.
Check and link. The page shows the LibreChat account and the agent you are connecting. If both are right, select Link account.


Confirm in Slack. The page now says One more step in Slack. That is expected. Go back to Slack, where the bot's private message now asks Connect as your account. Select Confirm account from the same Slack account you started with.


If you do not see the prompt, mention the bot again to get a fresh one.
Ask again. Slack shows ✓ Account connected. Mention the bot again to send your request. Your original message is not run automatically, so send it again. The browser page also changes to You're connected.


A successful answer means you are set up. To check tool access too, ask the agent to use a tool you are allowed to use.
Linking does not grant access
Your role must allow using Agents and Remote Agents, and the agent's owner must grant you Remote Access (normal sharing is not enough). Linking only proves who you are. If the bot says Your account is linked, but this channel has not authorized this request, ask the agent's owner or your administrator for access.
The link prompt is valid for 10 minutes, and a link lasts 30 days by default. When it expires, the bot asks you to link again.
Follow up in a thread
- In a channel, mention the bot in your reply. The bot only receives messages that mention it, so
@support_assistant and for admins?in the thread continues the conversation, while a reply without the mention is not sent to the agent. - In a direct message, reply in the thread. Each new top-level message starts a new conversation; replies in its thread continue it.
- Everyone has their own conversation. If a teammate asks in the same thread, the agent answers them separately, with their account. You cannot see their approvals or continue their conversation, and they cannot continue yours.
- The agent does not read the thread. It remembers your own earlier questions and answers in that thread, but not other people's messages. Quote anything it needs to know.
- One request at a time. If you ask again before the first answer arrives, your second request starts when the first one finishes.
While the agent works
A progress message appears in the thread, starting with ⏳ Working…, and updates as the run moves on.
| Control | What it does |
|---|---|
| Stop | Asks LibreChat to cancel your request. The message changes to Cancellation requested. Work a tool already finished is not undone. |
| Review request | Appears when the agent needs your input. Opens a private prompt that only you can see. |
Only the person who sent a request can stop or review it. When the answer is delivered, the progress message is removed. If the run is cancelled or fails, the message stays with its final status.
Questions and approvals
When the agent asks a question or a tool needs your approval, select Review request:
- Short questions show their choices as buttons in a private message, plus Write an answer.
- Longer questions open an Agent needs your input form. Choose or write an answer and select Send answer.
- Tool approvals show the tool call with Decision for this call only: Approve or Decline. Each decision applies to that one call. To always allow a tool, change the agent's approval settings in LibreChat.
- Sign-ins and other forms open LibreChat in your browser with Review in LibreChat (your deployment's name may appear instead of LibreChat). Nothing is approved in Slack for these.
After you answer, Slack confirms with a short private note, such as Tool call approved. That confirms your decision was received, not that the tool has finished. Approvals expire after 24 hours by default.
Answers
The final answer is posted as a reply in the thread. Slack formatting is applied automatically:
- Text keeps headings, lists, bold and italics, links, and code blocks.
- Tables in the agent's answer become Slack tables.
- Files the agent creates are uploaded to the thread, up to 5 files of 10 MB each by default.
- Long or code-heavy answers are also attached as
agent-response.mdso you can download the full text. - Charts, cards, and carousels appear when the agent uses the rich message format.
Each answer ends with a small footer showing the cost (when available), the time taken, and a short run ID to share with your administrator if something looks wrong. When you have asked several questions in a thread, the footer also totals them.
Very long answers are shortened with the note Reply shortened to fit this channel's delivery limit. The full answer is still saved in LibreChat.
Give feedback
React to an answer with 👍 or 👎 to rate it. When feedback collection is enabled on your deployment, the reaction is recorded for that answer. Removing the reaction removes the rating.
Native agent sessions
Slack can show an agent's status (such as thinking or waiting for input) in its own interface, with Slack's built-in Stop button and Helpful / Not helpful buttons on answers. This is optional and needs both Slack and LibreChat to be set up for it:
- In your Slack app, enable the agent features and add the bot scope that Slack's agent sessions guide requires (
assistant:writeat the time of writing), and subscribe to theagent_session_stoppedevent. Manual connections already include the event. - Reinstall the app in Slack (organization apps: Reconnect in LibreChat).
- The operator sets
nativeSessions: trueunderendpoints.agents.channelsinlibrechat.yaml.
If the permission or event is missing, the bot falls back to the regular progress message.
The operator can also set lifecycleReactions: true to add reactions to your message as it is processed: 👀 and ⏳ while working, then ✅ when done or ⚠️ on failure. A reaction only shows progress; it does not prove that a tool finished.
Manage your connection
Your links are listed in LibreChat under Settings → Account → Your channel account links. Each row shows the agent, your Slack user and workspace IDs, and the link status.

To disconnect, hover over or focus the row, select Disconnect, and confirm. The bot will ask you to link again next time. Actions the agent already completed are not undone.
| Link status | Meaning |
|---|---|
| In progress | You opened the link but have not linked it yet. |
| Awaiting confirmation | Linked in the browser; select Confirm account in Slack. |
| Active | Ready to use. |
| Expired | The link reached its lifetime. Mention the bot to link again. |
| Revoked | You or an administrator disconnected it. |
| Unavailable | The connection changed or was disabled. Mention the bot to link again. |
Tips for better results
- Send text, not attachments. Files and images are not passed to the agent, and a message with an attachment may be ignored. Paste the relevant text instead.
- Be specific in the first message. The agent sees only your message, not the surrounding conversation.
- Start a new thread for a new topic. A fresh top-level mention gives the agent a clean context.
- Use direct messages for personal work. Answers in channels are visible to everyone there.
- Share the run ID from the footer when you report a problem.
Something not working? See Troubleshooting.
How is this guide?