Loading...
Loading...
Feishu Message Sending and Document Creation Workflow. Trigger Scenarios: When users mention "send Feishu message", "Feishu document", "notify someone", "send to Feishu", "Feishu notification". Applicable to: Sending Feishu messages, creating Feishu documents, operating Feishu Base, managing Knowledge Base.
npx skill4agent add muzhicaomingwang/ai-ideas feishu-messaging| Function | Status | Required Permissions |
|---|---|---|
| Send Text Message | ✅ Available | |
| Send Rich Text Message | ✅ Available | |
| Send Card Message | ✅ Available | |
| Get Group Chat List | ✅ Available | |
| Get Group Members | ⏳ Pending Authorization | |
| Create Feishu Document | ⏳ Pending Authorization | |
| Create Feishu Base | ⏳ Pending Authorization | |
| Create Knowledge Base Page | ⏳ Pending Authorization | |
Send a Feishu message to [Name], telling him [content]contact:user.id:readonlyUser Email: xxx@company.com/myid| Name | open_id | Remarks |
|---|---|---|
| Wang Zhimeng | | zhimeng.wang@qunar.com |
mcp__feishu__im_v1_message_create(
params={"receive_id_type": "open_id"},
data={
"receive_id": "ou_xxx",
"msg_type": "text",
"content": '{"text": "Hello World"}'
}
)mcp__feishu__im_v1_message_create(
params={"receive_id_type": "open_id"},
data={
"receive_id": "ou_xxx",
"msg_type": "post",
"content": json.dumps({
"zh_cn": {
"title": "Message Title",
"content": [
[{"tag": "text", "text": "Body Content"}],
[{"tag": "text", "text": "Bold Text", "style": ["bold"]}],
[{"tag": "a", "text": "Link", "href": "https://example.com"}]
]
}
})
}
)mcp__feishu__im_v1_message_create(
params={"receive_id_type": "open_id"},
data={
"receive_id": "ou_xxx",
"msg_type": "interactive",
"content": json.dumps({
"config": {"wide_screen_mode": True},
"header": {
"title": {"tag": "plain_text", "content": "Card Title"},
"template": "blue" # blue/green/orange/red/purple
},
"elements": [
{"tag": "markdown", "content": "**Supports Markdown**\n- List Item 1\n- List Item 2"},
{"tag": "hr"},
{"tag": "div", "text": {"tag": "lark_md", "content": "Column Content"}}
]
})
}
)1. Confirm Recipient
↓ Has open_id → Send directly
↓ No open_id → Obtain open_id (see methods above)
2. Confirm Message Type
↓ Simple text → text
↓ Needs formatting → post
↓ Rich card → interactive
3. Construct Message Content
↓ Construct JSON according to type
4. Send Message
↓ Call im_v1_message_create
5. Confirm Delivery
↓ Check the returned message_id1. Confirm Document Type
↓ Regular Document → docx_builtin_import
↓ Feishu Base → bitable_v1_app_create
↓ Knowledge Base Page → wiki-related APIs
2. Prepare Content
↓ Markdown format (will be converted automatically)
3. Create Document
4. Share Permissions (Optional)
↓ Add collaboratorscli_a8831f109ffc500e| Function | Permission | Application Link |
|---|---|---|
| Query User ID | | Apply |
| Read Group Members | | Apply |
| Read Messages | | Apply |
| Create Document | | Apply |
| Feishu Base | | Apply |
| Knowledge Base | | Apply |
chat_idopen_idparams={"receive_id_type": "chat_id"},
data={"receive_id": "oc_xxx", ...}{
"config": {"wide_screen_mode": true},
"header": {
"title": {"tag": "plain_text", "content": "🤖 Claude Code Capability Introduction"},
"template": "blue"
},
"elements": [
{"tag": "markdown", "content": "Hi, I'm **Claude Code**, an AI programming assistant."},
{"tag": "div", "text": {"tag": "lark_md", "content": "**💻 Development Support**\n• Code writing, debugging and refactoring\n• Bug troubleshooting and fixing"}},
{"tag": "div", "text": {"tag": "lark_md", "content": "**📊 Project Management**\n• Feishu document/Base operations\n• Git commits, PR creation"}},
{"tag": "hr"},
{"tag": "markdown", "content": "Feel free to call me whenever you need help!"}
]
}{
"config": {"wide_screen_mode": true},
"header": {
"title": {"tag": "plain_text", "content": "📋 Task Notification"},
"template": "green"
},
"elements": [
{"tag": "div", "fields": [
{"is_short": true, "text": {"tag": "lark_md", "content": "**Task**\nDeployment and Launch"}},
{"is_short": true, "text": {"tag": "lark_md", "content": "**Status**\n✅ Completed"}}
]},
{"tag": "hr"},
{"tag": "markdown", "content": "For details, please check [Link](https://example.com)"}
]
}im/v1/images