这个技能解决的是:用户在 Webchat 聊天时,偶尔想切换到手机微信上查看对话内容。
text
用户说"把这个发微信"
↓
Agent 将当前消息整理后
↓
wxclawbot CLI 发送到用户微信
↓
用户手机微信收到消息
用户明确说出或写道:
触发词示例发微信"把这个发微信"发到微信"把这段发到微信"forward to wechat"forward this to wechat"发消息"给我微信发个消息"
场景理由定时任务未授权,不主动推每日自动总结同左告警通知除非用户设置过内容生成(没提微信)只有明确说"微信"才触发
将当前消息整理后发送:
bash
wxclawbot send --text "消息内容" --json
如需同时发送文件:
bash
wxclawbot send --file /path/to/file --text "说明" --json
成功时: {"ok":true,"to":"user@im.wechat","clientId":"..."}
失败时:检查 errorKind(timeout/connection/dns/tls)和 retryable 字段
ret=-2 时等 60-120 秒重试当用户说"把这个发微信"时:
原则:让用户手机上一眼能看懂,不啰嗦、不丢重点。
已安装 wxclawbot CLI 并登录微信账号(openclaw-weixin 已配置即可)。
验证方法:
bash
wxclawbot accounts --json
现象原因处理ok:false, ret=-2频率限制等 60-120 秒重试ok:false, ret=-14会话过期重新登录微信No account found凭证缺失检查 accounts 目录ok:true 但用户没收到Context token 过期用户给机器人发条消息刷新