跳至主要内容
小龙虾小龙虾AI
🤖

feishu-card-sender-beautify 飞书推送展示卡片脚本

发送飞书 Interactive Card 格式消息,用于美化富文本卡片推送和优化通知。 触发条件:(1) 用户要求发送卡片消息 (2) 定时任务推送 (3) 格式化通知需求

下载1.1k
星标2
版本1.0.0
通讯协作
安全通过

技能说明


name: feishu-card-sender-beautify description: | 发送飞书 Interactive Card 格式消息,用于美化富文本卡片推送和优化通知。 触发条件:(1) 用户要求发送卡片消息 (2) 定时任务推送 (3) 格式化通知需求

feishu-card-sender-beautify

发送飞书 Interactive Card 富文本消息。

快速开始

发送卡片到当前聊天

使用 feishu_im_user_message 工具:

feishu_im_user_message(
    action="send",
    msg_type="interactive",
    receive_id="oc_群聊ID",  # 群聊用 oc_xxx
    receive_id_type="chat_id",
    content=json.dumps(card)
)

卡片结构

card = {
    "config": {"wide_screen_mode": True},
    "header": {
        "title": {"tag": "plain_text", "content": "📰 标题"},
        "template": "blue"  # blue/red/green/yellow/wathet/orange/grey
    },
    "elements": [
        {"tag": "div", "text": {"tag": "lark_md", "content": "正文内容"}}
    ]
}

颜色模板

颜色
blue
red
green绿
yellow
wathet浅蓝
orange
grey

详细文档

注意

  • 群聊 ID 格式:oc_xxx
  • 用户 ID 格式:ou_xxx
  • 发送群聊用 receive_id_type="chat_id"
  • 发送私聊用 receive_id_type="open_id"

如何使用「feishu-card-sender-beautify 飞书推送展示卡片脚本」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「feishu-card-sender-beautify 飞书推送展示卡片脚本技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能