黑洞智能体BLACK HOLE AGENTS
Docs

Channels

A channel connects an Agent to an external messaging platform. You can currently configure Telegram, Discord, Slack, and QQ; each platform requires different bot credentials and session identifiers.

Manual Configuration Path

[Settings] → [Channels] → Select Platform → [Add].

1. Prepare Platform Account

Create a bot or application according to the platform's rules, then enter the corresponding Token or application credentials.

2. Bind Agent and Workspace

Select an Agent that has been verified to work, and specify a workspace for channel messages. External messages will execute in this context; do not select directories containing unrelated sensitive files.

3. Restrict Message Sources

Enter the allowed Chat ID, Channel ID, or User ID. Leaving this field blank may allow all sources, depending on the current platform's field description. You can send /whoami to the bot first to obtain the correctly formatted identifier.

4. Select Permission Mode and Enable

The default is [Inherit Agent Settings]. Use a stricter mode for public groups, multi-person groups, or untrusted sources. After enabling, send a test message with no side effects first.

Configuration ItemProduct DefaultSuggested Starting PointFunctionApplicable ScenariosNotes
Bound AgentMust be selectedPrepare a dedicated Agent for the channelDetermines who processes messagesGroup chats, bot DMsDo not mix with high-privilege development Agents
WorkspaceMust be selectedUse a dedicated directory without personal dataLimits processable filesIn-group collection, daily report deliveryDo not select the user's home directory
Allowed Message SourcesDepends on platform fieldsInitially allow only test accounts or test groupsRestricts who can trigger the AgentInternal testing, team groupsRead field descriptions before leaving blank
Permission Mode[Inherit Agent Settings]Use stricter approval for external entry pointsControls tool operationsPublic groups, multi-person groups[Full Access] is not recommended

Use Case: Team On-Call Group

Create an Agent that only handles the on-call manual, bind it to a knowledge base that has passed recall tests and a dedicated workspace, and allow only the on-call group to trigger it. First test two types of messages: "Look up a policy" and "Answer not found," then test generating a handover summary that contains no sensitive information.

Completion Criteria

Disallowed sources cannot trigger tasks; responses return to the specified group; the system explicitly states when the knowledge base has no content; file writes still request approval.

Platform Configuration Focus

PlatformMain CredentialsSession Scope Focus
TelegramBot TokenChat ID
QQApp ID, Client SecretDM, group, or channel identifier format
DiscordBot TokenChannel or DM ID
SlackBot Token, App TokenSocket Mode and Channel ID
What if I cannot select a channel as the receiving target for a scheduled task?

First, proactively send a message to the bot on the corresponding platform so that BLACK HOLE records the available Chat ID, then return to the scheduled task to select the notification target.

What if the channel is connected but does not reply?

Check the allowed session ID, bound Agent, workspace, and permission mode, then review the channel logs. If the platform received the message but the Agent did not execute, continue checking the API gateway and Agent task status.

On this page