diff --git a/SKILL.md b/SKILL.md index 29ea329..142e97a 100644 --- a/SKILL.md +++ b/SKILL.md @@ -2,7 +2,7 @@ name: lark-send-message-as-bot description: | 以 Bot 身份通过飞书发送消息。支持两种目标: - (1) 给个人用户发私聊消息(基于 user_id) + (1) 给个人用户发私聊消息(基于 user_id)[注意]vala_users_list.md中已经记录了vala全员的user_id,请首先查询这个文档! (2) 给群组发消息(基于 chat_id) 当 agent 需要主动推送消息、通知用户、向群组发送信息时使用。 触发场景:发消息、通知某人、推送到群、Bot 发消息、主动消息。 @@ -35,8 +35,9 @@ TOKEN=$(curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_ token 有效期 2 小时,同一批操作复用即可。 ### 给个人用户发消息 +[注意]首先尝试基于 ./vala_users_list.md 直接获取对应的 user_id。 -使用 `receive_id_type=user_id`,`receive_id` 填租户级员工 ID: +使用 `receive_id_type=user_id`,`receive_id` 填查询到的 user_id: ```bash curl -s -X POST "https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=user_id" \ @@ -79,7 +80,9 @@ curl -s -X POST "https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type ## ID 查询方式 ### 查询 user_id +[注意]首先尝试基于 ./vala_users_list.md 直接获取对应的 user_id。 +其他情况: 通过 Bot 所在群的成员列表获取(指定 `member_id_type=user_id`): ```bash