Install
openclaw skills install schedule-sync-claw飞书日历智能协作 Skill。核心能力:(1) 智能约会——查询多人空闲时间、自动创建会议并发送邀请,(2) 日程同步——监听/查询日历变更并同步,(3) 会议背景预置——会前自动拉取相关飞书文档和会议纪要。激活场景:用户提到安排会议、约人开会、查空闲时间、日程协调、会议邀请、预置背景资料、会前准备、查日历、创建日程、发日历邀请等。也适用于自然语言如帮我约张三开会、查一下这周谁有空、下午3点有个会帮我准备资料等请求。通用 Skill,任何 agent 均可调用。依赖飞书日历 v4 API 和飞书文档 API。
openclaw skills install schedule-sync-claw检查环境是否安装了 openclaw-lark 插件。该插件提供以下原生工具:
| 工具名 | 核心能力 |
|---|---|
feishu_calendar_event | 创建/查询/修改/删除日程、搜索日程、回复邀请 |
feishu_calendar_freebusy | 查询 1-10 个用户的空闲忙状态 |
feishu_calendar_event_attendee | 添加参会人、查看参会人列表 |
feishu_calendar_calendar | 查询/管理日历列表 |
判断条件:当前环境中可用 feishu_calendar_event 工具时,直接使用插件工具完成所有日历操作,跳过优先级 2。
⚠️ 插件工具使用用户身份(user_access_token),需用户完成 OAuth 授权。如授权未完成,工具会自动引导用户授权。
插件工具使用要点(详见 feishu-calendar SKILL):
2026-03-27T14:00:00+08:00user_open_id 必填:值取消息上下文的 SenderId(ou_xxx),确保发起人出现在参会人列表open_id(ou_xxx 格式)attendees(无需分两步)list 操作自动展开重复日程,时间区间不超过 40 天当飞书插件未安装或不可用时,退化为使用 API 脚本。
前置要求:
FEISHU_APP_ID、FEISHU_APP_SECRETcalendar:calendar 权限⚠️ API 脚本方式使用
tenant_access_token(应用身份),只能操作应用日历,无法查询用户 freebusy 或读取用户个人日历。
触发:用户要创建会议、安排日程、约人开会
步骤:
feishu_search_user 查找feishu_calendar_event with action=create关键注意(仅脚本方式):
visibility 必须是字符串 "default",不能是数字 0timestamp 必须是秒级时间戳字符串(如 "1774596600")attendees,必须先创建再单独添加触发:用户要找时间开会、查某人有空没
步骤:
feishu_calendar_freebusy(支持 1-10 人批量查询)⚠️ 查询用户空闲忙状态必须使用用户身份(插件方式)。脚本方式(tenant_access_token)无法查询用户 freebusy。
触发:用户查日历 / "今天有什么会" / "这周安排"
步骤:
feishu_calendar_event with action=list(自动展开重复日程)scripts/feishu-calendar.sh list 或直接 curl触发:用户要改时间、取消会议、更新会议信息
步骤:
feishu_calendar_event with action=patch/delete触发:用户要接受/拒绝/暂定某个会议邀请
步骤:
feishu_calendar_event with action=reply,传 rsvp_status(accept/decline/tentative)⚠️ 回复邀请仅插件方式支持(需要用户身份)。
触发:会议即将开始 / 用户要求准备会议资料 / "帮我看看XX会议的相关文档"
步骤:
Asia/Shanghai (UTC+8),展示用北京时间("下午3点"),不展示 UTC| 用户意图 | 工具 | action | 必填参数 | 强烈建议 |
|---|---|---|---|---|
| 创建会议 | feishu_calendar_event | create | summary, start_time, end_time | user_open_id, attendees |
| 查日程 | feishu_calendar_event | list | start_time, end_time | - |
| 改日程 | feishu_calendar_event | patch | event_id | start_time/end_time |
| 搜日程 | feishu_calendar_event | search | query | - |
| 回复邀请 | feishu_calendar_event | reply | event_id, rsvp_status | - |
| 删日程 | feishu_calendar_event | delete | event_id | - |
| 查空闲 | feishu_calendar_freebusy | list | time_min, time_max, user_ids[] | - |
| 邀请参会人 | feishu_calendar_event_attendee | create | calendar_id, event_id, attendees[] | - |
| 查日历列表 | feishu_calendar_calendar | list | - | - |
| 操作 | 方法 | 端点 | 说明 |
|---|---|---|---|
| 获取 tenant token | POST | /auth/v3/tenant_access_token/internal | 应用身份认证 |
| 获取主日历 | GET | /calendar/v4/calendars/primary | tenant 下返回应用日历 |
| 创建日程 | POST | /calendar/v4/calendars/{cal_id}/events | 不含 attendees |
| 添加参会人 | POST | /calendar/v4/calendars/{cal_id}/events/{evt_id}/attendees | 创建后单独调用 |
| 查询日程 | GET | /calendar/v4/calendars/{cal_id}/events?start_time=&end_time= | 秒级时间戳 query 参数 |
| 更新日程 | PATCH | /calendar/v4/calendars/{cal_id}/events/{evt_id} | |
| 删除日程 | DELETE | /calendar/v4/calendars/{cal_id}/events/{evt_id} |
Base URL: https://open.feishu.cn/open-apis
详细 API 参考见 references/feishu-calendar-api.md