← 返回
未分类 Key 中文

Feishu Media Delivery

Reliably deliver generated images and videos to Feishu/Lark users and chats. Use when an agent already has a local image/video result and must send it to Fei...
{ "answer": "将生成的图片和视频可靠地发送给飞书用户和聊天。当智能体已有本地图片/视频结果且必须发送给飞书时使用。" }
zhy2015
未分类 clawhub v0.1.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 515
下载
💾 1
安装
1
版本
#latest

概述

Feishu Media Delivery

Use this skill as the last-mile delivery layer for multimodal agents.

It does not generate content.

It only makes sure already-generated files are sent to Feishu with the correct protocol.

What this skill is for

Use this skill when you already have a generated result and need to deliver it to a Feishu user/chat.

Typical cases:

  • A generated jpg/png must be sent as a real Feishu image message
  • A generated mp4 must be sent as a real Feishu media message
  • A multimodal agent finished generation and now needs reliable delivery
  • You want to avoid protocol mistakes like sending jpg/mp4 as the wrong message type

Hard rules

Images

For images, do not send the local file as plain text or guess a generic attachment format.

Correct flow:

  1. Upload image to Feishu IM resource API
  2. Get image_key
  3. Send message with msg_type=image

Use:

  • scripts/send-image.mjs

Videos

For mp4 videos, do not send them as file messages.

Correct flow:

  1. Upload mp4 to Feishu IM file API
  2. Get file_key
  3. Send message with msg_type=media

Use:

  • scripts/send-media.mjs

Required environment

The scripts expect:

  • FEISHU_APP_ID
  • FEISHU_APP_SECRET_PATH or default secret file at ~/.openclaw/secrets/feishu_app_secret

Default secret path:

  • ~/.openclaw/secrets/feishu_app_secret

Receive ID assumptions

The bundled scripts default to receive_id_type=open_id.

Use them directly when the target is a Feishu user open_id like:

  • ou_xxx

If you need group delivery later, extend the script to accept chat_id and switch receive_id_type.

Commands

Send image to a Feishu user

cd scripts
node send-image.mjs <open_id> /path/to/image.jpg

Example:

cd scripts
node send-image.mjs ou_xxx /tmp/result.jpg

Send mp4 video to a Feishu user

cd scripts
node send-media.mjs <open_id> /path/to/video.mp4 mp4 5000

Arguments:

  • arg1: target open_id
  • arg2: local mp4 path
  • arg3: file type, usually mp4
  • arg4: duration in milliseconds, optional but recommended

Example:

cd scripts
node send-media.mjs ou_xxx /tmp/result.mp4 mp4 5000

Output expectations

A successful send should return Feishu success payloads such as:

  • code: 0
  • msg: success

Do not assume transport success only from local script execution.

Check the returned Feishu response.

Fallback policy

Image fallback

If real Feishu image sending fails, report that image delivery failed.

Do not silently pretend the image was delivered.

Video fallback

If Feishu media sending fails, fallback to sending a direct link if one exists.

State clearly that this is a fallback.

Recommended agent usage

For a multimodal content agent, use this skill after generation:

  • image result -> send-image.mjs
  • mp4 result -> send-media.mjs

This keeps protocol details out of the model prompt and reduces failure risk for weaker models.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-30 19:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,374 📥 319,831
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,424
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,073 📥 805,974