代理可以使用带有Documentation Index
Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
react 操作的 message
工具,在消息上添加和移除表情反应。反应行为因渠道和传输方式而异。
工作原理
- 在添加反应时,
emoji为必需项。 - 将
emoji设为空字符串("")可移除机器人的反应。 - 设置
remove: true可移除指定的表情(需要非空的emoji)。 - 在支持状态反应的渠道上,对反应设置
trackToolCalls: true,可让运行时使用该已反应的消息,在同一轮中为后续工具进度反应提供依据。
渠道行为
Discord 和 Slack
Discord 和 Slack
- 空的
emoji会移除机器人在该消息上的所有反应。 remove: true只会移除指定的表情。
Google Chat
Google Chat
- 空的
emoji会移除应用在该消息上的反应。 remove: true只会移除指定的表情。
Telegram
Telegram
- 空的
emoji会移除机器人的反应。 remove: true也会移除反应,但工具校验仍要求emoji非空。
WhatsApp
- 空的
emoji会移除机器人的反应。 remove: true在内部会映射为空的 emoji(工具调用中仍需要提供emoji)。
Zalo Personal (zalouser)
Zalo Personal (zalouser)
- 需要非空的
emoji。 remove: true会移除该特定表情反应。
Feishu/Lark
Feishu/Lark
- 使用
feishu_reaction工具,动作包括add、remove和list。 - 添加/移除需要
emoji_type;移除还需要reaction_id。
Signal
Signal
- 入站反应通知由
channels.signal.reactionNotifications控制:"off"会禁用它们,"own"(默认)会在用户对机器人的消息做出反应时发出事件,而"all"会为所有反应发出事件。
反应级别
按渠道的reactionLevel 配置控制代理使用反应的范围。其值通常为 off、ack、minimal 或 extensive。
- Telegram reactionLevel —
channels.telegram.reactionLevel - WhatsApp reactionLevel —
channels.whatsapp.reactionLevel
reactionLevel 进行设置,以调整代理在每个平台上对消息做出反应的积极程度。
相关内容
- Agent Send — 包含
react的message工具 - Channels — 按渠道划分的配置