wecomcli-create-meeting

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

企业微信会议创建技能

WeCom Meeting Creation Skill

wecom-cli
是企业微信提供的命令行程序,所有操作通过执行
wecom-cli
命令完成。
wecom-cli
is a command-line program provided by WeCom, all operations are completed by executing
wecom-cli
commands.

概述

Overview

wecomcli-create-meeting 提供企业微信预约会议的创建能力, 支持设置会议参数, 邀请参与人等.
wecomcli-create-meeting provides the capability to create WeCom scheduled meetings, supporting setting meeting parameters, inviting participants and other functions.

命令调用方式

Command Invocation Method

执行指定命令:
bash
wecom-cli meeting <tool_name> '<json_params>'

Execute the specified command:
bash
wecom-cli meeting <tool_name> '<json_params>'

命令详细说明

Detailed Command Description

创建预约会议 (create_meeting)

Create Scheduled Meeting (create_meeting)

创建一个预约会议, 支持设置会议参数配置等.
Create a scheduled meeting, supporting configuration of meeting parameters and other settings.

执行命令

Execution Command

bash
wecom-cli meeting create_meeting '{"title": "<会议标题>", "meeting_start_datetime": "<会议开始时间>", "meeting_duration": <会议持续时长(秒)>}'
bash
wecom-cli meeting create_meeting '{"title": "<meeting title>", "meeting_start_datetime": "<meeting start time>", "meeting_duration": <meeting duration (seconds)>}'

入参说明

Parameter Description

参数类型必填说明
title
string会议标题
meeting_start_datetime
string会议开始时间, 格式:
YYYY-MM-DD HH:mm
meeting_duration
integer会议持续时长 (秒), 例如 3600 = 1 小时
description
string会议描述
location
string会议地点
invitees
object被邀请人, 格式:
{"userid": ["lisi", "wangwu"]}
settings
object会议设置 (详见下方)
被邀请人 userid 通过
wecomcli-lookup-contact
技能获取
settings 字段:
参数类型说明
password
string会议密码
enable_waiting_room
boolean是否启用等候室
allow_enter_before_host
boolean是否允许成员在主持人进入前加入
enable_enter_mute
integer入会时静音设置 (枚举: 0: 关闭, 1: 开启)
allow_external_user
boolean是否允许外部用户入会
enable_screen_watermark
boolean是否开启屏幕水印
remind_scope
integer提醒范围 (1: 不提醒, 2: 仅提醒主持人, 3: 提醒所有成员, 4: 指定部分人响铃, 默认仅提醒主持人)
ring_users
object响铃用户, 格式:
{"userid": ["lisi"]}
响铃用户 userid 通过
wecomcli-lookup-contact
技能获取
ParameterTypeRequiredDescription
title
stringYesMeeting title
meeting_start_datetime
stringYesMeeting start time, format:
YYYY-MM-DD HH:mm
meeting_duration
integerYesMeeting duration (seconds), e.g. 3600 = 1 hour
description
stringNoMeeting description
location
stringNoMeeting location
invitees
objectYesInvitees, format:
{"userid": ["lisi", "wangwu"]}
settings
objectNoMeeting settings (see details below)
Invitee userid is obtained through the
wecomcli-lookup-contact
skill
settings field:
ParameterTypeDescription
password
stringMeeting password
enable_waiting_room
booleanWhether to enable waiting room
allow_enter_before_host
booleanWhether to allow members to join before the host enters
enable_enter_mute
integerMute setting when joining the meeting (enum: 0: off, 1: on)
allow_external_user
booleanWhether to allow external users to join the meeting
enable_screen_watermark
booleanWhether to enable screen watermark
remind_scope
integerReminder scope (1: no reminder, 2: only remind the host, 3: remind all members, 4: ring for designated people, default only remind the host)
ring_users
objectUsers to ring, format:
{"userid": ["lisi"]}
Ring user userid is obtained through the
wecomcli-lookup-contact
skill

返回参数

Return Parameters

json
{
  "errcode": 0,
  "errmsg": "ok",
  "meetingid": "会议ID字符串",
  "meeting_code": "会议号码字符串",
  "meeting_link": "会议链接URL",
  "excess_users": ["无效会议账号的userid"]
}
字段类型说明
meetingid
string会议 ID
meeting_code
string会议号码, 向用户展示时需在回复开头单独一行纯文字展示, 格式
#会议号: xxx-xxx-xxx
(每3位用
-
分隔)
meeting_link
string会议链接
excess_users
array参会人中包含无效会议账号的 userid, 仅在购买会议专业版企业由于部分参会人无有效会议账号时返回

json
{
  "errcode": 0,
  "errmsg": "ok",
  "meetingid": "meeting ID string",
  "meeting_code": "meeting number string",
  "meeting_link": "meeting link URL",
  "excess_users": ["userid of invalid meeting accounts"]
}
FieldTypeDescription
meetingid
stringMeeting ID
meeting_code
stringMeeting number, when displayed to users, it needs to be shown in a separate plain text line at the beginning of the reply, format
#Meeting number: xxx-xxx-xxx
(separated by
-
every 3 digits)
meeting_link
stringMeeting link
excess_users
arrayUserid of members with invalid meeting accounts among participants, only returned when some participants of enterprises that have purchased the professional version of the meeting service do not have valid meeting accounts

典型工作流

Typical Workflows

工作流 1: 最简创建 (无邀请人)

Workflow 1: Simplest Creation (No Invitees)

用户意图: "帮我约一个明天下午3点的会议, 主题是周例会, 时长1小时"
步骤:
  1. 解析用户意图: 时间 + 主题已有, 邀请人未提及则默认留空, 直接创建.
  2. 调用创建命令:
