Feishu Webhook Skill logo

Feishu Webhook Skill

Community
viktorxhzj
feishu-webhook-skill

Must Use this skill to send Feishu(飞书/Lark) webhook msgs.

Overview

Publisherviktorxhzj
Repositoryfeishu-webhook-skill
Skill namefeishu-webhook-skill
Stars
30
Forks
1
Bundled files
7
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by viktorxhzj on GitHub. Read the source before you install it.

Installation

Install the Feishu Webhook Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/viktorxhzj/feishu-webhook-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/viktorxhzj/feishu-webhook-skill.git \
  .claude/skills/feishu-webhook-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Feishu Webhook Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Feishu Webhook Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Feishu Webhook Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

以下是向飞书发送Webhook发送消息的专业技能。

注意事项

  • 本文提供的示例代码中所有的 receive_id(消息接收者 ID)、user_id(用户的 user_id)、image_key(上传图片后获取到的图片标识 key)、file_key(上传文件后获取到的文件标识 Key) 等参数值均为示例数据。你在实际开发过程中,需要替换为真实可用的数据。

  • 如果需要发送的内容涉及图片,必须阅读 webhook-image.md 文档来了解发送图片的要求。

消息内容介绍

在 发送消息、回复消息、编辑消息 接口中,均需要传入消息内容(content),不同的消息类型对应的 content 也不相同。以文本类型的消息为例,请求体示例如下:

json
{
    "receive_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs",
    "content": "{\"text\":\" test content\"}",
    "msg_type": "text"
}

注意:content 字段为 string 类型,JSON 结构需要先进行转义再传值。在调用接口时,你可以先构造一个结构体,然后使用 JSON 序列化转换为 string 类型,或者通过第三方的 JSON 转换工具进行转义。

各类型的消息内容 JSON 结构

富文本 post

在一条富文本消息中,支持添加文字、图片、视频、@、超链接等元素。如下 JSON 格式的内容是一个富文本示例,其中:

  • 一个富文本可分多个段落(由多个 [] 组成),每个段落可由多个元素组成,每个元素由 tag 和相应的描述组成。
  • 图片、视频元素必须是独立的一个段落。
  • 实际发送消息时,需要将 JSON 格式的内容压缩为一行、并进行转义。
  • 如需参考该 JSON 示例构建富文本消息内容,则需要把其中的 user_id、image_key、file_key 等示例值替换为真实值。
json
{
	"zh_cn": {
		"title": "我是一个标题",
		"content": [
			[
				{
					"tag": "text",
					"text": "第一行:",
					"style": ["bold", "underline"]

},
				{
					"tag": "a",
					"href": "http://www.feishu.cn",
					"text": "超链接",
					"style": ["bold", "italic"]
				},
				{
					"tag": "at",
					"user_id": "ou_1avnmsbv3k45jnk34j5",
					"style": ["lineThrough"]
				}
			],
          	[{
				"tag": "img",
				"image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"
			}],
			[	
				{
					"tag": "text",
					"text": "第二行:",
					"style": ["bold", "underline"]
				},
				{
					"tag": "text",
					"text": "文本测试"
				}
			],
          	[{
				"tag": "img",
				"image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"
			}],
          	[{
				"tag": "media",
				"file_key": "file_v2_0dcdd7d9-fib0-4432-a519-41d25aca542j",
				"image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"
			}],
          	[{
				"tag": "emotion",
				"emoji_type": "SMILE"
			}],
			[{
				"tag": "hr"
			}],
			[{
				"tag": "code_block",
				"language": "GO",
				"text": "func main() int64 {\n    return 0\n}"
			}],
			[{
				"tag": "md",
				"text": "**mention user:**<at user_id=\"ou_xxxxxx\">Tom</at>\n**href:**[Open Platform](https://open.feishu.cn)\n**code block:**\n```GO\nfunc main() int64 {\n    return 0\n}\n```\n**text styles:** **bold**, *italic*, ***bold and italic***, ~underline~,~~lineThrough~~\n> quote content\n\n1. item1\n    1. item1.1\n    2. item2.2\n2. item2\n --- \n- item1\n    - item1.1\n    - item2.2\n- item2"
			}]
		]
	},
	"en_us": {
		...
	}
}

