# Send feishu-im to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "feishu-im",
    "name": "feishu-im",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/sunnyyao2222-eng/feishu-im",
    "canonicalUrl": "https://clawhub.ai/sunnyyao2222-eng/feishu-im",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/feishu-im",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-im",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "feishu-im",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T23:45:02.581Z",
      "expiresAt": "2026-05-08T23:45:02.581Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-im",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-im",
        "contentDisposition": "attachment; filename=\"feishu-im-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "feishu-im"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/feishu-im"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/feishu-im",
    "downloadUrl": "https://openagent3.xyz/downloads/feishu-im",
    "agentUrl": "https://openagent3.xyz/skills/feishu-im/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-im/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-im/agent.md"
  }
}
```
## Documentation

### 飞书消息与群管理

你是飞书 IM 自动化专家，负责通过 API 实现消息发送、群聊管理和群功能配置。

### 一、API 基础信息

项目值Base URLhttps://open.feishu.cn/open-apis/im/v1认证方式Authorization: Bearer {tenant_access_token}Content-Typeapplication/json

### 1. 发送文本消息

POST /open-apis/im/v1/messages?receive_id_type=open_id

{
  "receive_id": "ou_xxx",
  "msg_type": "text",
  "content": "{\\"text\\":\\"Hello\\"}"
}

实测心法：content 必须是字符串化的 JSON，不能直接传对象。

receive_id_type 可选值：open_id / user_id / union_id / email / chat_id

### 2. 发送交互卡片

POST /open-apis/im/v1/messages?receive_id_type=open_id

{
  "receive_id": "<open_id>",
  "msg_type": "interactive",
  "content": "<card_json_string>"
}

实测心法：

content 必须是字符串化的 JSON（JSON string），不能是原始 JSON 对象。
内部嵌套的双引号需进行转义（如 {\\"config\\":...}）。
如果发送失败，请检查 API 调用参数或直接调用 API。

卡片结构：

{
  "config": { "wide_screen_mode": true },
  "header": {
    "title": { "tag": "plain_text", "content": "卡片标题" },
    "template": "blue"
  },
  "elements": [
    { "tag": "div", "text": { "tag": "lark_md", "content": "**加粗** 和 \`代码\` 支持" } },
    { "tag": "hr" },
    { "tag": "action", "actions": [
      { "tag": "button", "text": { "tag": "plain_text", "content": "确认" }, "type": "primary", "value": { "action": "confirm" } }
    ]}
  ]
}

Header 颜色模板：

template颜色适用场景blue蓝色日常通知、信息green绿色成功、完成red红色告警、失败orange橙色警告、降级purple紫色特殊、创意turquoise青色技术结果grey灰色低优先级

lark_md 语法：**加粗**、*斜体*、~~删除线~~、[链接](url)、<at id=ou_xxx>名字</at>

### 3. 消息置顶

POST /open-apis/im/v1/pins

{ "message_id": "om_xxx" }

实测心法：必须使用 /pins 集合端点，不能使用 messages/:id/pin 路径。

### 4. 消息回应（Reaction）

POST /open-apis/im/v1/messages/:message_id/reactions

{ "reaction_type": { "emoji_type": "OK" } }

实测心法：emoji_type 必须使用大写标准 ID（如 OK、THUMBSUP、HEART）。

### 5. 撤回消息

DELETE /open-apis/im/v1/messages/:message_id

实测心法：仅能撤回机器人自己在有效期内发送的消息。

### 6. 消息加急

PATCH /open-apis/im/v1/messages/:message_id/urgent_app

{ "user_id_list": ["ou_xxx"] }

实测心法：消耗加急额度，请谨慎调用，仅用于 P0 级事件。

### 7. 设置置顶公告

POST /open-apis/im/v1/chats/:chat_id/top_notice

{ "action_type": "message", "message_id": "om_xxx" }

实测心法：置顶条目有限，建议仅置顶核心卡片。

### 8. 批量发送群消息

POST /open-apis/im/v1/messages/batch_send

实测心法：注意限频策略，单次建议控制在 200 个群。

### 9. 发送系统消息

POST /open-apis/im/v1/messages/send_sys

实测心法：视觉干扰度低，适合非业务强提醒（如入群须知）。

### 10. 创建群聊

POST /open-apis/im/v1/chats

{ "name": "群名称", "user_ids": ["ou_xxx"] }

实测心法 (重要)：

建群后机器人自动成为群成员。
可见性保障：虽然建群时可以传 user_ids，但由于飞书缓存或权限延迟，建议紧接着调用 12. 拉人入群 API 显式将用户再次加入，以确保群聊在用户端立即弹出。

### 11. 获取群成员列表

GET /open-apis/im/v1/chats/:chat_id/members

实测心法：分页拉取大群成员时注意 Token 翻页。

### 12. 拉人入群

POST /open-apis/im/v1/chats/:chat_id/members?member_id_type=open_id

{ "id_list": ["ou_xxx"] }

实测心法：被拉取人必须在机器人可见范围内。这是确保群聊对用户可见的最稳健方式。

### 13. 更新群公告

PATCH /open-apis/im/v1/chats/:chat_id/announcement

{ "content": "最新进度..." }

实测心法：内容支持富文本格式。

### 14. 获取群公告

GET /open-apis/im/v1/chats/:chat_id/announcement

实测心法：解析内容后可结合 LLM 生成执行周报。

### 15. 管理群菜单

POST /open-apis/im/v1/chats/:chat_id/menu_tree

实测心法：在群聊右上角添加自定义菜单（如"项目概览"、"一键周报"），极大增强群聊的功能入口属性。

### 16. 管理群选项卡（Tab）

POST /open-apis/im/v1/chats/:chat_id/tabs

实测心法：群内集成多维表格看板、Wiki SOP 为独立 Tab，让群聊变身为"项目工作台"。

### 17. 管理群组件（Widget）

POST /open-apis/im/v1/chats/:chat_id/widgets

实测心法：在群聊右侧挂载动态汇率表、实时监控大屏，将群聊 UI 能力扩展到极限。

### 18. 管理群内协同插件

POST /open-apis/im/v1/chats/:chat_id/collab_plugins

实测心法：在对话框上方常驻"项目文档"入口，减少翻找时间。

### 19. 更新 URL 预览

POST /open-apis/im/v1/url_preview

实测心法：机器人发送的项目链接，自动附带最新的进度摘要，增强信息传达的视觉丰富度。

### 20. 管理应用快捷卡片（Feed Card）

POST /open-apis/im/v1/feed_cards

实测心法：在飞书左侧导航栏推送即时状态，比消息更轻量，适合展示"当前正在运行"的任务。

### 21. 管理标签

POST /open-apis/im/v1/tags

实测心法：为群聊或成员打上业务标签（如"核心项目"、"高优先级"），便于后续分类筛选。

### 22. 数据同步 Feed 流

权限：im:datasync.feed_card.time_sensitive:write

实测心法：将外部 CRM 或代码仓库动态实时推送到飞书 Feed，对时间敏感型信息（如紧急 Bug）效果极佳。

### 23. 设置机器人 P2P 权限

权限：im:chat.access_event.bot_p2p_chat:read

实测心法：确保机器人能主动给特定用户发送私聊，用户需在机器人可见范围内。

### 六、错误处理

错误码含义解决方案0成功—230001无发送权限检查机器人是否在群内或用户可见范围230002消息不存在检查 message_id 是否正确230014频率限制等待后重试，注意限频策略99991663token 过期重新获取 tenant_access_token

### 七、最佳实践

卡片优先：结构化信息用交互卡片，不要用纯文本
加急慎用：消耗额度，仅用于 P0 级事件
批量限频：批量发送控制在 200 个群/次
置顶精简：置顶条目有限，只放核心信息
群功能组合：菜单 + Tab + Widget 组合使用，把群聊变成工作台
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: sunnyyao2222-eng
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T23:45:02.581Z
- Expires at: 2026-05-08T23:45:02.581Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/feishu-im)
- [Send to Agent page](https://openagent3.xyz/skills/feishu-im/agent)
- [JSON manifest](https://openagent3.xyz/skills/feishu-im/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/feishu-im/agent.md)
- [Download page](https://openagent3.xyz/downloads/feishu-im)