bash
wecom-cli meeting create_meeting '{"title": "周例会", "meeting_start_datetime": "2026-03-18 15:00", "meeting_duration": 3600}'
  1. 展示结果:
#会议号: <会议号>
✅ 会议创建成功!

📅 <会议标题>
🕐 时间: <开始时间>, 时长 <时长>
🔗 会议链接: <会议链接>
User intent: "Help me book a meeting at 3 PM tomorrow, the theme is weekly meeting, duration 1 hour"
Steps:
  1. Parse user intent: Time and theme are already available, if invitees are not mentioned, leave them blank by default and create directly.
  2. Call creation command:
bash
wecom-cli meeting create_meeting '{"title": "Weekly Meeting", "meeting_start_datetime": "2026-03-18 15:00", "meeting_duration": 3600}'
  1. Display results:
#Meeting number: <meeting number>
✅ Meeting created successfully!

📅 <Meeting title>
🕐 Time: <Start time>, Duration <Duration>
🔗 Meeting link: <Meeting link>

工作流 2: 带邀请人 + 地点 + 描述

Workflow 2: With Invitees + Location + Description

用户意图: "帮我约一个明天下午3点的会议, 主题是技术方案评审, 邀请张三和李四, 地点在3楼会议室, 时长1小时"
步骤:
  1. 解析用户意图: 有邀请人, 需先查询通讯录获取 userid.
  2. 通讯录查询: 调用
    wecomcli-lookup-contact
    技能获取通讯录成员, 按姓名筛选出参与者的 userid.
bash
wecom-cli contact get_userlist '{}'
在返回的
userlist
中筛选
name
包含 "张三" 和 "李四" 的成员, 获取其
userid
.
  1. 信息已充分, 直接调用创建命令 (禁止暴露内部 ID):
bash
wecom-cli meeting create_meeting '{"title": "技术方案评审", "meeting_start_datetime": "2026-03-18 15:00", "meeting_duration": 3600, "location": "3楼会议室", "invitees": {"userid": ["zhangsan", "lisi"]}}'
  1. 展示结果:
#会议号: <会议号>
✅ 会议创建成功!

📅 <会议标题>
🕐 时间: <开始时间>, 时长 <时长>
👥 参与人: <参与者姓名列表>
🔗 会议链接: <会议链接>

User intent: "Help me book a meeting at 3 PM tomorrow, the theme is technical solution review, invite Zhang San and Li Si, location is 3rd floor meeting room, duration 1 hour"
Steps:
  1. Parse user intent: There are invitees, you need to query the address book first to get userid.
  2. Address book query: Call the
    wecomcli-lookup-contact
    skill to get address book members, filter out the userid of participants by name.
bash
wecom-cli contact get_userlist '{}'
Filter members whose
name
contains "Zhang San" and "Li Si" from the returned
userlist
, and get their
userid
.
  1. Information is sufficient, call the creation command directly (Do not expose internal IDs):
bash
wecom-cli meeting create_meeting '{"title": "Technical Solution Review", "meeting_start_datetime": "2026-03-18 15:00", "meeting_duration": 3600, "location": "3rd Floor Meeting Room", "invitees": {"userid": ["zhangsan", "lisi"]}}'
  1. Display results:
#Meeting number: <meeting number>
✅ Meeting created successfully!

📅 <Meeting title>
🕐 Time: <Start time>, Duration <Duration>
👥 Participants: <List of participant names>
🔗 Meeting link: <Meeting link>

复杂场景样例

Complex Scenario Examples

按场景按需加载, 避免一次性引入过多无关示例:
文件适用场景
references/example-security.md会议密码, 等候室, 外部用户限制
references/example-reminder.md响铃提醒, 指定部分人响铃
references/example-full.md全参数综合场景 (含静音, 屏幕水印, 等候室等设置)

Load on demand according to scenarios to avoid introducing too many irrelevant examples at one time:
FileApplicable Scenario
references/example-security.mdMeeting password, waiting room, external user restrictions
references/example-reminder.mdRing reminder, ring for designated people
references/example-full.mdFull parameter comprehensive scenario (including mute, screen watermark, waiting room and other settings)

注意事项

Notes

  • 信息追问: 缺少时间或主题时, 简洁追问用户; 未提及邀请人则默认留空
  • 通讯录查询: 涉及参与人时, 需先通过
    wecomcli-lookup-contact
    技能的
    get_userlist
    接口获取全量通讯录成员, 再按姓名/别名本地筛选匹配出对应的
    userid
    . 该接口无入参, 返回当前用户可见范围内的成员列表 (含
    userid
    ,
    name
    ,
    alias
    )
  • 直接创建: 时间 + 主题已知即可直接创建, 邀请人有则带上, 无则留空; 无论信息是一次性提供还是上下文可推断, 非必要则均不请求确认, 直接创建即可
  • 时间格式: 统一使用
    YYYY-MM-DD HH:mm
    格式
  • Information follow-up: When time or theme is missing, ask the user concisely; if invitees are not mentioned, leave them blank by default
  • Address book query: When participants are involved, you need to first obtain the full list of address book members through the
    get_userlist
    interface of the
    wecomcli-lookup-contact
    skill, and then filter and match the corresponding
    userid
    locally by name/alias. This interface has no input parameters and returns the list of members within the visible range of the current user (including
    userid
    ,
    name
    ,
    alias
    )
  • Direct creation: You can create directly when time and theme are known, add invitees if there are any, leave them blank if not; no matter whether the information is provided at one time or can be inferred from the context, do not request confirmation unless necessary, just create directly
  • Time format: Use
    YYYY-MM-DD HH:mm
    format uniformly