参数说明

名称类型是否必填描述
zh_cn, en_usobject是多语言配置字段。如果不需要配置多语言,则仅配置一种语言即可。- zh_cn 为富文本的中文内容- en_us 为富文本的英文内容注意:该字段无默认值,至少要设置一种语言。示例值:zh_cn
∟ titlestring否富文本消息的标题。默认值:空示例值:title
∟ contentstring是富文本消息内容。由多个段落组成(段落由[]分隔),每个段落为一个 node 列表,所支持的 node 标签类型以及对应的参数说明,参见下文的 富文本支持的标签和参数说明 章节。注意:如 示例值 所示,各类型通过 tag 参数设置。例如文本(text)设置为 "tag": "text"。示例值:[[{"tag": "text","text": "text content"}]]
富文本支持的标签和参数说明
  • text:文本标签
名称类型是否必填描述
textstring是文本内容。示例值:test content
un_escapeboolean否是否 unescape 解码。默认为 false,无需使用可不传值。示例值:false
style[]string否文本内容样式,支持的样式有:- bold:加粗- underline:下划线- lineThrough:删除线- italic:斜体注意:- 默认值为空,表示无样式。- 传入的值如果不是以上可选值,则被忽略。示例值:["bold", "underline"]
  • a:超链接标签
名称类型是否必填描述
textstring是超链接的文本内容。示例值:超链接
hrefstring是超链接地址。注意:请确保链接地址的合法性,否则消息会发送失败。示例值:https://open.feishu.cn
style[]string否超链接文本内容样式,支持的样式有:- bold:加粗- underline:下划线- lineThrough:删除线- italic:斜体注意:- 默认值为空,表示无样式。- 传入的值如果不是以上可选值,则被忽略。示例值:["bold", "italic"]
  • at:@标签
名称类型是否必填描述
user_idstring是用户 ID,用来指定被 @ 的用户。传入的值可以是用户的 user_id、open_id、union_id。各类 ID 获取方式参见如何获取 User ID、Open ID 和 Union ID。注意:- @ 单个用户时,该字段必须传入实际用户的真实 ID。- 如需 @ 所有人,则该参数需要传入 all。
style[]string否at 文本内容样式,支持的样式有:- bold:加粗- underline:下划线- lineThrough:删除线- italic:斜体注意:- 默认值为空,表示无样式。- 传入的值如果不是以上可选值,则被忽略。示例值:["lineThrough"]
  • img:图片标签
名称类型是否必填描述
image_keystring是图片 Key。通过上传图片接口可以获取到图片 Key(image_key)。示例值:d640eeea-4d2f-4cb3-88d8-c964fab53987
  • media:视频标签
名称类型是否必填描述
file_keystring是视频文件的 Key。通过上传文件接口上传视频(mp4 格式)后,可以获取到视频文件 Key(file_key)。示例值:file_v2_0dcdd7d9-fib0-4432-a519-41d25aca542j
image_keystring否视频封面图片的 Key。通过上传图片接口可以获取到图片 Key(image_key)。默认值:空,表示无视频封面。示例值:img_7ea74629-9191-4176-998c-2e603c9c5e8g
  • emotion:表情标签
名称类型是否必填描述
emoji_typestring是表情文案类型。可选值参见表情文案说明。示例值:SMILE
  • code_block:代码块标签
名称类型是否必填描述
languagestring否代码块的语言类型。可选值有 PYTHON、C、CPP、GO、JAVA、KOTLIN、SWIFT、PHP、RUBY、RUST、JAVASCRIPT、TYPESCRIPT、BASH、SHELL、SQL、JSON、XML、YAML、HTML、THRIFT 等。注意:- 取值不区分大小写。- 不传值则默认为文本类型。示例值:GO
textstring是代码块内容。示例值:func main() int64 {\n return 0\n}
  • hr:分割线标签

富文本支持 tag 取值为 hr,表示一条分割线,该标签内无其他参数。

  • md:Markdown 标签warning 注意:
  • md 标签会独占一个或多个段落,不能与其他标签在同一行。
  • md 标签仅支持发送,获取消息内容时将不再包含此标签,会根据 md 中的内容转换为其他相匹配的标签。
  • 引用、有序、无序列表在获取消息内容时,会简化为文本标签(text)进行输出。

