Channels connect AgentUse lifecycle events to external collaboration surfaces. In the current release, Slack is the implemented channel. Use channels when a person should know that an agent needs review, finished successfully, or failed, or when Slack thread replies should continue a run.Documentation Index
Fetch the complete documentation index at: https://docs.agentuse.io/llms.txt
Use this file to discover all available pages before exploring further.
Basic Slack Setup
Add Slack to the agent frontmatter:- Go to api.slack.com/apps and create or open a Slack app.
- Open OAuth & Permissions.
- Add the bot token scope
chat:write. - Click Install to Workspace or Reinstall to Workspace.
- Copy the Bot User OAuth Token. It starts with
xoxb-.
assistant:write if you want Slack Assistant thread status while a live run is active.
Approval channel threads can also accept decisions. For Approve/Reject/Comment buttons and plain thread replies, configure Socket Mode:
connections:write. To resume from normal thread replies, enable Slack event subscriptions for message.channels and, if you use private channels, message.groups; add channels:history and/or groups:history bot scopes as needed.
To get a channel id:
- Open the channel in Slack.
- Click the channel name.
- Copy the channel id from the channel details panel. It starts with
C...for public channels orG...for private channels.
C... or G... value from the URL.
Invite the bot to the target channel before sending channel messages. For private channels, this is required.
Slack Config
V1 supports one Slack channel per agent.channels.slack:trueor an object to enable Slackchannels.slack.enabled: set tofalseto temporarily disable Slackchannels.slack.events: event or list of eventschannels.slack.channel_id: Slack channel id for this agent
channel_id is omitted, AgentUse uses SLACK_APPROVAL_CHANNEL.
Events
Supported event names:approval: the agent created an approval request and is waiting for reviewcompletion: the agent finished successfullyfailure: the agent ended with an execution error
completion, not complete or completed.
If events is omitted, AgentUse enables all supported events.
completion and failure are terminal run events. A Slack channel that listens for approval, or for both completion and failure, posts a run-start card immediately and updates the same card when the run completes, fails, or waits for approval. Single-outcome channels such as events: [failure] stay terminal-only so they do not leave stale running messages.
Slack Messages
Slack uses one concise channel message as the status card and puts approval details in that message’s thread. Approval channel messages include:- Channel card with prompt, session/project metadata, status, and a Review approval button
- Thread details with summary, draft, artifact, context, and risk when the agent provides them
- Thread actions for Approve, Reject, and Comment when Socket Mode interactivity is enabled
- Plain thread replies become
commentdecisions when Socket Mode message events are enabled
- Channel card with agent name, session id, status, and duration
- Thread details with the final answer, tool call count, and token count when available
- Channel card with agent name, session id, status, and duration when available
- Thread details with the error message and run metadata
