Install
openclaw skills install wecom-meeting企业微信会议管理工具。用于创建、查询、取消和管理企业微信预约会议。支持创建预约会议、获取会议详情、取消会议、获取成员会议列表等操作。使用企业微信会议API需要配置CorpID、Secret和AgentID。当用户需要创建企业微信会议、查询会议信息、取消会议或管理会议时使用此Skill。
openclaw skills install wecom-meeting此Skill提供企业微信预约会议的管理功能,基于企业微信官方API(文档:https://developer.work.weixin.qq.com/document/path/99104)。
使用此Skill需要企业微信API凭证:
pip3 install requests
将企业微信凭证保存在 ~/.wecom/config.json 中:
{
"corpid": "wwxxxxxxxxxxxxxxxx",
"secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"agentid": "1000002"
}
关键点:企业微信会议API使用特定的参数格式,必须严格按照官方文档格式。
{
"admin_userid": "发起人UserID",
"title": "会议主题",
"meeting_start": 开始时间戳(秒),
"meeting_duration": 会议时长(秒),
"description": "会议描述(可选)",
"invitees": {
"userid": ["参会人UserID1", "参会人UserID2"]
},
"reminders": {
"is_repeat": 0, # 0=非周期性会议
"remind_before": [120] # 提前2分钟(单位:秒)
}
}
meeting_start:Unix时间戳(秒),必须大于当前时间meeting_duration:会议时长(秒),最小300秒(5分钟),最大86399秒(约24小时)remind_before:会议提醒时间,支持:0(会议开始时)、300(5分钟前)、900(15分钟前)、3600(1小时前)、86400(1天前)invitees.userid:参会人的企业微信UserID(注意:不是中文姓名)cd ~/.openclaw/workspace/skills/wecom-meeting
python3 scripts/create_meeting.py \
--userid "WanHuiYi" \
--title "openclaw应用" \
--time "17:40" \
--duration 60 \
--attendees "WanHuiYi,WanLang"
--userid:发起人UserID(必填)--title:会议主题(必填)--time:开始时间,格式:HH:MM(必填)--duration:会议时长(分钟),默认60(可选)--attendees:参会人列表,逗号分隔(可选)--date:日期,格式:YYYY-MM-DD,默认今天(可选)--description:会议描述(可选)--remind:提前提醒(分钟),默认2(可选)cd ~/.openclaw/workspace/skills/wecom-meeting
python3 scripts/cancel_meeting.py \
--userid "WanHuiYi" \
--meetingid "hyBsrsUwAAZ6jYVW5GX73PHdS927OrCA"
--userid:发起人UserID(必填)--meetingid:会议ID(必填)cd ~/.openclaw/workspace/skills/wecom-meeting
python3 scripts/get_meeting.py \
--meetingid "hyBsrsUwAAZ6jYVW5GX73PHdS927OrCA"
cd ~/.openclaw/workspace/skills/wecom-meeting
python3 scripts/list_meetings.py \
--userid "WanHuiYi"
title 或 meeting_start原因:参数格式错误,使用了不兼容的API版本
解决方案:使用正确的参数格式
title 而不是 meetingnamemeeting_start 而不是 starttimeadmin_userid 而不是 userid原因:UserID不存在或格式错误
解决方案:
WanHuiYi),而不是中文姓名原因:会议开始时间无效(已过去或时间戳格式错误)
解决方案:
原因:应用没有创建会议的权限
解决方案:
详细的API文档请查看:
或查看本skill的 references/api.md 文件。
python3 scripts/create_meeting.py \
--userid "WanHuiYi" \
--title "项目讨论会" \
--time "14:00" \
--duration 30
python3 scripts/create_meeting.py \
--userid "WanHuiYi" \
--title "周会" \
--time "09:30" \
--duration 60 \
--attendees "WanHuiYi,WanLang,ZhangSan"
python3 scripts/create_meeting.py \
--userid "WanHuiYi" \
--title "重要会议" \
--time "15:00" \
--duration 90 \
--remind 15
python3 scripts/cancel_meeting.py \
--userid "WanHuiYi" \
--meetingid "hyBsrsUwAAZ6jYVW5GX73PHdS927OrCA"
python3 scripts/list_meetings.py --userid "WanHuiYi"
如果需要更灵活的控制,可以直接在Python代码中使用 WeComMeeting 类:
import sys
sys.path.append('~/.openclaw/workspace/skills/wecom-meeting/scripts')
from wecom_meeting_api import WeComMeeting
# 初始化
meeting = WeComMeeting()
# 创建会议
result = meeting.create_meeting(
admin_userid="WanHuiYi",
title="openclaw应用",
meeting_start=1772790000, # Unix时间戳
meeting_duration=3600, # 60分钟
invitees={"userid": ["WanHuiYi", "WanLang"]},
reminders={"is_repeat": 0, "remind_before": [120]}
)
print(f"会议ID: {result['meetingid']}")
详细API参考见 scripts/wecom_meeting_api.py。