Install
openclaw skills install enterprise-wechat-bot企业微信自动化工具,支持通过Webhook发送文本和Markdown消息,群消息推送及定时任务管理。
openclaw skills install enterprise-wechat-bot企业微信自动化技能,支持 webhook 消息发送和自动化流程。
npx clawhub@latest install wechat-automation
# 设置企业微信 Webhook Key
clawhub config set wechat.webhook_key YOUR_WEBHOOK_KEY
# 发送文本消息
clawhub wechat send --text "Hello World"
# 发送 Markdown 消息
clawhub wechat send --markdown "**重要通知**\n\n项目进度更新..."
# 发送到指定群
clawhub wechat send --text "消息内容" --chatid "CHAT_ID"
# 定时发送日报
clawhub wechat schedule --cron "0 18 * * *" --text "日报提醒"
发送消息到企业微信群。
参数:
text (string): 消息内容options (object): 可选配置
markdown (boolean): 是否使用 Markdown 格式chatid (string): 目标群聊 IDmentioned_list (array): 需要@的用户列表返回:
{
"errcode": 0,
"errmsg": "ok",
"msgid": "msg_xxxxx"
}
const wechat = require('wechat-automation');
// 发送通知
await wechat.sendMessage({
text: '🎉 项目上线成功!',
markdown: true
});
// 发送日报
await wechat.sendMessage({
text: `
## 日报 2026-03-30
### 完成情况
- ✅ 功能 A
- ✅ 功能 B
### 明日计划
- [ ] 功能 C
`,
markdown: true
});