mirror of
https://github.com/LeoYeAI/openclaw-master-skills.git
synced 2026-07-27 22:15:43 +00:00
1.4 KiB
1.4 KiB
飞书文档对话协议 (Feishu Doc Chat Protocol)
Message Format
Each message in the document is a message block, separated by ---, with a header line and body.
Header Format
> **SenderName** → **ReceiverName** | StatusFlag
Status Flags
- 🔴 编辑中 (editing) — AI does NOT process this message (user is still typing)
- 🟢 完成 (done) — AI reads and responds to this message
Core rule: AI only processes messages with 🟢 status.
Routing
→ AgentName— addressed to a specific participant→ all— broadcast to all participants
Parsing Rules
- Read the full document
- Find the last message block (from the end, delimited by
---) - Extract the header: sender, receiver, status
- If status is not 🟢 → do nothing
- If sender is yourself → do nothing (anti-loop)
- If receiver doesn't match your name and is not "all" → do nothing
- If all checks pass → process the message and append your reply
Participant Roster
Fill in your participants below:
| Name | ID | Type |
|---|---|---|
| (Your name) | (open_id) | Human |
| (Agent name) | (open_id) | AI |
Example Conversation
---
> **Alice** → **MyBot** | 🟢 完成
Please summarize the Q1 sales data.
---
> **MyBot** → **Alice** | 🟢 完成
Here's the Q1 summary:
- Total revenue: ¥2.3M
- Growth: +15% YoY
- Top product: Widget Pro