diff --git a/docs/USAGE_GUIDE.en.md b/docs/USAGE_GUIDE.en.md index af7a29e..195437e 100644 --- a/docs/USAGE_GUIDE.en.md +++ b/docs/USAGE_GUIDE.en.md @@ -172,6 +172,36 @@ If you use `channels.telegram.allowFrom`, OCM can take “Your Telegram User ID --- + + +## 5) Discord workflow (main agent + sub-agent) + +OCM also supports Discord: + +- **Main agent**: bind to a dedicated **Channel** (channelId) +- **Sub-agent**: bind to a dedicated **Thread** under that channel (threadId) + +### 5.1 Add a Discord main agent + +Go to **Agents** → `+ Add Agent` → set **Channel = Discord**: + +![](redacted-screenshots/agents-discord-add-agent.jpg) + +Steps: +1) Create/select a dedicated Discord **channel** (private recommended) +2) Right-click channel → **Copy Link** → paste into the form (auto-parses channelId) + +### 5.2 Add a Discord sub-agent (thread-first) + +Go to **Agents** → `+ Add Sub-Agent` → set **Channel = Discord (thread only)**: + +![](redacted-screenshots/agents-discord-add-subagent.jpg) + +Steps: +1) Create a **thread** under the main channel (one thread per task) +2) If it is a private thread, add the bot to the thread +3) Right-click thread → **Copy Link** → paste into the form (auto-parses threadId) + ## 6) Verify bindings (Channels) Go to **Channels**: diff --git a/docs/USAGE_GUIDE.zh-CN.md b/docs/USAGE_GUIDE.zh-CN.md index ba6bf3f..b1eed2f 100644 --- a/docs/USAGE_GUIDE.zh-CN.md +++ b/docs/USAGE_GUIDE.zh-CN.md @@ -155,6 +155,36 @@ OCM 的表单里可以填 “Your Telegram User ID”,让它自动把你的 us --- + + +## 5) Discord 工作流(主 Agent + Sub-Agent) + +OCM 也支持 Discord: + +- **主 Agent**:绑定到一个专用 **Channel**(channelId) +- **Sub-Agent**:绑定到该 Channel 下的专用 **Thread**(threadId,thread-first) + +### 5.1 添加 Discord 主 Agent + +进入 **Agents** → `+ Add Agent` → 选择 **渠道 = Discord**: + +![](redacted-screenshots/agents-discord-add-agent.jpg) + +步骤: +1) 创建/选择一个专用 Discord Channel(建议私密) +2) 右键 Channel → **Copy Link** → 粘贴到表单(自动解析 channelId) + +### 5.2 添加 Discord Sub-Agent(Thread 优先) + +进入 **Agents** → `+ Add Sub-Agent` → 选择 **渠道 = Discord (thread only)**: + +![](redacted-screenshots/agents-discord-add-subagent.jpg) + +步骤: +1) 在主 Channel 下新建 Thread(建议“一个任务一个 thread”) +2) 如果是 private thread,需要把 bot 拉进 thread +3) 右键 Thread → **Copy Link** → 粘贴到表单(自动解析 threadId) + ## 5) 绑定检查(Channels 页) 进入 **Channels**: diff --git a/docs/redacted-screenshots/agents-discord-add-agent.jpg b/docs/redacted-screenshots/agents-discord-add-agent.jpg new file mode 100644 index 0000000..aaae168 Binary files /dev/null and b/docs/redacted-screenshots/agents-discord-add-agent.jpg differ diff --git a/docs/redacted-screenshots/agents-discord-add-subagent.jpg b/docs/redacted-screenshots/agents-discord-add-subagent.jpg new file mode 100644 index 0000000..8fb07a0 Binary files /dev/null and b/docs/redacted-screenshots/agents-discord-add-subagent.jpg differ