You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/wecom/README.en.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -558,6 +558,49 @@ JSON does not allow comments. Keys are ordered by role: **welcome & stream proto
558
558
}
559
559
```
560
560
561
+
### Per-Key Command Setup
562
+
563
+
Use `channels.wecom.<key>` for global default copy. In multi-account setups, replace the prefix with `channels.wecom.accounts.<accountId>.<key>` for account-level overrides, for example `channels.wecom.accounts.cs-assistant.thinkingText`. The Agent app currently supports a separate welcome override only: `channels.wecom.agent.welcomeText`; other runtime text templates still use the global or account-level flat `*Text` fields.
564
+
565
+
The sample values below use the Chinese copy from the JSON example; replace them with localized copy as needed. Keep placeholders such as `{toolName}`, `{elapsed}`, `{minutes}`, `{kind}`, `{detail}`, `{mediaUrl}`, `{reason}`, and `{emptyReply}` unchanged because runtime code replaces them.
566
+
567
+
```bash
568
+
openclaw config set channels.wecom.welcomeText "您好!我是智能助手,发送消息即可开始对话。"
569
+
openclaw config set channels.wecom.streamPlaceholderText "1"
570
+
openclaw config set channels.wecom.thinkingText "🤔 正在思考…"
571
+
openclaw config set channels.wecom.receivedText "📩 已收到…"
572
+
openclaw config set channels.wecom.toolStatusText "正在调用 {toolName}…"
573
+
openclaw config set channels.wecom.readingText "📎 正在阅读附件…"
574
+
openclaw config set channels.wecom.generatingText "✍️ 正在输入…"
575
+
openclaw config set channels.wecom.compactionText "📦 正在压缩…"
576
+
openclaw config set channels.wecom.emptyReplyText "⚠️ 未能生成可展示的回复,请稍后重试或发送文字消息。"
577
+
openclaw config set channels.wecom.finishFooterText "⏱ {elapsed}s · 已完成"
578
+
openclaw config set channels.wecom.cardSentText "📋 卡片消息已发送。"
579
+
openclaw config set channels.wecom.mediaSentText "📎 文件已发送,请查收。"
580
+
openclaw config set channels.wecom.mediaParseFailedText "⚠️ 未能解析该媒体并生成回复。{emptyReply}"
581
+
openclaw config set channels.wecom.mediaDeliveredText "✅ 文件已发送。"
582
+
openclaw config set channels.wecom.processedCompleteText "✅ 已处理完成。"
583
+
openclaw config set channels.wecom.timeoutText "⚠️ 处理超时(约 {minutes} 分钟),请稍后重试或发送文字消息。"
584
+
openclaw config set channels.wecom.dispatchErrorText "⚠️ 回复生成失败({kind}):{detail}"
openclaw config set channels.wecom.mediaErrorReasonText "⚠️ 文件发送失败:{reason}"
587
+
openclaw config set channels.wecom.mediaErrorGenericText "⚠️ 文件发送失败:无法处理文件 {mediaUrl},请稍后再试。"
588
+
openclaw config set channels.wecom.queuedText "⏳ 排队中…"
589
+
openclaw config set channels.wecom.mergedQueuedText "⏳ 已合并排队…"
590
+
openclaw config set channels.wecom.mergedDoneText "✅ 已合并处理完成,请查看上一条回复。"
591
+
openclaw config set channels.wecom.sessionResetText "✅ 已重置会话。"
592
+
openclaw config set channels.wecom.sessionNewText "✅ 已开启新会话。"
593
+
openclaw gateway restart
594
+
```
595
+
596
+
`mediaErrorNoAccessText` contains a newline. zsh/bash users should use ANSI-C quoting as shown above (`$'...\n...'`). If your shell does not support it, write the value through JSON/file-based config instead so `\n` is stored as an actual newline.
597
+
598
+
For an Agent app welcome message, set the dedicated override:
599
+
600
+
```bash
601
+
openclaw config set channels.wecom.agent.welcomeText "欢迎使用自建应用,我会尽快回复您。"
602
+
```
603
+
561
604
## Streaming Output
562
605
563
606
Only **Bot WebSocket** and **Bot Webhook** support WeCom `stream` / `replyStream`. **Agent inbound chat does not use Bot-style streaming**; outbound delivery is primarily one-shot Markdown / media via the Agent API.
0 commit comments