Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(channels): add shared help command (MUL-9553) (#10865)

gogodjzhu0c10f0e00e16
diff --git a/apps/docs/content/docs/channels.fr.mdx b/apps/docs/content/docs/channels.fr.mdx
index ae29454bda..f04aadf4e7 100644
--- a/apps/docs/content/docs/channels.fr.mdx
+++ b/apps/docs/content/docs/channels.fr.mdx
@@ -18,6 +18,7 @@ Feishu/Lark, Slack, DingTalk, WeCom, Telegram et WeChat sont pris en charge. WeC
| Messages directs à l'agent | Pris en charge | Pris en charge | Pris en charge | Pris en charge | Pris en charge | Uniquement le compte qui a scanné le QR code |
| Groupes ou canaux | Déclenché en @mentionnant le bot | Déclenché en @mentionnant le bot | Déclenché en @mentionnant le bot | Déclenché en @mentionnant le bot | Déclenché en @mentionnant le bot ou en lui répondant | Non pris en charge |
| Créer des tâches | Commande de message `/issue` ; crée la tâche à partir de votre saisie telle quelle | Commande slash `/issue` ; l'agent rédige la description avant de créer la tâche | Commande de message `/issue` ; crée la tâche à partir de votre saisie telle quelle | Commande de message `/issue` ; crée la tâche à partir de votre saisie telle quelle | Commande de message `/issue` ; crée la tâche à partir de votre saisie telle quelle | Commande de message `/issue` ; crée la tâche à partir de votre saisie telle quelle |
+| Afficher les commandes | `/help` | `@Multica /help` | `/help` | `/help` | `/help` | `/help` |
| Démarrer une nouvelle discussion | `/new [message]` | Message direct : `/new [message]` ; canal/fil : `@Multica /new [message]` | `/new [message]` | `/new [message]` | `/new [message]` | `/new [message]` |
| Effacer le contexte de la discussion en cours | `/clear [message]` | Message direct : `/clear [message]` ; canal/fil : `@Multica /clear [message]` | `/clear [message]` | `/clear [message]` | `/clear [message]` | `/clear [message]` |
| Connexion | Connexion longue de la plateforme | Socket Mode | Mode Stream | Connexion longue de la plateforme | Long polling `getUpdates` | Long polling iLink |
@@ -56,6 +57,8 @@ Les messages de canal qui ne @mentionnent pas le bot ne déclenchent jamais l'ag
## Contrôle des conversations
+Envoyez `/help` dans un message direct (sur Slack, utilisez `@Multica /help`), ou @mentionnez le bot avec `/help` dans un groupe ou un canal, pour afficher `/help`, `/new [message]`, `/clear [message]` et `/issue <titre>` (les lignes suivantes servent de description). WeCom et WeChat (messages directs uniquement) sont également pris en charge. Multica répond directement sans créer de discussion, de tâche ni d'exécution et sans changer la discussion active. Sur Slack, `@Multica /help` affiche les commandes de message. La commande native `/issue <description>` suit un flux distinct où l'agent crée une tâche à partir de votre description.
+
`/new` crée une nouvelle discussion Multica et y achemine les messages suivants de cette conversation externe. `/new <message>` crée la discussion et utilise le message comme premier tour. La discussion précédente reste enregistrée et utilisable dans Multica.
`/clear` reste dans la discussion Multica en cours, mais démarre un nouveau contexte visible par l'agent. L'historique complet de la discussion reste disponible dans Multica, tandis que l'agent ne peut plus récupérer les messages antérieurs à cette limite. `/clear <message>` utilise le message comme premier tour du nouveau contexte ; un `/clear` seul s'applique au prochain vrai message.
diff --git a/apps/docs/content/docs/channels.ja.mdx b/apps/docs/content/docs/channels.ja.mdx
index adf69f8a36..12ae0c050b 100644
--- a/apps/docs/content/docs/channels.ja.mdx
+++ b/apps/docs/content/docs/channels.ja.mdx
@@ -18,6 +18,7 @@ import { ChannelChatDemo } from "@/components/demos/channel-chat-demo";
| エージェントとの DM | 対応 | 対応 | 対応 | 対応 | 対応 | QR コードをスキャンしたアカウントのみ |
| グループまたはチャンネル | Bot を @メンションするとトリガー | Bot を @メンションするとトリガー | Bot を @メンションするとトリガー | Bot を @メンションするとトリガー | Bot を @メンション、または Bot に返信するとトリガー | 非対応 |
| タスクの作成 | `/issue` メッセージコマンド。入力内容からそのまま作成 | `/issue` スラッシュコマンド。エージェントが説明を整理してから作成 | `/issue` メッセージコマンド。入力内容からそのまま作成 | `/issue` メッセージコマンド。入力内容からそのまま作成 | `/issue` メッセージコマンド。入力内容からそのまま作成 | `/issue` メッセージコマンド。入力内容からそのまま作成 |
+| コマンドの確認 | `/help` | `@Multica /help` | `/help` | `/help` | `/help` | `/help` |
| 新しい Chat を開始 | `/new [メッセージ]` | DM: `/new [メッセージ]`、チャンネル/スレッド: `@Multica /new [メッセージ]` | `/new [メッセージ]` | `/new [メッセージ]` | `/new [メッセージ]` | `/new [メッセージ]` |
| 現在の Chat のコンテキストをクリア | `/clear [メッセージ]` | DM: `/clear [メッセージ]`、チャンネル/スレッド: `@Multica /clear [メッセージ]` | `/clear [メッセージ]` | `/clear [メッセージ]` | `/clear [メッセージ]` | `/clear [メッセージ]` |
| 接続方式 | プラットフォームの常時接続 | Socket Mode | Stream モード | プラットフォームの常時接続 | `getUpdates` long polling | iLink ロングポーリング |
@@ -56,6 +57,8 @@ Bot を @メンションしていないチャンネルメッセージはエー
## 会話コンテキストを操作する
+DM で `/help`(Slack では `@Multica /help`)を送信するか、グループやチャンネルで Bot を @メンションして `/help` を送信すると、利用可能なコマンドが表示されます。`/help`、`/new [メッセージ]`、`/clear [メッセージ]`、`/issue <タイトル>`(2 行目以降は説明)です。WeCom と WeChat(DM のみ)でも利用できます。Multica は直接返信し、Chat や実行を作成せず、現在の Chat も変更しません。Slack の `@Multica /help` ではメッセージコマンドが表示されます。ネイティブ `/issue <説明>` は、エージェントが説明からタスクを作成する別のフローです。
+
`/new` は新しい Multica Chat を作成し、その外部会話からの後続メッセージを新しい Chat へルーティングします。`/new <メッセージ>` では、そのメッセージが最初のターンになります。以前の Chat は Multica に保存され、引き続き利用できます。
`/clear` は現在の Multica Chat を維持したまま、エージェントから見えるコンテキストだけを新しくします。Chat の全履歴は Multica に残りますが、エージェントは境界より前のメッセージを取得できません。`/clear <メッセージ>` では、そのメッセージが新しいコンテキストの最初のターンになります。引数なしの `/clear` は次の実メッセージに適用されます。
diff --git a/apps/docs/content/docs/channels.ko.mdx b/apps/docs/content/docs/channels.ko.mdx
index ebfb7dd316..be5220c22b 100644
--- a/apps/docs/content/docs/channels.ko.mdx
+++ b/apps/docs/content/docs/channels.ko.mdx
@@ -18,6 +18,7 @@ import { ChannelChatDemo } from "@/components/demos/channel-chat-demo";
| 에이전트와 DM | 지원 | 지원 | 지원 | 지원 | 지원 | QR 코드를 스캔한 계정만 지원 |
| 그룹 채팅 또는 채널 | Bot을 @멘션하면 트리거 | Bot을 @멘션하면 트리거 | Bot을 @멘션하면 트리거 | Bot을 @멘션하면 트리거 | Bot을 @멘션하거나 Bot에 답장하면 트리거 | 지원하지 않음 |
| 태스크 만들기 | `/issue` 메시지 명령으로 입력 내용을 바로 생성 | `/issue` slash 명령으로 에이전트가 설명을 정리한 뒤 생성 | `/issue` 메시지 명령으로 입력 내용을 바로 생성 | `/issue` 메시지 명령으로 입력 내용을 바로 생성 | `/issue` 메시지 명령으로 입력 내용을 바로 생성 | `/issue` 메시지 명령으로 입력 내용을 바로 생성 |
+| 명령 확인 | `/help` | `@Multica /help` | `/help` | `/help` | `/help` | `/help` |
| 새 Chat 시작 | `/new [메시지]` | DM: `/new [메시지]`, 채널/thread: `@Multica /new [메시지]` | `/new [메시지]` | `/new [메시지]` | `/new [메시지]` | `/new [메시지]` |
| 현재 Chat 컨텍스트 지우기 | `/clear [메시지]` | DM: `/clear [메시지]`, 채널/thread: `@Multica /clear [메시지]` | `/clear [메시지]` | `/clear [메시지]` | `/clear [메시지]` | `/clear [메시지]` |
| 연결 방식 | 플랫폼 장기 연결 | Socket Mode | Stream 모드 | 플랫폼 장기 연결 | `getUpdates` long polling | iLink 롱 폴링 |
@@ -56,6 +57,8 @@ Bot을 @멘션하지 않은 채널 메시지는 에이전트를 트리거하지
## 대화 컨텍스트 제어
+DM에서 `/help`(Slack에서는 `@Multica /help`)를 보내거나 그룹 또는 채널에서 Bot을 @멘션하고 `/help`를 보내면 사용 가능한 명령을 확인할 수 있습니다. `/help`, `/new [메시지]`, `/clear [메시지]`, `/issue <제목>`(다음 줄부터는 설명)입니다. WeCom과 WeChat(DM만)에서도 지원합니다. Multica는 Chat이나 실행을 만들거나 현재 Chat을 변경하지 않고 직접 답합니다. Slack의 `@Multica /help`에는 메시지 명령이 표시됩니다. 네이티브 `/issue <설명>`은 에이전트가 설명으로 태스크를 만드는 별도 흐름입니다.
+
`/new`은 새 Multica Chat을 만들고 해당 외부 대화의 후속 메시지를 새 Chat으로 라우팅합니다. `/new <메시지>`를 보내면 해당 메시지가 첫 번째 대화가 됩니다. 이전 Chat은 Multica에 저장된 상태로 계속 사용할 수 있습니다.
`/clear`는 현재 Multica Chat을 유지하면서 에이전트에게 보이는 컨텍스트만 새로 시작합니다. 전체 Chat 기록은 Multica에 남지만 에이전트는 경계 이전의 메시지를 가져올 수 없습니다. `/clear <메시지>`는 해당 메시지를 새 컨텍스트의 첫 번째 대화로 사용하고, 인자 없는 `/clear`는 다음 실제 메시지에 적용됩니다.
diff --git a/apps/docs/content/docs/channels.mdx b/apps/docs/content/docs/channels.mdx
index f251d21d0f..60fb27c8a8 100644
--- a/apps/docs/content/docs/channels.mdx
+++ b/apps/docs/content/docs/channels.mdx
@@ -18,6 +18,7 @@ Feishu/Lark, Slack, DingTalk, WeCom, Telegram, and WeChat are available. WeChat
| DM the agent | Supported | Supported | Supported | Supported | Supported | Only the account that scanned the QR code |
| Groups or channels | Triggered by @-mentioning the Bot | Triggered by @-mentioning the Bot | Triggered by @-mentioning the Bot | Triggered by @-mentioning the Bot | Triggered by @-mentioning or replying to the Bot | Not supported |
| Create issues | `/issue` message command; creates the issue from your input as-is | `/issue` slash command; the agent writes up the description before creating | `/issue` message command; creates the issue from your input as-is | `/issue` message command; creates the issue from your input as-is | `/issue` message command; creates the issue from your input as-is | `/issue` message command; creates the issue from your input as-is |
+| List commands | `/help` | `@Multica /help` | `/help` | `/help` | `/help` | `/help` |
| Start a new Chat | `/new [message]` | DM: `/new [message]`; channel/thread: `@Multica /new [message]` | `/new [message]` | `/new [message]` | `/new [message]` | `/new [message]` |
| Clear the current Chat context | `/clear [message]` | DM: `/clear [message]`; channel/thread: `@Multica /clear [message]` | `/clear [message]` | `/clear [message]` | `/clear [message]` | `/clear [message]` |
| Connection | Platform long connection | Socket Mode | Stream mode | Platform long connection | `getUpdates` long polling | iLink long polling |
@@ -56,6 +57,8 @@ Channel messages that don't @-mention the Bot never trigger the agent and never
## Conversation controls
+Send `/help` in a DM (on Slack, use `@Multica /help`), or @-mention the Bot with `/help` in a group or channel, to list the available commands: `/help`, `/new [message]`, `/clear [message]`, and `/issue <title>` (subsequent lines become the description). This includes WeCom and WeChat (DMs only). Multica replies directly without creating a Chat or run or changing the active Chat. On Slack, `@Multica /help` lists the message commands. Native `/issue <description>` starts a separate flow where the agent creates an issue from your description.
+
`/new` creates a new Multica Chat and routes later messages from that external conversation to it. `/new <message>` creates the Chat and uses the message as its first turn. The previous Chat remains stored and usable in Multica.
`/clear` stays in the current Multica Chat but starts a new agent-visible context. The full Chat history remains available in Multica, while the agent cannot retrieve messages from before the boundary. `/clear <message>` uses the message as the first turn in the new context; a bare `/clear` applies to the next real message.
diff --git a/apps/docs/content/docs/channels.zh-Hant.mdx b/apps/docs/content/docs/channels.zh-Hant.mdx
index fc25a697d3..f241eaf008 100644
--- a/apps/docs/content/docs/channels.zh-Hant.mdx
+++ b/apps/docs/content/docs/channels.zh-Hant.mdx
@@ -18,6 +18,7 @@ import { ChannelChatDemo } from "@/components/demos/channel-chat-demo";
| 私聊 AI 代理 | 支援 | 支援 | 支援 | 支援 | 支援 | 僅限掃碼連線的帳號 |
| 群聊或頻道 | @ Bot 後觸發 | @ Bot 後觸發 | @ Bot 後觸發 | @ Bot 後觸發 | @ Bot 或回覆 Bot 後觸發 | 不支援 |
| 建立任務 | `/issue` 訊息命令,按輸入直接建立 | `/issue` slash 命令,AI 代理整理描述後建立 | `/issue` 訊息命令,按輸入直接建立 | `/issue` 訊息命令,按輸入直接建立 | `/issue` 訊息命令,按輸入直接建立 | `/issue` 訊息命令,按輸入直接建立 |
+| 查看命令 | `/help` | `@Multica /help` | `/help` | `/help` | `/help` | `/help` |
| 新建 Chat | `/new [訊息]` | 私聊:`/new [訊息]`;頻道/thread:`@Multica /new [訊息]` | `/new [訊息]` | `/new [訊息]` | `/new [訊息]` | `/new [訊息]` |
| 清空當前 Chat 上下文 | `/clear [訊息]` | 私聊:`/clear [訊息]`;頻道/thread:`@Multica /clear [訊息]` | `/clear [訊息]` | `/clear [訊息]` | `/clear [訊息]` | `/clear [訊息]` |
| 連線方式 | 平臺長連線 | Socket Mode | Stream 模式 | 平臺長連線 | `getUpdates` 長輪詢 | iLink 長輪詢 |
@@ -56,6 +57,8 @@ Telegram 會把圖片、檔案、影片和音訊作為附件轉交給 AI 代理
## 控制對話上下文
+在私聊中傳送 `/help`(Slack 使用 `@Multica /help`),或在群聊、頻道中 @ Bot 並傳送 `/help`,即可查看可用命令:`/help`、`/new [訊息]`、`/clear [訊息]` 和 `/issue <標題>`(後續行作為描述)。企業微信和微信(僅私聊)同樣支援。Multica 會直接回覆,不建立 Chat、任務或執行,也不改變當前 Chat。在 Slack 中,`@Multica /help` 列出訊息命令。原生 `/issue <描述>` 走獨立流程,由 AI 代理根據描述建立任務。
+
`/new` 會建立一個新的 Multica Chat,並把這條外部會話的後續訊息路由到新 Chat。`/new <訊息>` 會同時把訊息作為第一輪。舊 Chat 仍儲存在 Multica 中,可以繼續使用。
`/clear` 不會新建 Chat,只會在當前 Multica Chat 中開啟一段新的 AI 代理可見上下文。完整 Chat 歷史仍儲存在 Multica 中,但 AI 代理無法讀取邊界之前的訊息。`/clear <訊息>` 會把訊息作為新上下文的第一輪;裸 `/clear` 會把邊界應用到下一條真實訊息。
diff --git a/apps/docs/content/docs/channels.zh.mdx b/apps/docs/content/docs/channels.zh.mdx
index 54038019b5..0a688011e2 100644
--- a/apps/docs/content/docs/channels.zh.mdx
+++ b/apps/docs/content/docs/channels.zh.mdx
@@ -18,6 +18,7 @@ import { ChannelChatDemo } from "@/components/demos/channel-chat-demo";
| 私聊智能体 | 支持 | 支持 | 支持 | 支持 | 支持 | 仅限扫码连接的账号 |
| 群聊或频道 | @ Bot 后触发 | @ Bot 后触发 | @ Bot 后触发 | @ Bot 后触发 | @ Bot 或回复 Bot 后触发 | 不支持 |
| 创建任务 | `/issue` 消息命令,按输入直接创建 | `/issue` slash 命令,智能体整理描述后创建 | `/issue` 消息命令,按输入直接创建 | `/issue` 消息命令,按输入直接创建 | `/issue` 消息命令,按输入直接创建 | `/issue` 消息命令,按输入直接创建 |
+| 查看命令 | `/help` | `@Multica /help` | `/help` | `/help` | `/help` | `/help` |
| 新建 Chat | `/new [消息]` | 私聊:`/new [消息]`;频道/thread:`@Multica /new [消息]` | `/new [消息]` | `/new [消息]` | `/new [消息]` | `/new [消息]` |
| 清空当前 Chat 上下文 | `/clear [消息]` | 私聊:`/clear [消息]`;频道/thread:`@Multica /clear [消息]` | `/clear [消息]` | `/clear [消息]` | `/clear [消息]` | `/clear [消息]` |
| 连接方式 | 平台长连接 | Socket Mode | Stream 模式 | 平台长连接 | `getUpdates` 长轮询 | iLink 长轮询 |
@@ -56,6 +57,8 @@ Telegram 会把图片、文件、视频和音频作为附件转交给智能体
## 控制对话上下文
+在私聊中发送 `/help`(Slack 使用 `@Multica /help`),或在群聊、频道中 @ Bot 并发送 `/help`,即可查看可用命令:`/help`、`/new [消息]`、`/clear [消息]` 和 `/issue <标题>`(后续行作为描述)。企业微信和微信(仅私聊)同样支持。Multica 会直接回复,不创建 Chat 或运行,也不改变当前 Chat。在 Slack 中,`@Multica /help` 列出消息命令。原生 `/issue <描述>` 走独立流程,由智能体根据描述创建任务。
+
`/new` 会创建一个新的 Multica Chat,并把这条外部会话的后续消息路由到新 Chat。`/new <消息>` 会同时把消息作为第一轮。旧 Chat 仍保存在 Multica 中,可以继续使用。
`/clear` 不会新建 Chat,只会在当前 Multica Chat 中开启一段新的智能体可见上下文。完整 Chat 历史仍保存在 Multica 中,但智能体无法读取边界之前的消息。`/clear <消息>` 会把消息作为新上下文的第一轮;裸 `/clear` 会把边界应用到下一条真实消息。
diff --git a/apps/docs/content/docs/slack-bot-integration.fr.mdx b/apps/docs/content/docs/slack-bot-integration.fr.mdx
index c6e3cfcba5..ad84e8e21c 100644
--- a/apps/docs/content/docs/slack-bot-integration.fr.mdx
+++ b/apps/docs/content/docs/slack-bot-integration.fr.mdx
@@ -1,12 +1,12 @@
---
title: Bot Slack
-description: Créez un bot Slack pour un agent et utilisez-le dans les messages directs, les canaux et les commandes /issue, /new et /clear.
+description: Créez un bot Slack pour un agent et utilisez-le dans les messages directs, les canaux et les commandes @Multica /help, /issue, /new et /clear.
---
import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
-Multica utilise votre propre application Slack. Une fois la connexion établie, les membres de l'équipe peuvent envoyer des messages directs au bot, le @mentionner dans un canal, utiliser `/issue` pour créer des tâches, `/new` pour démarrer une nouvelle discussion Multica ou `/clear` pour réinitialiser le contexte de l'agent dans la discussion en cours.
+Multica utilise votre propre application Slack. Une fois la connexion établie, les membres de l'équipe peuvent envoyer des messages directs au bot, le @mentionner dans un canal, utiliser `@Multica /help` pour afficher les commandes, utiliser `/issue` pour créer des tâches, `/new` pour démarrer une nouvelle discussion Multica ou `/clear` pour réinitialiser le contexte de l'agent dans la discussion en cours.
Une application Slack correspond à un agent Multica. Pour connecter plusieurs agents, créez une application distincte pour chacun.
@@ -75,7 +75,7 @@ settings:
token_rotation_enabled: false
```
-Avant de créer l'application, vous pouvez remplacer les deux occurrences de `Multica` par le nom de l'agent. Ne supprimez aucune portée ni aucun événement du manifeste, sinon les messages directs, les mentions dans les canaux, les réponses, `/issue`, `/new` ou `/clear` risquent de ne plus fonctionner.
+Avant de créer l'application, vous pouvez remplacer les deux occurrences de `Multica` par le nom de l'agent. Ne supprimez aucune portée ni aucun événement du manifeste, sinon les messages directs, les mentions dans les canaux, les réponses, `@Multica /help`, `/issue`, `/new` ou `/clear` risquent de ne plus fonctionner.
<Callout type="warning">
Les noms des commandes slash Slack sont globaux à l'espace de travail. Si une autre application installée utilise déjà `/new` ou `/clear`, Slack rejette la commande en conflit lorsque vous créez ou mettez à jour l'application. Résolvez le conflit, ou envoyez la forme message `@Multica /new [message]` ou `@Multica /clear [message]` pour contourner l'interception des commandes slash natives.
@@ -150,6 +150,12 @@ Joignez des fichiers à un message direct, ou à un message de canal qui @mentio
Cela nécessite la portée `files:read` : si l'application a été installée avant la prise en charge des pièces jointes, consultez la note de l'étape 1. Chaque fichier doit faire 20 Mio au maximum, et un message peut en contenir 10 au plus. Les fichiers plus volumineux, encore en cours d'envoi ou hébergés hors de Slack (un lien Google Drive ou Dropbox, par exemple) sont ignorés ; le texte du message parvient tout de même à l'agent.
+### Afficher les commandes avec `@Multica /help`
+
+Envoyez `@Multica /help` dans un message direct, un canal ou un fil pour afficher `@Multica /help`, `@Multica /new [message]`, `@Multica /clear [message]` et `@Multica /issue <titre>` (les lignes suivantes servent de description). Multica répond directement sans créer de discussion ni d'exécution et sans changer la discussion active.
+
+Le manifeste par défaut enregistre uniquement `/issue`, `/new` et `/clear` comme commandes slash natives. `@Multica /help` ne nécessite aucune modification du manifeste ni réinstallation. La commande native `/issue <description>` demande à l'agent de créer une tâche à partir de votre description.
+
### Créer des tâches avec `/issue`
Dans un canal ou un message direct, saisissez :
@@ -204,6 +210,7 @@ Les liens d'association de compte utilisent `MULTICA_APP_URL`, ou `FRONTEND_ORIG
- **L'application ne peut pas être vérifiée** : vérifiez que le manifeste inclut `users:read`, puis réinstallez l'application après avoir mis à jour les permissions.
- **Aucun point d'entrée pour les messages directs** : vérifiez que `app_home.messages_tab_enabled` vaut `true`.
- **Aucune réponse dans un canal** : vérifiez que le bot a été invité dans le canal et que le message le @mentionne.
+- **`/help` ne parvient pas à Multica** : envoyez `@Multica /help` ; le manifeste par défaut ne déclare pas de commande native `/help`.
- **`/issue`, `/new` ou `/clear` n'existe pas** : vérifiez que le manifeste inclut les trois commandes slash et la portée `commands`, puis réinstallez l'application. Si Slack indique que `/new` ou `/clear` est déjà pris, utilisez la forme message `@Multica` ou résolvez d'abord le conflit de commandes au niveau de l'espace de travail.
- **Les fichiers ne parviennent pas à l'agent** : vérifiez que le manifeste inclut `files:read` et que l'application a été réinstallée après l'ajout de cette portée, et que le fichier fait 20 Mio au maximum.
- **Le bot ne s'exécute pas** : vérifiez si l'agent est archivé et si le [runtime](/daemon-runtimes) qu'il utilise est en ligne.
diff --git a/apps/docs/content/docs/slack-bot-integration.ja.mdx b/apps/docs/content/docs/slack-bot-integration.ja.mdx
index e9d0c792eb..660b46f9cf 100644
--- a/apps/docs/content/docs/slack-bot-integration.ja.mdx
+++ b/apps/docs/content/docs/slack-bot-integration.ja.mdx
@@ -1,12 +1,12 @@
---
title: Slack Bot
-description: エージェント用の Slack Bot を作成し、DM、チャンネル、/issue、/new、/clear コマンドから利用します。
+description: エージェント用の Slack Bot を作成し、DM、チャンネル、@Multica /help、/issue、/new、/clear コマンドから利用します。
---
import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
-Multica では、自分で作成した Slack app を使います。接続すると、チームメンバーは Bot へ DM を送る、チャンネルで @メンションする、`/issue` でタスクを作成する、`/new` で新しい Multica Chat を開始する、`/clear` で現在の Chat のエージェントコンテキストをリセットするといった操作ができます。
+Multica では、自分で作成した Slack app を使います。接続すると、チームメンバーは Bot へ DM を送る、チャンネルで @メンションする、`@Multica /help` でコマンドを確認する、`/issue` でタスクを作成する、`/new` で新しい Multica Chat を開始する、`/clear` で現在の Chat のエージェントコンテキストをリセットするといった操作ができます。
1 つの Slack app に接続できる Multica エージェントは 1 つです。複数のエージェントを接続する場合は、エージェントごとに app を作成してください。
@@ -75,7 +75,7 @@ settings:
token_rotation_enabled: false
```
-作成前に、2 か所の `Multica` をエージェント名に変更してもかまいません。manifest の権限やイベントは削除しないでください。削除すると、DM、チャンネルでのメンション、返信、`/issue`、`/new`、`/clear` が動作しないことがあります。
+作成前に、2 か所の `Multica` をエージェント名に変更してもかまいません。manifest の権限やイベントは削除しないでください。削除すると、DM、チャンネルでのメンション、返信、`@Multica /help`、`/issue`、`/new`、`/clear` が動作しないことがあります。
<Callout type="warning">
Slack の slash command 名は workspace 全体で共有されます。インストール済みの別 app が `/new` または `/clear` を使用している場合、app の作成または更新時に競合するコマンドが拒否されます。競合を解消するか、メッセージ形式の `@Multica /new [メッセージ]` または `@Multica /clear [メッセージ]` を送信して、ネイティブ slash command のインターセプトを回避してください。
@@ -150,6 +150,12 @@ DM、または Bot を @ メンションしたチャンネルのメッセージ
これには `files:read` scope が必要です。添付ファイル対応より前にインストールした app の場合は、手順 1 の注意書きを参照してください。1 ファイルあたり 20 MiB 以下、1 メッセージにつき最大 10 件です。サイズ超過、アップロード処理中、または Slack 以外(Google Drive や Dropbox のリンクなど)にあるファイルはスキップされますが、メッセージ本文はエージェントに渡ります。
+### `@Multica /help` でコマンドを確認する
+
+DM、チャンネル、スレッドで `@Multica /help` を送信すると、`@Multica /help`、`@Multica /new [メッセージ]`、`@Multica /clear [メッセージ]`、`@Multica /issue <タイトル>`(2 行目以降は説明)が表示されます。Multica は直接返信し、Chat や実行を作成せず、現在の Chat も変更しません。
+
+デフォルトの manifest が登録するネイティブ slash command は `/issue`、`/new`、`/clear` のみです。`@Multica /help` の利用に manifest の変更や再インストールは不要です。ネイティブ `/issue <説明>` では、エージェントが説明からタスクを作成します。
+
### `/issue` でタスクを作成する
チャンネルまたは DM で、次のように入力します。
@@ -204,6 +210,7 @@ API サービスを再起動してから Slack app を接続します。この
- **app を検証できない**: manifest に `users:read` が含まれていることを確認します。権限を更新した後は app を再インストールしてください。
- **DM の入口がない**: `app_home.messages_tab_enabled` が `true` であることを確認します。
- **チャンネルで返信がない**: Bot がチャンネルに招待されており、メッセージで @メンションされていることを確認します。
+- **`/help` が Multica に届かない**: `@Multica /help` を送信してください。デフォルトの manifest はネイティブ `/help` を登録しません。
- **`/issue`、`/new`、または `/clear` がない**: manifest に 3 つの slash command と `commands` scope が含まれていることを確認し、app を再インストールします。Slack が `/new` または `/clear` は使用済みだと表示する場合は、`@Multica` のメッセージ形式を使うか、workspace 全体のコマンド競合を先に解消してください。
- **ファイルがエージェントに届かない**: manifest に `files:read` が含まれていること、scope を追加した後に app を再インストールしたことを確認し、ファイルが 20 MiB 以下かも確認します。
- **Bot が実行しない**: エージェントがアーカイブされていないことと、使用する[ランタイム](/daemon-runtimes)がオンラインであることを確認します。
diff --git a/apps/docs/content/docs/slack-bot-integration.ko.mdx b/apps/docs/content/docs/slack-bot-integration.ko.mdx
index 2a06186939..d1c9a4c477 100644
--- a/apps/docs/content/docs/slack-bot-integration.ko.mdx
+++ b/apps/docs/content/docs/slack-bot-integration.ko.mdx
@@ -1,12 +1,12 @@
---
title: Slack Bot
-description: 에이전트용 Slack Bot을 만들어 DM, 채널, /issue, /new 및 /clear 명령에서 사용합니다.
+description: 에이전트용 Slack Bot을 만들어 DM, 채널, @Multica /help, /issue, /new 및 /clear 명령에서 사용합니다.
---
import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
-Multica는 사용자가 직접 만든 Slack app을 사용합니다. 연결하면 팀 멤버가 Bot과 DM을 나누고, 채널에서 @멘션하고, `/issue`로 태스크를 만들고, `/new`으로 새 Multica Chat을 시작하거나 `/clear`로 현재 Chat의 에이전트 컨텍스트를 초기화할 수 있습니다.
+Multica는 사용자가 직접 만든 Slack app을 사용합니다. 연결하면 팀 멤버가 Bot과 DM을 나누고, 채널에서 @멘션하고, `@Multica /help`로 명령을 확인하고, `/issue`로 태스크를 만들고, `/new`으로 새 Multica Chat을 시작하거나 `/clear`로 현재 Chat의 에이전트 컨텍스트를 초기화할 수 있습니다.
Slack app 하나는 Multica 에이전트 하나에 대응합니다. 여러 에이전트를 연결하려면 에이전트마다 별도의 app을 만드세요.
@@ -75,7 +75,7 @@ settings:
token_rotation_enabled: false
```
-만들기 전에 두 `Multica` 값을 에이전트 이름으로 바꿀 수 있습니다. manifest의 권한이나 이벤트를 삭제하지 마세요. 삭제하면 DM, 채널 멘션, 답글, `/issue`, `/new`, `/clear`가 작동하지 않을 수 있습니다.
+만들기 전에 두 `Multica` 값을 에이전트 이름으로 바꿀 수 있습니다. manifest의 권한이나 이벤트를 삭제하지 마세요. 삭제하면 DM, 채널 멘션, 답글, `@Multica /help`, `/issue`, `/new`, `/clear`가 작동하지 않을 수 있습니다.
<Callout type="warning">
Slack slash command 이름은 workspace 전체에서 공유됩니다. 설치된 다른 app이 이미 `/new` 또는 `/clear`를 사용 중이면 app을 만들거나 업데이트할 때 충돌하는 명령이 거부됩니다. 충돌을 해결하거나 메시지 형식인 `@Multica /new [메시지]` 또는 `@Multica /clear [메시지]`를 보내 네이티브 slash command 가로채기를 우회하세요.
@@ -150,6 +150,12 @@ DM이나 Bot을 @멘션한 채널 메시지에 파일을 그대로 첨부하세
이 기능에는 `files:read` scope가 필요합니다. 첨부 파일 지원 이전에 설치한 app이라면 1단계의 안내를 참고하세요. 파일 하나는 20 MiB 이하여야 하고 메시지 하나에 최대 10개까지 담깁니다. 용량을 초과했거나 아직 업로드 중이거나 Slack 외부에 있는 파일(예: Google Drive, Dropbox 링크)은 건너뛰며, 메시지 본문은 그대로 에이전트에 전달됩니다.
+### `@Multica /help`로 명령 확인하기
+
+DM, 채널 또는 thread에서 `@Multica /help`를 보내면 `@Multica /help`, `@Multica /new [메시지]`, `@Multica /clear [메시지]`, `@Multica /issue <제목>`(다음 줄부터는 설명)이 표시됩니다. Multica는 Chat이나 실행을 만들거나 현재 Chat을 변경하지 않고 직접 답합니다.
+
+기본 manifest는 `/issue`, `/new`, `/clear`만 네이티브 slash command로 등록합니다. `@Multica /help`는 manifest 변경이나 재설치 없이 사용할 수 있습니다. 네이티브 `/issue <설명>`은 에이전트가 설명으로 태스크를 만들도록 요청합니다.
+
### `/issue`로 태스크 만들기
채널이나 DM에서 다음을 입력합니다.
@@ -204,6 +210,7 @@ API 서비스를 다시 시작한 뒤 Slack app을 연결하세요. 이 키는
- **app을 확인할 수 없음**: manifest에 `users:read`가 포함되어 있는지 확인하고 권한을 업데이트한 뒤 app을 다시 설치합니다.
- **DM 메뉴가 없음**: `app_home.messages_tab_enabled`가 `true`인지 확인합니다.
- **채널에서 답변이 없음**: Bot이 채널에 초대되었고 메시지에서 @멘션했는지 확인합니다.
+- **`/help`가 Multica에 도착하지 않음**: `@Multica /help`를 보내세요. 기본 manifest는 네이티브 `/help`를 등록하지 않습니다.
- **`/issue`, `/new` 또는 `/clear`가 없음**: manifest에 세 slash command와 `commands` scope가 포함되어 있는지 확인하고 app을 다시 설치합니다. Slack에서 `/new` 또는 `/clear`가 이미 사용 중이라고 표시되면 `@Multica` 메시지 형식을 사용하거나 workspace 수준의 명령 충돌을 먼저 해결하세요.
- **파일이 에이전트에 도착하지 않음**: manifest에 `files:read`가 포함되어 있는지, scope를 추가한 뒤 app을 다시 설치했는지 확인하고, 파일이 20 MiB 이하인지도 확인합니다.
- **Bot이 실행되지 않음**: 에이전트가 보관 처리되었는지, 사용하는 [런타임](/daemon-runtimes)이 온라인인지 확인합니다.
diff --git a/apps/docs/content/docs/slack-bot-integration.mdx b/apps/docs/content/docs/slack-bot-integration.mdx
index aef62f947d..749e11723f 100644
--- a/apps/docs/content/docs/slack-bot-integration.mdx
+++ b/apps/docs/content/docs/slack-bot-integration.mdx
@@ -1,12 +1,12 @@
---
title: Slack Bot
-description: Create a Slack Bot for an agent and use it in DMs, channels, and the /issue, /new, and /clear commands.
+description: Create a Slack Bot for an agent and use it in DMs, channels, and the @Multica /help, /issue, /new, and /clear commands.
---
import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
-Multica uses your own Slack app. Once connected, team members can DM the Bot or @-mention it in a channel, and use `/issue` to create issues, `/new` to start a new Multica Chat, and `/clear` to reset the current Chat's agent context.
+Multica uses your own Slack app. Once connected, team members can DM the Bot or @-mention it in a channel, and use `@Multica /help` to list commands, `/issue` to create issues, `/new` to start a new Multica Chat, and `/clear` to reset the current Chat's agent context.
One Slack app maps to one Multica agent. To connect several agents, create a separate app for each.
@@ -75,7 +75,7 @@ settings:
token_rotation_enabled: false
```
-Before creating, you can replace both occurrences of `Multica` with the agent's name. Do not remove scopes or events from the manifest, or DMs, channel mentions, replies, `/issue`, `/new`, or `/clear` may stop working.
+Before creating, you can replace both occurrences of `Multica` with the agent's name. Do not remove scopes or events from the manifest, or DMs, channel mentions, replies, `@Multica /help`, `/issue`, `/new`, or `/clear` may stop working.
<Callout type="warning">
Slack slash-command names are workspace-global. If another installed app already owns `/new` or `/clear`, Slack rejects the conflicting command when you create or update the app. Resolve the collision, or send the message form `@Multica /new [message]` or `@Multica /clear [message]` to bypass native slash-command interception.
@@ -154,6 +154,12 @@ Attach files to a DM, or to a channel message that @-mentions the Bot. They reac
This needs the `files:read` scope; if the app was installed before attachment support existed, see the note in step 1. Each file must be 20 MiB or smaller, and one message carries at most 10. Files that are larger, still uploading, or hosted outside Slack (a Google Drive or Dropbox link, for example) are skipped; the message text still reaches the agent.
+### List commands with `@Multica /help`
+
+Send `@Multica /help` in a DM, channel, or thread to list `@Multica /help`, `@Multica /new [message]`, `@Multica /clear [message]`, and `@Multica /issue <title>` (subsequent lines become the description). Multica replies directly without creating a Chat or run or changing the active Chat.
+
+The default manifest registers only `/issue`, `/new`, and `/clear` as native slash commands. `@Multica /help` needs no manifest change or reinstall. Native `/issue <description>` asks the agent to create an issue from your description.
+
### Create issues with `/issue`
In a channel or DM, type:
@@ -208,6 +214,7 @@ Account binding links use `MULTICA_APP_URL`, falling back to `FRONTEND_ORIGIN` w
- **App can't be verified**: confirm the manifest includes `users:read`, then reinstall the app after updating permissions.
- **No DM entry point**: confirm `app_home.messages_tab_enabled` is `true`.
- **No reply in a channel**: confirm the Bot has been invited to the channel and the message @-mentions it.
+- **`/help` does not reach Multica**: send `@Multica /help`; the default manifest does not register native `/help`.
- **`/issue`, `/new`, or `/clear` doesn't exist**: confirm the manifest includes all three slash commands and the `commands` scope, then reinstall the app. If Slack reports that `/new` or `/clear` is already taken, use the `@Multica` message form or resolve the workspace-level command collision first.
- **Files don't reach the agent**: confirm the manifest includes `files:read` and that the app was reinstalled after the scope was added, and check the file is 20 MiB or smaller.
- **The Bot doesn't run**: check whether the agent is archived and whether the [runtime](/daemon-runtimes) it uses is online.
diff --git a/apps/docs/content/docs/slack-bot-integration.zh-Hant.mdx b/apps/docs/content/docs/slack-bot-integration.zh-Hant.mdx
index 6b2e37e69b..1afb804558 100644
--- a/apps/docs/content/docs/slack-bot-integration.zh-Hant.mdx
+++ b/apps/docs/content/docs/slack-bot-integration.zh-Hant.mdx
@@ -1,12 +1,12 @@
---
title: Slack Bot
-description: 為 AI 代理建立一個 Slack Bot,在私聊、頻道以及 /issue、/new、/clear 命令中使用它。
+description: 為 AI 代理建立一個 Slack Bot,在私聊、頻道以及 @Multica /help、/issue、/new、/clear 命令中使用它。
---
import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
-Multica 使用你自己的 Slack app。連線後,團隊成員可以私聊 Bot、在頻道里 @ 它,也可以用 `/issue` 建立任務、`/new` 新建 Multica Chat、`/clear` 重置當前 Chat 的 AI 代理上下文。
+Multica 使用你自己的 Slack app。連線後,團隊成員可以私聊 Bot、在頻道里 @ 它,也可以用 `@Multica /help` 查看命令、`/issue` 建立任務、`/new` 新建 Multica Chat、`/clear` 重置當前 Chat 的 AI 代理上下文。
一個 Slack app 對應一個 Multica AI 代理。需要接入多個 AI 代理時,為每個 AI 代理分別建立 app。
@@ -75,7 +75,7 @@ settings:
token_rotation_enabled: false
```
-建立前可以把兩個 `Multica` 改成 AI 代理的名字。不要刪除 manifest 中的權限或事件,否則私聊、頻道提及、回覆、`/issue`、`/new` 或 `/clear` 可能無法工作。
+建立前可以把兩個 `Multica` 改成 AI 代理的名字。不要刪除 manifest 中的權限或事件,否則私聊、頻道提及、回覆、`@Multica /help`、`/issue`、`/new` 或 `/clear` 可能無法工作。
<Callout type="warning">
Slack slash command 名稱在整個 workspace 中共享。如果其他已安裝 app 佔用了 `/new` 或 `/clear`,Slack 會在建立或更新 app 時拒絕衝突命令。可以先解決名稱衝突,也可以傳送訊息形式的 `@Multica /new [訊息]` 或 `@Multica /clear [訊息]`,繞過原生 slash command 攔截。
@@ -150,6 +150,12 @@ Bot 只會響應明確 @ 它的頻道訊息。執行時,它會在權限允許
這需要 `files:read` 權限;應用如果是在附件支援之前安裝的,見第 1 步的提示。單個檔案不超過 20 MiB,一條訊息最多帶 10 個。超出大小、仍在上傳,或者存放在 Slack 之外(比如 Google Drive、Dropbox 連結)的檔案會被跳過,訊息文字仍然會交給 AI 代理。
+### 用 `@Multica /help` 查看命令
+
+在私聊、頻道或 thread 中傳送 `@Multica /help`,即可查看 `@Multica /help`、`@Multica /new [訊息]`、`@Multica /clear [訊息]` 和 `@Multica /issue <標題>`(後續行作為描述)。Multica 會直接回覆,不建立 Chat 或執行,也不改變當前 Chat。
+
+預設 manifest 僅註冊 `/issue`、`/new` 和 `/clear` 三個原生 slash command。使用 `@Multica /help` 無需修改 manifest 或重新安裝。原生 `/issue <描述>` 會讓 AI 代理根據描述建立任務。
+
### 用 `/issue` 建立任務
在頻道或私聊中輸入:
@@ -204,6 +210,7 @@ openssl rand -base64 32
- **無法驗證 app**:確認 manifest 包含 `users:read`,更新權限後重新安裝 app。
- **私聊沒有入口**:確認 `app_home.messages_tab_enabled` 為 `true`。
- **頻道里沒有回覆**:確認 Bot 已被邀請進頻道,並在訊息中 @ 了它。
+- **`/help` 沒有到達 Multica**:請傳送 `@Multica /help`;預設 manifest 不註冊原生 `/help`。
- **`/issue`、`/new` 或 `/clear` 不存在**:確認 manifest 包含這三個 slash command 和 `commands` scope,隨後重新安裝 app。如果 Slack 提示 `/new` 或 `/clear` 已被佔用,請改用 `@Multica` 訊息形式,或先解決 workspace 級命令衝突。
- **檔案沒有送達 AI 代理**:確認 manifest 裡包含 `files:read`,並且在新增該權限後重新安裝過應用,同時確認檔案不超過 20 MiB。
- **Bot 不執行**:檢查 AI 代理是否已歸檔,以及它使用的[執行時](/daemon-runtimes)是否線上。
diff --git a/apps/docs/content/docs/slack-bot-integration.zh.mdx b/apps/docs/content/docs/slack-bot-integration.zh.mdx
index 249fa2e45d..c0fa2f6977 100644
--- a/apps/docs/content/docs/slack-bot-integration.zh.mdx
+++ b/apps/docs/content/docs/slack-bot-integration.zh.mdx
@@ -1,12 +1,12 @@
---
title: Slack Bot
-description: 为智能体创建一个 Slack Bot,在私聊、频道以及 /issue、/new、/clear 命令中使用它。
+description: 为智能体创建一个 Slack Bot,在私聊、频道以及 @Multica /help、/issue、/new、/clear 命令中使用它。
---
import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
-Multica 使用你自己的 Slack app。连接后,团队成员可以私聊 Bot、在频道里 @ 它,也可以用 `/issue` 创建任务、`/new` 新建 Multica Chat、`/clear` 重置当前 Chat 的智能体上下文。
+Multica 使用你自己的 Slack app。连接后,团队成员可以私聊 Bot、在频道里 @ 它,也可以用 `@Multica /help` 查看命令、`/issue` 创建任务、`/new` 新建 Multica Chat、`/clear` 重置当前 Chat 的智能体上下文。
一个 Slack app 对应一个 Multica 智能体。需要接入多个智能体时,为每个智能体分别创建 app。
@@ -75,7 +75,7 @@ settings:
token_rotation_enabled: false
```
-创建前可以把两个 `Multica` 改成智能体的名字。不要删除 manifest 中的权限或事件,否则私聊、频道提及、回复、`/issue`、`/new` 或 `/clear` 可能无法工作。
+创建前可以把两个 `Multica` 改成智能体的名字。不要删除 manifest 中的权限或事件,否则私聊、频道提及、回复、`@Multica /help`、`/issue`、`/new` 或 `/clear` 可能无法工作。
<Callout type="warning">
Slack slash command 名称在整个 workspace 中共享。如果其他已安装 app 占用了 `/new` 或 `/clear`,Slack 会在创建或更新 app 时拒绝冲突命令。可以先解决名称冲突,也可以发送消息形式的 `@Multica /new [消息]` 或 `@Multica /clear [消息]`,绕过原生 slash command 拦截。
@@ -150,6 +150,12 @@ Bot 只会响应明确 @ 它的频道消息。执行时,它会在权限允许
这需要 `files:read` 权限;应用如果是在附件支持之前安装的,见第 1 步的提示。单个文件不超过 20 MiB,一条消息最多带 10 个。超出大小、仍在上传,或者存放在 Slack 之外(比如 Google Drive、Dropbox 链接)的文件会被跳过,消息文本仍然会交给智能体。
+### 用 `@Multica /help` 查看命令
+
+在私聊、频道或 thread 中发送 `@Multica /help`,即可查看 `@Multica /help`、`@Multica /new [消息]`、`@Multica /clear [消息]` 和 `@Multica /issue <标题>`(后续行作为描述)。Multica 会直接回复,不创建 Chat 或运行,也不改变当前 Chat。
+
+默认 manifest 仅注册 `/issue`、`/new` 和 `/clear` 三个原生 slash command。使用 `@Multica /help` 无需修改 manifest 或重新安装。原生 `/issue <描述>` 会让智能体根据描述创建任务。
+
### 用 `/issue` 创建任务
在频道或私聊中输入:
@@ -204,6 +210,7 @@ openssl rand -base64 32
- **无法验证 app**:确认 manifest 包含 `users:read`,更新权限后重新安装 app。
- **私聊没有入口**:确认 `app_home.messages_tab_enabled` 为 `true`。
- **频道里没有回复**:确认 Bot 已被邀请进频道,并在消息中 @ 了它。
+- **`/help` 没有到达 Multica**:请发送 `@Multica /help`;默认 manifest 不注册原生 `/help`。
- **`/issue`、`/new` 或 `/clear` 不存在**:确认 manifest 包含这三个 slash command 和 `commands` scope,随后重新安装 app。如果 Slack 提示 `/new` 或 `/clear` 已被占用,请改用 `@Multica` 消息形式,或先解决 workspace 级命令冲突。
- **文件没有送达智能体**:确认 manifest 里包含 `files:read`,并且在添加该权限后重新安装过应用,同时确认文件不超过 20 MiB。
- **Bot 不执行**:检查智能体是否已归档,以及它使用的[运行时](/daemon-runtimes)是否在线。
diff --git a/apps/docs/content/docs/weixin-bot-integration.fr.mdx b/apps/docs/content/docs/weixin-bot-integration.fr.mdx
index 647a26d606..a753a6192c 100644
--- a/apps/docs/content/docs/weixin-bot-integration.fr.mdx
+++ b/apps/docs/content/docs/weixin-bot-integration.fr.mdx
@@ -23,6 +23,7 @@ Le QR code de cette illustration sert aux tests ; ce n'est pas un code d'autoris
- Les messages texte poursuivent la même discussion Multica. Les réponses finales sont renvoyées à WeChat en texte brut ; les longues réponses sont découpées sans casser les caractères Unicode. Les messages ne sont pas modifiés en continu pendant la génération.
- Pendant l'exécution, Multica renouvelle l'indicateur de saisie de WeChat lorsqu'il est disponible. Il s'arrête après la fin, l'échec ou l'annulation. Un renouvellement qui échoue est retenté au prochain intervalle de cinq secondes. Une permission manquante ou une erreur de l'indicateur n'interrompt ni les messages ni les réponses.
+- `/help` affiche les commandes disponibles sans lancer d'exécution de l'agent ni modifier la discussion actuelle.
- `/new [message]` démarre une nouvelle discussion Multica. `/clear [message]` réinitialise le contexte visible par l'agent dans la discussion actuelle. `/issue <titre>` crée une tâche assignée à l'agent connecté.
- Lorsque le stockage objet est configuré, les images, fichiers, vidéos et notes vocales non transcrites reçus sont joints à la discussion Multica. Les transcriptions fournies par WeChat sont utilisées comme texte ; Multica n'ajoute pas de service de reconnaissance vocale et ne convertit pas l'audio SILK.
- Les fichiers joints à la réponse finale de l'agent sont renvoyés à WeChat. Les images prises en charge et les vidéos MP4 utilisent les messages multimédias natifs ; les autres formats, y compris l'audio, sont envoyés comme fichiers. Cet adaptateur limite chaque transfert à **20 MiB**. Un échec d'envoi produit un avertissement ; le fichier reste dans Multica.
diff --git a/apps/docs/content/docs/weixin-bot-integration.ja.mdx b/apps/docs/content/docs/weixin-bot-integration.ja.mdx
index 153f6b58bb..529d8dd264 100644
--- a/apps/docs/content/docs/weixin-bot-integration.ja.mdx
+++ b/apps/docs/content/docs/weixin-bot-integration.ja.mdx
@@ -23,6 +23,7 @@ Multica は Tencent の [OpenClaw Weixin プラグイン](https://github.com/Ten
- テキストメッセージは同じ Multica チャットを継続します。最終回答はプレーンテキストで WeChat に返され、長い回答は Unicode 文字を壊さずに分割されます。ストリーミングによるメッセージ編集はありません。
- エージェントの実行中は、利用可能な場合に WeChat の入力中表示を更新します。完了、失敗、キャンセル後は停止します。更新に失敗した場合は、次の 5 秒間隔で再試行します。入力中表示の権限やリクエストに問題があっても、メッセージや返信は中断しません。
+- `/help` は利用可能なコマンドを表示します。エージェントの実行を開始せず、現在のチャットも変更しません。
- `/new [メッセージ]` は新しい Multica チャットを開始します。`/clear [メッセージ]` は現在のチャットのエージェント向けコンテキストをリセットします。`/issue <タイトル>` は接続先のエージェントに割り当てるタスクを作成します。
- オブジェクトストレージが設定されていれば、受信した画像、ファイル、動画、文字起こしのない音声メモを Multica チャットに添付します。WeChat が提供する音声の文字起こしはテキストとして使います。Multica 独自の音声認識サービスや SILK 音声の変換は行いません。
- エージェントの最終回答に添付されたファイルは WeChat に返されます。対応画像と MP4 動画はネイティブのメディアメッセージ、それ以外の形式と音声はファイルメッセージで送信します。このアダプターの転送上限は 1 ファイル **20 MiB** です。送信に失敗した場合は通知を返し、ファイルは Multica に残ります。
diff --git a/apps/docs/content/docs/weixin-bot-integration.ko.mdx b/apps/docs/content/docs/weixin-bot-integration.ko.mdx
index 6afa3600ba..531ca55752 100644
--- a/apps/docs/content/docs/weixin-bot-integration.ko.mdx
+++ b/apps/docs/content/docs/weixin-bot-integration.ko.mdx
@@ -23,6 +23,7 @@ Multica는 Tencent의 [OpenClaw Weixin 플러그인](https://github.com/Tencent/
- 텍스트 메시지는 같은 Multica 채팅을 이어갑니다. 최종 답변은 일반 텍스트로 WeChat에 전달되며, 긴 답변은 Unicode 문자가 손상되지 않도록 나눠 보냅니다. 스트리밍 메시지 편집은 지원하지 않습니다.
- 에이전트가 실행되는 동안 가능하면 WeChat의 입력 중 표시를 갱신합니다. 완료, 실패 또는 취소 후에는 중단합니다. 갱신에 실패하면 다음 5초 주기에 다시 시도합니다. 표시 권한이 없거나 요청이 실패해도 메시지와 답변은 중단되지 않습니다.
+- `/help` 는 에이전트 실행을 시작하거나 현재 채팅을 변경하지 않고 사용 가능한 명령을 표시합니다.
- `/new [메시지]` 는 새 Multica 채팅을 시작합니다. `/clear [메시지]` 는 현재 채팅에서 에이전트가 볼 수 있는 컨텍스트를 초기화합니다. `/issue <제목>` 은 연결된 에이전트에게 할당되는 태스크를 만듭니다.
- 오브젝트 스토리지가 설정되어 있으면 받은 이미지, 파일, 동영상, 전사되지 않은 음성 메시지를 Multica 채팅에 첨부합니다. WeChat이 제공한 음성 전사는 텍스트로 사용합니다. Multica는 별도 음성 인식 서비스를 추가하거나 SILK 오디오를 변환하지 않습니다.
- 에이전트의 최종 답변에 첨부된 파일은 WeChat으로 전달됩니다. 지원되는 이미지와 MP4 동영상은 네이티브 미디어 메시지로, 오디오를 포함한 다른 형식은 파일 메시지로 보냅니다. 이 어댑터의 전송 한도는 파일당 **20 MiB** 입니다. 파일 전송에 실패하면 안내를 보내며, 파일은 Multica에 남습니다.
diff --git a/apps/docs/content/docs/weixin-bot-integration.mdx b/apps/docs/content/docs/weixin-bot-integration.mdx
index 5f6b3c7951..23837afbed 100644
--- a/apps/docs/content/docs/weixin-bot-integration.mdx
+++ b/apps/docs/content/docs/weixin-bot-integration.mdx
@@ -23,6 +23,7 @@ The QR code in this illustration is a test fixture, not a live authorization cod
- Text messages continue the same Multica chat. Final answers return to WeChat in plain text; long answers are split into Unicode-safe messages. There is no streaming message editing.
- While the agent works, Multica renews WeChat's typing indicator when available. It stops after completion, failure, or cancellation. A failed renewal is retried at the next five-second interval. Missing typing permission or a failed indicator request does not interrupt messages or replies.
+- `/help` lists available commands without starting an agent run or changing the current chat.
- `/new [message]` starts a new Multica chat. `/clear [message]` resets agent-visible context in the current chat. `/issue <title>` creates an issue assigned to the connected agent.
- With object storage configured, incoming images, files, video, and untranscribed voice notes are attached to the Multica chat. Voice transcription supplied by WeChat is used as text; Multica does not add a speech-to-text service or convert SILK audio.
- Files attached to an agent's final answer return to WeChat. Supported images and MP4 video use native media messages; other formats, including audio, use file messages. Each transfer is limited to **20 MiB** by this adapter. A failed outgoing file transfer produces a notice; the file remains in Multica.
diff --git a/apps/docs/content/docs/weixin-bot-integration.zh-Hant.mdx b/apps/docs/content/docs/weixin-bot-integration.zh-Hant.mdx
index 3233cc28f3..40e306ec51 100644
--- a/apps/docs/content/docs/weixin-bot-integration.zh-Hant.mdx
+++ b/apps/docs/content/docs/weixin-bot-integration.zh-Hant.mdx
@@ -19,6 +19,7 @@ Multica 參考騰訊 [OpenClaw Weixin 外掛](https://github.com/Tencent/opencla
- 文字訊息會繼續同一個 Multica 聊天,最終回覆以純文字返回微信。長回覆按完整 Unicode 字元分段,不提供串流編輯。
- AI 代理執行期間,微信支援時會顯示「正在輸入」,完成、失敗或取消後停止提示。單次續期失敗後,會在下一個 5 秒週期繼續嘗試。無法取得輸入狀態憑證或提示請求失敗,不影響正常收發。
+- `/help` 查看可用命令,不觸發 AI 代理執行,也不改變目前聊天。
- `/new [訊息]` 新建聊天;`/clear [訊息]` 重設目前聊天的 AI 代理上下文;`/issue <標題>` 建立任務並分配給此 AI 代理。
- 配置物件儲存後,圖片、檔案、影片和未轉寫的語音會作為附件進入聊天。微信提供的語音轉寫作為文字處理;Multica 不額外提供語音辨識,也不轉換 SILK 音訊。
- AI 代理最終回覆中的附件會傳送回微信。支援的圖片和 MP4 影片使用原生媒體訊息,其他格式(包括音訊)使用檔案訊息。本適配器限制每次傳輸不超過 **20 MiB**。檔案傳送失敗時會提示,檔案仍保留在 Multica 中。
diff --git a/apps/docs/content/docs/weixin-bot-integration.zh.mdx b/apps/docs/content/docs/weixin-bot-integration.zh.mdx
index 794cf4e6f0..d59900a4c5 100644
--- a/apps/docs/content/docs/weixin-bot-integration.zh.mdx
+++ b/apps/docs/content/docs/weixin-bot-integration.zh.mdx
@@ -19,6 +19,7 @@ Multica 参考腾讯 [OpenClaw Weixin 插件](https://github.com/Tencent/opencla
- 文字消息会继续同一个 Multica 聊天,最终回复以纯文本返回微信。长回复按完整 Unicode 字符分段,不提供流式编辑。
- 智能体运行期间,微信支持时会显示「正在输入」,完成、失败或取消后停止提示。单次续期失败后,会在下一个 5 秒周期继续尝试。无法获取输入状态凭据或提示请求失败,不影响正常收发。
+- `/help` 查看可用命令,不触发智能体运行,也不改变当前聊天。
- `/new [消息]` 新建聊天;`/clear [消息]` 重置当前聊天的智能体上下文;`/issue <标题>` 创建任务并分配给此智能体。
- 配置对象存储后,图片、文件、视频和未转写的语音会作为附件进入聊天。微信提供的语音转写作为文字处理;Multica 不额外提供语音识别,也不转换 SILK 音频。
- 智能体最终回复中的附件会发送回微信。支持的图片和 MP4 视频使用原生媒体消息,其他格式(包括音频)使用文件消息。本适配器限制每次传输不超过 **20 MiB**。文件发送失败时会提示,文件仍保留在 Multica 中。
diff --git a/apps/docs/lib/slack-manifest.test.ts b/apps/docs/lib/slack-manifest.test.ts
new file mode 100644
index 0000000000..43055265e7
--- /dev/null
+++ b/apps/docs/lib/slack-manifest.test.ts
@@ -0,0 +1,24 @@
+// @vitest-environment node
+import { readFileSync } from "node:fs";
+import path from "node:path";
+import { describe, expect, it } from "vitest";
+
+describe("default Slack installation manifest", () => {
+ it.each(["", ".zh", ".zh-Hant", ".ja", ".ko", ".fr"])(
+ "keeps help available through mentions without registering /help (%s)",
+ (locale) => {
+ const source = readFileSync(
+ path.resolve(__dirname, `../content/docs/slack-bot-integration${locale}.mdx`),
+ "utf8",
+ );
+ const manifest = /^```yaml\r?\n([\s\S]*?)^```/m.exec(source)?.[1];
+ if (!manifest) throw new Error("Missing Slack installation manifest");
+ const commands = [...manifest.matchAll(/^\s+- command:\s*(\/\S+)/gm)].map(
+ (match) => match[1],
+ );
+ expect(commands).not.toContain("/help");
+ expect(commands).toEqual(expect.arrayContaining(["/issue", "/new", "/clear"]));
+ expect(manifest).toMatch(/^\s+- app_mention$/m);
+ },
+ );
+});
diff --git a/server/internal/integrations/channel/engine/help_command.go b/server/internal/integrations/channel/engine/help_command.go
new file mode 100644
index 0000000000..38f864a262
--- /dev/null
+++ b/server/internal/integrations/channel/engine/help_command.go
@@ -0,0 +1,33 @@
+package engine
+
+const OutcomeHelp Outcome = "help"
+
+const (
+ helpCommandsEnglish = "Available commands:\n\n" +
+ "- `/help` — Show available commands.\n" +
+ "- `/new [message]` — Start a new chat.\n" +
+ "- `/clear [message]` — Reset the agent context in this chat; keep its history.\n"
+
+ HelpTextEnglish = helpCommandsEnglish +
+ "- `/issue <title>` — Create an issue. Add an optional description on the following lines.\n\n" +
+ "In groups or channels, mention the bot before the command."
+
+ HelpTextChinese = "可用命令:\n\n" +
+ "- `/help` — 查看命令帮助。\n" +
+ "- `/new [消息]` — 新建对话。\n" +
+ "- `/clear [消息]` — 重置当前对话的智能体上下文,保留历史记录。\n" +
+ "- `/issue <标题>` — 创建任务,后续行可填写描述。\n\n" +
+ "群聊中请先 @ 机器人,再输入命令。"
+
+ // Slack's native /issue uses quick-create rather than the message parser.
+ SlackHelpText = helpCommandsEnglish +
+ "- `/issue <description>` — Ask the agent to create an issue. You'll receive a Multica notification when it's ready.\n\n" +
+ "In channels, use `@Multica /new` or `@Multica /clear` in the target thread."
+)
+
+// IsHelpCommand recognizes /help using the same first-line and token rules as
+// the session commands, without treating help as a context-changing directive.
+func IsHelpCommand(body string) bool {
+ _, ok := parseLeadingCommand(body, "/help")
+ return ok
+}
diff --git a/server/internal/integrations/channel/engine/help_command_test.go b/server/internal/integrations/channel/engine/help_command_test.go
new file mode 100644
index 0000000000..b9c750b0d0
--- /dev/null
+++ b/server/internal/integrations/channel/engine/help_command_test.go
@@ -0,0 +1,113 @@
+package engine
+
+import (
+ "context"
+ "testing"
+)
+
+func TestIsHelpCommand(t *testing.T) {
+ for _, tc := range []struct {
+ body string
+ want bool
+ }{
+ {body: "/help", want: true},
+ {body: "\n\t /help \n", want: true},
+ {body: "/help commands", want: true},
+ {body: "/help\n/issue example", want: true},
+ {body: "/helper"},
+ {body: "/Help"},
+ {body: "please /help"},
+ {body: "quoted text\n/help"},
+ {body: ""},
+ } {
+ t.Run(tc.body, func(t *testing.T) {
+ if got := IsHelpCommand(tc.body); got != tc.want {
+ t.Fatalf("IsHelpCommand(%q) = %v, want %v", tc.body, got, tc.want)
+ }
+ })
+ }
+}
+
+func TestRouter_HelpRepliesWithoutChangingChatOrRunningAgent(t *testing.T) {
+ for _, group := range []bool{false, true} {
+ t.Run(map[bool]string{false: "private", true: "group"}[group], func(t *testing.T) {
+ h := newHarness(t)
+ msg := p2pMessage(t)
+ msg.CommandText = "/help"
+ msg.Text = "[quoted context]\n/help\n[Image]"
+ if group {
+ msg.Source.ChatType = "group"
+ msg.AddressedToBot = true
+ }
+ if err := h.router.Handle(context.Background(), msg); err != nil {
+ t.Fatal(err)
+ }
+ h.router.Drain(context.Background())
+ results := h.replier.calls()
+ if len(results) != 1 || results[0].Outcome != OutcomeHelp {
+ t.Fatalf("results = %+v, want one help reply", results)
+ }
+ if results[0].ChatSessionID.Valid || h.binder.ensureCalls != 0 || h.binder.startCalls != 0 || h.binder.appendedParams().SessionID.Valid || h.binder.pendingFreshCalls() != 0 {
+ t.Fatal("help created, appended to, or reset a Chat")
+ }
+ if h.tasks.called || h.issues.called || h.media.calls() != 0 || h.typing.calls() != 0 {
+ t.Fatal("help scheduled agent work, created an issue, downloaded media, or started typing")
+ }
+ if h.dedup.marks() != 1 || h.dedup.releases() != 0 {
+ t.Fatal("help must finalize its dedup claim")
+ }
+ })
+ }
+}
+
+func TestRouter_HelpRespectsChannelAccessChecks(t *testing.T) {
+ for _, tc := range []struct {
+ name string
+ setup func(*harness)
+ want Outcome
+ }{
+ {name: "disconnected", setup: func(h *harness) { h.inst.inst.Active = false }, want: OutcomeDropped},
+ {name: "duplicate", setup: func(h *harness) { h.dedup.claimErr = ErrDuplicate }, want: OutcomeDropped},
+ {name: "unbound", setup: func(h *harness) { h.ident.err = ErrSenderUnbound }, want: OutcomeNeedsBinding},
+ {name: "nonmember", setup: func(h *harness) { h.ident.err = ErrSenderNotMember }, want: OutcomeDropped},
+ {name: "invoke denied", setup: func(h *harness) { h.tasks.denyInvoke = true }, want: OutcomeInvokeDenied},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ h := newHarness(t)
+ tc.setup(h)
+ msg := p2pMessage(t)
+ msg.Text = "/help"
+ if err := h.router.Handle(context.Background(), msg); err != nil {
+ t.Fatal(err)
+ }
+ h.router.Drain(context.Background())
+ results := h.replier.calls()
+ if len(results) != 1 || results[0].Outcome != tc.want {
+ t.Fatalf("results = %+v, want %s", results, tc.want)
+ }
+ })
+ }
+}
+
+func TestRouter_NewAndClearDoNotReinterpretHelpBody(t *testing.T) {
+ for _, body := range []string{"/new /help", "/clear /help"} {
+ t.Run(body, func(t *testing.T) {
+ h := newHarness(t)
+ h.media.noMedia = true
+ msg := p2pMessage(t)
+ msg.Text = body
+ if err := h.router.Handle(context.Background(), msg); err != nil {
+ t.Fatal(err)
+ }
+ h.router.Drain(context.Background())
+ if got := h.binder.appendedParams().Message.Text; got != "/help" {
+ t.Fatalf("agent prompt = %q, want literal /help", got)
+ }
+ for _, result := range h.replier.calls() {
+ if result.Outcome == OutcomeHelp {
+ t.Fatal("session command body was reinterpreted as help")
+ }
+ }
+ })
+ }
+}
diff --git a/server/internal/integrations/channel/engine/router.go b/server/internal/integrations/channel/engine/router.go
index 8e8fde98aa..004594d4dd 100644
--- a/server/internal/integrations/channel/engine/router.go
+++ b/server/internal/integrations/channel/engine/router.go
@@ -406,6 +406,17 @@ func (r *Router) processClaimed(ctx context.Context, set ResolverSet, msg channe
}, finalizeMark, nil
}
+ // Help is answered before resolving a Chat so it cannot alter its route,
+ // history, or pending context boundary. A consumed /new or /clear body is
+ // literal agent input, even when it starts with /help.
+ if !startChat && !msg.ForceFresh && IsHelpCommand(msg.CommandText) {
+ return Result{
+ Outcome: OutcomeHelp,
+ InstallationID: inst.ID,
+ Sender: msg.Source.SenderID,
+ }, finalizeMark, nil
+ }
+
// 5-6. Resolve the current Chat route, then either append normally or
// atomically create the next Chat route with its optional first turn.
sessionCreator := identity.UserID
diff --git a/server/internal/integrations/dingtalk/replier.go b/server/internal/integrations/dingtalk/replier.go
index 3c68baa2d4..91958a6a59 100644
--- a/server/internal/integrations/dingtalk/replier.go
+++ b/server/internal/integrations/dingtalk/replier.go
@@ -141,6 +141,11 @@ func (r *OutboundReplier) Reply(ctx context.Context, inst engine.ResolvedInstall
if err := r.post(ctx, inst, msg, chatStartedText); err != nil {
r.logger.WarnContext(ctx, "dingtalk replier: new-chat confirmation failed", "installation_id", util.UUIDToString(inst.ID), "error", err)
}
+ case engine.OutcomeHelp:
+ if err := r.post(ctx, inst, msg, engine.HelpTextEnglish); err != nil {
+ r.logger.WarnContext(ctx, "dingtalk replier: help reply failed",
+ "installation_id", util.UUIDToString(inst.ID), "error", err)
+ }
case engine.OutcomeIssueUsage:
text := issueUsageText
if res.IssueUsageHadMedia {
diff --git a/server/internal/integrations/dingtalk/replier_test.go b/server/internal/integrations/dingtalk/replier_test.go
index 4f89e08801..0f7a499504 100644
--- a/server/internal/integrations/dingtalk/replier_test.go
+++ b/server/internal/integrations/dingtalk/replier_test.go
@@ -79,6 +79,7 @@ func TestReplierCommandConfirmationsKeepSuccessMarker(t *testing.T) {
success bool
plainReply bool
}{
+ {name: "help", result: engine.Result{Outcome: engine.OutcomeHelp}, text: engine.HelpTextEnglish},
{name: "clear", result: engine.Result{Outcome: engine.OutcomeFreshPending}, text: "Fresh start ready. Your next chat message will run without previous context.", success: true},
{name: "new", result: engine.Result{Outcome: engine.OutcomeChatStarted}, text: "Started a new Multica chat. Your next message will enter it.", success: true},
{name: "issue", result: engine.Result{Outcome: engine.OutcomeIngested, IssueID: pgtype.UUID{Valid: true}, IssueWorkspaceSlug: "team-b", IssueIdentifier: "MUL-42", IssueTitle: "✅ Keep this title"}, text: "Created [MUL-42](https://multica.example/team-b/issues/00000000-0000-0000-0000-000000000000) — ✅ Keep this title", success: true},
diff --git a/server/internal/integrations/lark/outcome_replier.go b/server/internal/integrations/lark/outcome_replier.go
index aee33c0404..1561b0e1fa 100644
--- a/server/internal/integrations/lark/outcome_replier.go
+++ b/server/internal/integrations/lark/outcome_replier.go
@@ -11,6 +11,7 @@ import (
"github.com/jackc/pgx/v5/pgtype"
"github.com/multica-ai/multica/server/internal/integrations/channel"
+ "github.com/multica-ai/multica/server/internal/integrations/channel/engine"
db "github.com/multica-ai/multica/server/pkg/db/generated"
)
@@ -53,7 +54,7 @@ type noopReplier struct {
func (n *noopReplier) Reply(ctx context.Context, inst Installation, msg InboundMessage, res DispatchResult) {
switch res.Outcome {
- case OutcomeNeedsBinding, OutcomeAgentOffline, OutcomeAgentArchived, OutcomeFreshPending, OutcomeChatStarted, OutcomeIssueUsage:
+ case OutcomeNeedsBinding, OutcomeAgentOffline, OutcomeAgentArchived, OutcomeFreshPending, OutcomeChatStarted, Outcome(engine.OutcomeHelp), OutcomeIssueUsage:
n.log.Warn("lark outcome replier: outbound reply skipped (replier not wired)",
"outcome", string(res.Outcome),
"installation_id", uuidString(inst.ID),
@@ -192,6 +193,14 @@ func (r *LarkOutcomeReplier) Reply(ctx context.Context, inst Installation, msg I
if err := r.sendChatNotice(ctx, inst, msg, chatStartedCopy); err != nil {
r.log.Warn("lark outcome replier: new-chat confirmation failed", "installation_id", uuidString(inst.ID), "chat_id", string(msg.ChatID), "err", err.Error())
}
+ case Outcome(engine.OutcomeHelp):
+ if err := r.sendChatNotice(ctx, inst, msg, engine.HelpTextChinese); err != nil {
+ r.log.Warn("lark outcome replier: help reply failed",
+ "installation_id", uuidString(inst.ID),
+ "chat_id", string(msg.ChatID),
+ "err", err.Error(),
+ )
+ }
case OutcomeIssueUsage:
copy := issueUsageCopy
if res.IssueUsageHadMedia {
diff --git a/server/internal/integrations/lark/outcome_replier_test.go b/server/internal/integrations/lark/outcome_replier_test.go
index d92d981bb2..c69e1190dc 100644
--- a/server/internal/integrations/lark/outcome_replier_test.go
+++ b/server/internal/integrations/lark/outcome_replier_test.go
@@ -11,6 +11,7 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
+ "github.com/multica-ai/multica/server/internal/integrations/channel/engine"
db "github.com/multica-ai/multica/server/pkg/db/generated"
)
@@ -247,6 +248,7 @@ func TestLarkOutcomeReplierCommandOutcomesSendGuidance(t *testing.T) {
hadMedia bool
want string
}{
+ {"help", Outcome(engine.OutcomeHelp), false, "/help"},
{"fresh pending", OutcomeFreshPending, false, "下一条聊天消息"},
{"plain issue usage", OutcomeIssueUsage, false, "请填写任务标题"},
{"issue usage with media", OutcomeIssueUsage, true, "请添加标题,并与图片或视频一起重新发送"},
diff --git a/server/internal/integrations/slack/replier.go b/server/internal/integrations/slack/replier.go
index 9e7646b2c9..fb635dc2b9 100644
--- a/server/internal/integrations/slack/replier.go
+++ b/server/internal/integrations/slack/replier.go
@@ -136,6 +136,12 @@ func (r *OutboundReplier) Reply(ctx context.Context, inst engine.ResolvedInstall
if err := r.postResult(ctx, inst, msg, res, chatStartedText); err != nil {
r.logger.WarnContext(ctx, "slack replier: new-chat confirmation failed", "installation_id", util.UUIDToString(inst.ID), "error", err)
}
+ case engine.OutcomeHelp:
+ helpText := strings.ReplaceAll(engine.HelpTextEnglish, "`/", "`@Multica /")
+ if err := r.postResult(ctx, inst, msg, res, helpText); err != nil {
+ r.logger.WarnContext(ctx, "slack replier: help reply failed",
+ "installation_id", util.UUIDToString(inst.ID), "error", err)
+ }
case engine.OutcomeIssueUsage:
if err := r.postResult(ctx, inst, msg, res, issueUsageText); err != nil {
r.logger.WarnContext(ctx, "slack replier: issue usage reply failed",
diff --git a/server/internal/integrations/slack/replier_test.go b/server/internal/integrations/slack/replier_test.go
index a584b21c0e..2bbca68f93 100644
--- a/server/internal/integrations/slack/replier_test.go
+++ b/server/internal/integrations/slack/replier_test.go
@@ -143,6 +143,29 @@ func TestReply_CommandOutcomes_PostGuidance(t *testing.T) {
}
}
+func TestReply_HelpAdvertisesMentionCommands(t *testing.T) {
+ for _, chatType := range []channel.ChatType{channel.ChatTypeP2P, channel.ChatTypeGroup} {
+ t.Run(string(chatType), func(t *testing.T) {
+ sender := &fakeReplySender{}
+ r := newTestReplier(&fakeBindingMinter{}, sender)
+ msg := testInboundForReply()
+ msg.Source.ChatType = chatType
+ r.Reply(context.Background(), testResolvedInstallation(t), msg, engine.Result{Outcome: engine.OutcomeHelp})
+ if sender.calls != 1 || sender.sent == nil {
+ t.Fatalf("expected one help reply, got %d", sender.calls)
+ }
+ if sender.sent.ChatID != msg.Source.ChatID || sender.sent.ThreadID != msg.Source.ThreadID {
+ t.Fatalf("wrong help reply target: %+v", sender.sent)
+ }
+ for _, command := range []string{"/help", "/new [message]", "/clear [message]", "/issue <title>"} {
+ if !strings.Contains(sender.sent.Text, "`@Multica "+command+"`") {
+ t.Errorf("help must advertise the mention form of %s: %q", command, sender.sent.Text)
+ }
+ }
+ })
+ }
+}
+
func TestReply_IngestedWithIssue_Confirms(t *testing.T) {
sender := &fakeReplySender{}
r := newTestReplier(&fakeBindingMinter{}, sender)
diff --git a/server/internal/integrations/slack/slash_command.go b/server/internal/integrations/slack/slash_command.go
index 43cd40a181..14e18c6e0a 100644
--- a/server/internal/integrations/slack/slash_command.go
+++ b/server/internal/integrations/slack/slash_command.go
@@ -15,7 +15,7 @@ import (
db "github.com/multica-ai/multica/server/pkg/db/generated"
)
-// This file implements the Slack `/issue`, `/new`, and `/clear` SLASH COMMANDS. They are
+// This file implements the Slack `/issue`, `/new`, `/clear`, and `/help` SLASH COMMANDS. They are
// deliberately separate from message-prefix commands: on Slack
// a message whose first character is `/` is intercepted by the client as a
// slash command and never delivered to the app, so the message-prefix form of
@@ -43,6 +43,7 @@ import (
const issueSlashCommand = "/issue"
const newSlashCommand = "/new"
const clearSlashCommand = "/clear"
+const helpSlashCommand = "/help"
// User-facing ephemeral replies. Kept terse; only the invoker sees them.
const (
@@ -80,7 +81,7 @@ type slashControlStarter interface {
ClearSlackDMContext(ctx context.Context, inst engine.ResolvedInstallation, userID pgtype.UUID, cmd slack.SlashCommand, envelopeID string) error
}
-// SlashCommandProcessor handles Slack `/issue`, `/new`, and `/clear` commands end to end.
+// SlashCommandProcessor handles Slack `/issue`, `/new`, `/clear`, and `/help` commands end to end.
type SlashCommandProcessor struct {
q slashQueries
tasks quickCreateEnqueuer
@@ -151,11 +152,12 @@ func (p *SlashCommandProcessor) Handle(ctx context.Context, cmd slack.SlashComma
// HandleEnvelope preserves Socket Mode's durable envelope id for control-command dedup.
func (p *SlashCommandProcessor) HandleEnvelope(ctx context.Context, cmd slack.SlashCommand, envelopeID string) {
command := strings.TrimSpace(cmd.Command)
- if !strings.EqualFold(command, issueSlashCommand) && command != newSlashCommand && command != clearSlashCommand {
+ if !strings.EqualFold(command, issueSlashCommand) && command != newSlashCommand && command != clearSlashCommand && command != helpSlashCommand {
return
}
+ cmd.Command = command
var text string
- if command == newSlashCommand || command == clearSlashCommand {
+ if command == newSlashCommand || command == clearSlashCommand || command == helpSlashCommand {
text = p.processControl(ctx, cmd, envelopeID)
} else {
text = p.process(ctx, cmd)
@@ -191,6 +193,9 @@ func (p *SlashCommandProcessor) processControl(ctx context.Context, cmd slack.Sl
return slashInternalErrorText
}
}
+ if cmd.Command == helpSlashCommand {
+ return engine.SlackHelpText
+ }
// Keep command availability and channel-routing guidance behind the same
// installation, account-binding, and workspace-membership checks as every
// other Slack entry point.
diff --git a/server/internal/integrations/slack/slash_help_test.go b/server/internal/integrations/slack/slash_help_test.go
new file mode 100644
index 0000000000..6f3cf649fa
--- /dev/null
+++ b/server/internal/integrations/slack/slash_help_test.go
@@ -0,0 +1,79 @@
+package slack
+
+import (
+ "context"
+ "errors"
+ "strings"
+ "testing"
+
+ "github.com/jackc/pgx/v5"
+ "github.com/slack-go/slack"
+
+ "github.com/multica-ai/multica/server/internal/integrations/channel/engine"
+
+ db "github.com/multica-ai/multica/server/pkg/db/generated"
+)
+
+func TestSlashHelpRepliesWithoutAgentOrSessionWork(t *testing.T) {
+ for _, channelID := range []string{"D1", "C1"} {
+ t.Run(channelID, func(t *testing.T) {
+ q := &fakeSlashQueries{inst: activeSlashInstallation(), binding: db.ChannelUserBinding{MulticaUserID: slashTestUUID(9)}}
+ tasks := &fakeQuickCreate{}
+ control := &fakeSlashControlStarter{}
+ p, captured, count := newTestSlashProcessor(q, tasks, nil)
+ p.control = control
+ cmd := issueSlashCmd()
+ cmd.Command, cmd.Text, cmd.ChannelID = "/help", "", channelID
+ p.HandleEnvelope(context.Background(), cmd, "help-envelope")
+ if *count != 1 || *captured != engine.SlackHelpText {
+ t.Fatalf("help replies = %d, text = %q", *count, *captured)
+ }
+ for _, command := range []string{"/help", "/new", "/clear", "/issue"} {
+ if !strings.Contains(*captured, command) {
+ t.Errorf("help does not list %s", command)
+ }
+ }
+ if tasks.calls != 0 || control.newCalls != 0 || control.clearCalls != 0 {
+ t.Fatal("help scheduled a task or changed a Chat")
+ }
+ })
+ }
+}
+
+func TestSlashHelpRespectsInstallationAndMembership(t *testing.T) {
+ for _, tc := range []struct {
+ name string
+ setup func(*fakeSlashQueries)
+ want string
+ }{
+ {name: "missing installation", setup: func(q *fakeSlashQueries) { q.instErr = pgx.ErrNoRows }, want: slashDisabledText},
+ {name: "revoked", setup: func(q *fakeSlashQueries) { q.inst.Status = "revoked" }, want: slashDisabledText},
+ {name: "unbound", setup: func(q *fakeSlashQueries) { q.bindErr = pgx.ErrNoRows }, want: slashLinkAccountFallback},
+ {name: "nonmember", setup: func(q *fakeSlashQueries) { q.memberErr = pgx.ErrNoRows }, want: slashNotMemberText},
+ {name: "lookup failure", setup: func(q *fakeSlashQueries) { q.instErr = errors.New("unavailable") }, want: slashInternalErrorText},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ q := &fakeSlashQueries{inst: activeSlashInstallation()}
+ tc.setup(q)
+ tasks := &fakeQuickCreate{}
+ p, captured, count := newTestSlashProcessor(q, tasks, nil)
+ cmd := issueSlashCmd()
+ cmd.Command, cmd.Text = "/help", ""
+ p.Handle(context.Background(), cmd)
+ if *count != 1 || *captured != tc.want {
+ t.Fatalf("replies = %d, text = %q, want %q", *count, *captured, tc.want)
+ }
+ if tasks.calls != 0 {
+ t.Fatal("help enqueued a quick-create task")
+ }
+ })
+ }
+}
+
+func TestSlashHelpWithoutResponseURLDoesNotPost(t *testing.T) {
+ p, _, count := newTestSlashProcessor(&fakeSlashQueries{inst: activeSlashInstallation()}, &fakeQuickCreate{}, nil)
+ p.Handle(context.Background(), slack.SlashCommand{Command: "/help", APIAppID: "A1", TeamID: "T1"})
+ if *count != 0 {
+ t.Fatal("posted help without a response URL")
+ }
+}
diff --git a/server/internal/integrations/telegram/replier.go b/server/internal/integrations/telegram/replier.go
index 3b51d6937c..32d9327c1b 100644
--- a/server/internal/integrations/telegram/replier.go
+++ b/server/internal/integrations/telegram/replier.go
@@ -122,6 +122,11 @@ func (r *OutboundReplier) Reply(ctx context.Context, inst engine.ResolvedInstall
r.logger.WarnContext(ctx, "telegram replier: new-chat confirmation failed",
"installation_id", util.UUIDToString(inst.ID), "error", err)
}
+ case engine.OutcomeHelp:
+ if err := r.post(ctx, inst, msg, strings.ReplaceAll(engine.HelpTextEnglish, "`", "")); err != nil {
+ r.logger.WarnContext(ctx, "telegram replier: help reply failed",
+ "installation_id", util.UUIDToString(inst.ID), "error", err)
+ }
case engine.OutcomeIssueUsage:
if err := r.post(ctx, inst, msg, msgIssueUsage); err != nil {
r.logger.WarnContext(ctx, "telegram replier: issue usage reply failed",
diff --git a/server/internal/integrations/telegram/replier_test.go b/server/internal/integrations/telegram/replier_test.go
index e743705e59..a3340c847f 100644
--- a/server/internal/integrations/telegram/replier_test.go
+++ b/server/internal/integrations/telegram/replier_test.go
@@ -127,6 +127,7 @@ func TestReplyCoversCommandAndIssueOutcomes(t *testing.T) {
for _, res := range []engine.Result{
{Outcome: engine.OutcomeFreshPending},
+ {Outcome: engine.OutcomeHelp},
{Outcome: engine.OutcomeChatStarted},
{Outcome: engine.OutcomeIssueUsage},
{Outcome: engine.OutcomeIngested, IssueID: issueID, IssueIdentifier: "MUL-7", IssueTitle: "Title", IssueDuplicate: true},
@@ -136,7 +137,7 @@ func TestReplyCoversCommandAndIssueOutcomes(t *testing.T) {
r.Reply(context.Background(), inst, msg, res)
}
- want := []string{msgFreshPending, msgChatStarted, msgIssueUsage, issueDuplicateText(engine.Result{IssueID: issueID, IssueIdentifier: "MUL-7", IssueTitle: "Title"}), msgIssueNotMember, msgIssueDisabled}
+ want := []string{msgFreshPending, strings.ReplaceAll(engine.HelpTextEnglish, "`", ""), msgChatStarted, msgIssueUsage, issueDuplicateText(engine.Result{IssueID: issueID, IssueIdentifier: "MUL-7", IssueTitle: "Title"}), msgIssueNotMember, msgIssueDisabled}
if len(got) != len(want) {
t.Fatalf("got %d replies, want %d: %+v", len(got), len(want), got)
}
diff --git a/server/internal/integrations/wecom/locale_wiring_test.go b/server/internal/integrations/wecom/locale_wiring_test.go
index ad86be4e5b..891741b5ea 100644
--- a/server/internal/integrations/wecom/locale_wiring_test.go
+++ b/server/internal/integrations/wecom/locale_wiring_test.go
@@ -98,6 +98,7 @@ func TestReplierNoticesReadTheAskersLanguage(t *testing.T) {
res engine.Result
want string
}{
+ {"help", engine.Result{Outcome: engine.OutcomeHelp}, want.Help},
{"offline", engine.Result{Outcome: engine.OutcomeAgentOffline}, want.AgentOffline},
{"archived", engine.Result{Outcome: engine.OutcomeAgentArchived}, want.AgentArchived},
{"invoke denied", engine.Result{Outcome: engine.OutcomeInvokeDenied}, want.InvokeDenied},
diff --git a/server/internal/integrations/wecom/replier.go b/server/internal/integrations/wecom/replier.go
index 9617b81393..4b646426b8 100644
--- a/server/internal/integrations/wecom/replier.go
+++ b/server/internal/integrations/wecom/replier.go
@@ -175,6 +175,11 @@ func (r *OutboundReplier) Reply(ctx context.Context, inst engine.ResolvedInstall
r.logger.WarnContext(ctx, "wecom replier: new-chat confirmation failed",
"installation_id", util.UUIDToString(inst.ID), "error", err)
}
+ case engine.OutcomeHelp:
+ if err := r.post(ctx, inst, msg, c.Help); err != nil {
+ r.logger.WarnContext(ctx, "wecom replier: help reply failed",
+ "installation_id", util.UUIDToString(inst.ID), "error", err)
+ }
case engine.OutcomeIssueUsage:
if err := r.post(ctx, inst, msg, c.IssueUsage); err != nil {
r.logger.WarnContext(ctx, "wecom replier: issue usage reply failed",
diff --git a/server/internal/integrations/wecom/replier_test.go b/server/internal/integrations/wecom/replier_test.go
index 7147ac7794..18c90fb372 100644
--- a/server/internal/integrations/wecom/replier_test.go
+++ b/server/internal/integrations/wecom/replier_test.go
@@ -217,6 +217,7 @@ func TestReply_CommandOutcomes_PostGuidance(t *testing.T) {
want string
}{
{engine.OutcomeFreshPending, copyFor(DefaultLocale).FreshPending},
+ {engine.OutcomeHelp, copyFor(DefaultLocale).Help},
{engine.OutcomeIssueUsage, copyFor(DefaultLocale).IssueUsage},
} {
t.Run(string(tc.outcome), func(t *testing.T) {
diff --git a/server/internal/integrations/wecom/strings.go b/server/internal/integrations/wecom/strings.go
index a9a1f08c7d..3c5ed3a60d 100644
--- a/server/internal/integrations/wecom/strings.go
+++ b/server/internal/integrations/wecom/strings.go
@@ -28,6 +28,8 @@ package wecom
import (
"strings"
"sync/atomic"
+
+ "github.com/multica-ai/multica/server/internal/integrations/channel/engine"
)
// Locale names the language an installation's users are answered in.
@@ -129,11 +131,12 @@ type copyPack struct {
// new conversation the next message enters. Two commands, two answers:
// telling a /clear user their conversation was replaced sends them
// looking for a thread that never moved. IssueUsage answers a bare
- // /issue with the shape it wanted. All three are stated here rather than as
- // package constants — the lint asserts it, and a Chinese literal in
- // replier.go is a line no other locale can read.
+ // /issue with the shape it wanted. Help lists the available commands.
+ // Command replies live here rather than as package constants — the lint
+ // asserts it, and a Chinese literal in replier.go cannot answer other locales.
FreshPending string
ChatStarted string
+ Help string
IssueUsage string
// InvokeDenied answers a member who may not run this agent (a private
@@ -393,6 +396,7 @@ var copyPacks = map[Locale]copyPack{
AgentArchived: "⚠️ 该智能体已归档,无法回复。请联系工作区管理员。",
FreshPending: "✅ 已准备从空上下文运行。你的下一条聊天消息仍会进入当前对话,但不会带上之前的上下文。",
ChatStarted: "✅ 已新建 Multica 对话。你的下一条消息会进入该对话。",
+ Help: engine.HelpTextChinese,
IssueUsage: "请填写任务标题,格式如下:\n\n`/issue <标题>`\n`[描述]`(可选)",
InvokeDenied: "⚠️ 你没有权限运行该智能体。如需使用,请联系它的所有者。",
BindingPromptPrefix: "👋 请先绑定你的 Multica 账号,才能与我对话:\n",
@@ -473,6 +477,7 @@ var copyPacks = map[Locale]copyPack{
AgentArchived: "⚠️ This agent has been archived and can't reply. Please contact your workspace admin.",
FreshPending: "✅ Fresh start ready. Your next message stays in this chat but runs without the earlier context.",
ChatStarted: "✅ Started a new Multica chat. Your next message will enter it.",
+ Help: engine.HelpTextEnglish,
IssueUsage: "Please include an issue title. Use:\n\n`/issue <title>`\n`[description]` (optional)",
InvokeDenied: "⚠️ You don't have permission to run this agent. Ask its owner if you need to use it.",
BindingPromptPrefix: "👋 Link your Multica account before we can talk:\n",
diff --git a/server/internal/integrations/weixin/replier.go b/server/internal/integrations/weixin/replier.go
index 1972570133..d8f8112a0e 100644
--- a/server/internal/integrations/weixin/replier.go
+++ b/server/internal/integrations/weixin/replier.go
@@ -2,6 +2,7 @@ package weixin
import (
"context"
+ "strings"
"github.com/multica-ai/multica/server/internal/integrations/channel"
"github.com/multica-ai/multica/server/internal/integrations/channel/engine"
@@ -27,6 +28,8 @@ func (o *Outbound) Reply(ctx context.Context, inst engine.ResolvedInstallation,
text = "Your next message will start with fresh context."
case engine.OutcomeChatStarted:
text = "Started a new Multica chat. Send your next message here."
+ case engine.OutcomeHelp:
+ text = strings.ReplaceAll(engine.HelpTextEnglish, "`", "")
case engine.OutcomeIssueUsage:
text = "Use /issue <title> followed by an optional description."
case engine.OutcomeIngested:
diff --git a/server/internal/integrations/weixin/replier_test.go b/server/internal/integrations/weixin/replier_test.go
new file mode 100644
index 0000000000..579b8b0545
--- /dev/null
+++ b/server/internal/integrations/weixin/replier_test.go
@@ -0,0 +1,67 @@
+package weixin
+
+import (
+ "context"
+ "encoding/json"
+ "net/http"
+ "net/http/httptest"
+ "strings"
+ "testing"
+
+ "github.com/multica-ai/multica/server/internal/integrations/channel"
+ "github.com/multica-ai/multica/server/internal/integrations/channel/engine"
+ db "github.com/multica-ai/multica/server/pkg/db/generated"
+)
+
+func TestReplyHelpSendsPlainTextToBoundAccount(t *testing.T) {
+ x := newDatabaseFixture(t)
+ inst := x.connect(t)
+ info := DecodePublicConfig(inst.Config)
+ ctx := context.Background()
+ sealed, err := x.svc.box.Seal([]byte("reply-context"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err := x.q.SaveWeixinContext(ctx, db.SaveWeixinContextParams{
+ InstallationID: inst.ID, BotID: info.BotID, UserID: info.UserID,
+ ContextTokenEncrypted: sealed, ContextTimeMs: 123,
+ }); err != nil {
+ t.Fatal(err)
+ }
+
+ replies := make(chan message, 2)
+ server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ if r.URL.Path != "/ilink/bot/sendmessage" {
+ t.Errorf("unexpected provider path %s", r.URL.Path)
+ }
+ var body struct {
+ Msg message `json:"msg"`
+ }
+ if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
+ t.Error(err)
+ }
+ replies <- body.Msg
+ _, _ = w.Write([]byte(`{"ret":0}`))
+ }))
+ defer server.Close()
+
+ o := NewOutbound(x.q, x.svc.box, nil)
+ o.client = providerClient(server)
+ o.Reply(ctx, engine.ResolvedInstallation{ID: inst.ID, Platform: inst}, channel.InboundMessage{
+ Source: channel.Source{ChatID: info.UserID, SenderID: info.UserID},
+ }, engine.Result{Outcome: engine.OutcomeHelp})
+
+ if len(replies) != 1 {
+ t.Fatalf("got %d help replies, want 1", len(replies))
+ }
+ got := <-replies
+ if got.To != info.UserID || got.ContextToken != "reply-context" {
+ t.Fatalf("wrong help destination or reply context: %+v", got)
+ }
+ if len(got.Items) != 1 || got.Items[0].Text == nil {
+ t.Fatalf("expected one text item, got %+v", got.Items)
+ }
+ if want := strings.ReplaceAll(engine.HelpTextEnglish, "`", ""); got.Items[0].Text.Text != want {
+ t.Fatalf("help text = %q, want %q", got.Items[0].Text.Text, want)
+ }
+}