md 标签内通过 text 参数设置 Markdown 内容。

名称类型是否必填描述
textstring是Markdown 内容。支持的内容参见下表。示例值:1. item1\n2. item2

在 text 参数内支持的语法如下表所示。

语法示例说明
@ 用户<at user_id="ou_xxxxx">User</at>支持 @ 单个用户或所有人。- @ 单个用户时,需要在 user_id 内传入实际用户的真实 ID。传入的值可以是用户的 user_id、open_id、union_id。各类 ID 获取方式参见如何获取 User ID、Open ID 和 Union ID。- 如需 @ 所有人,需要将 user_id 取值为 all。
超链接[Feishu Open Platform](https://open.feishu.cn)在 Markdown 语法内,[] 用来设置超链接的文本内容、() 用来设置超链接的地址。 注意:请确保链接地址的合法性,否则只发送文本内容部分。
有序列表1. item1\n2. item2Markdown 配置说明:- 每个编号的 . 符与后续内容之间要有一个空格。- 每一列独立一行。如示例所示,可使用 \n 换行符换行。- 支持嵌套多层级。- 每个层级缩进 4 个空格,且编号均从 1. 开始。- 可以与无序列表混合使用。
无序列表- item1\n- item2Markdown 配置说明:- 每列的 - 符与后续内容之间要有一个空格。- 每一列独立一行。如示例所示,可使用 \n 换行符换行。- 支持嵌套多层级。- 每个层级缩进 4 个空格。- 可以与有序列表混合使用,有序列表以 1. 开始编号。
代码块```GO\nfunc main(){\n return\n}\n```代码块内容首尾需要使用 ``` 符号包裹,首部 ``` 后紧跟代码语言类型。支持的语言类型有 PYTHON、C、CPP、GO、JAVA、KOTLIN、SWIFT、PHP、RUBY、RUST、JAVASCRIPT、TYPESCRIPT、BASH、SHELL、SQL、JSON、XML、YAML、HTML、THRIFT 等(不区分大小写)。
引用> demo引用内容。> 符与后续内容之间要有一个空格。
分割线\n --- \n如示例所示,前后需要各有一个 \n 换行符。
加粗**加粗文本**配置说明:- ** 符与加粗文本之间不能有空格。- 加粗可以与斜体合用。例如 ***加粗+斜体***。- 加粗的文本不支持再解析其他组件。例如文本为超链接则不会被解析。
斜体*斜体文本*配置说明:- * 符与加粗文本之间不能有空格。- 斜体可以与加粗合用。例如 ***加粗+斜体***。- 斜体的文本不支持再解析其他组件。例如文本为超链接则不会被解析。
下划线~下划线文本~配置说明:- ~ 符与下划线文本之间不能有空格。- 下划线的文本不支持再解析其他组件。例如文本为超链接则不会被解析。- 不支持与加粗、斜体、删除线合用。
删除线~~删除线~~配置说明:- ~~ 符与下划线文本之间不能有空格。- 删除线的文本不支持再解析其他组件。例如文本为超链接则不会被解析。- 不支持与加粗、斜体、下划线合用。

卡片 interactive

飞书卡片是一种可以灵活构建图文内容的消息类型:

  1. 你应该阅读 webhook-card-common.md来了解卡片结构的详情。
  2. 必须阅读 webhook-card-content.md 和webhook-card-container.md 来了解卡片的构造
  3. 如果涉及到复杂图表的可视化,则阅读webhook-card-visual.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Feishu Webhook Skill AI skill do?

Must Use this skill to send Feishu(飞书/Lark) webhook msgs.

Why use Feishu Webhook Skill on TypingMind?

Because you install it once and use it with any model. Feishu Webhook Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Feishu Webhook Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/viktorxhzj/feishu-webhook-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Feishu Webhook Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Feishu Webhook Skill?

As many as you like. As long as a model supports skills, you can use Feishu Webhook Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Feishu Webhook Skill AI skill free?

Yes. It is published on GitHub by viktorxhzj under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