/install feishu-chat-importer
Feishu Chat History Importer
Import Feishu chat history exports into OpenClaw episodic memory. Converts feishu JSON exports into daily episodic summaries that the Dreaming system can process and display in Imported Insights and Memory Palace views.
Quick Start
# Dry run — preview what would be imported
python3 skills/feishu-chat-importer/scripts/batch.py --dir memory/Chat-history --dry-run
# Import all Feishu chats
python3 skills/feishu-chat-importer/scripts/batch.py --dir memory/Chat-history
# Import only chats since a date
python3 skills/feishu-chat-importer/scripts/batch.py --dir memory/Chat-history --since 2026-03-01
# Verbose — show every message
python3 skills/feishu-chat-importer/scripts/batch.py --dir memory/Chat-history --dry-run --verbose
How It Works
- Read
feishu_chat_YYYYMMDD.jsonfiles from the source directory - Group messages by date (from
create_time/ millisecond timestamp) - Normalize each message to
{role, content, timestamp}sender.sender_type = "user"→ role =usersender.sender_type = "app"→ role =assistant(Feishu bot = AI)
- Write daily episodic summaries to
memory/episodic/YYYY-MM-DD.md - Dreaming processes episodic files → appears in Imported Insights + Memory Palace
Output Format
Writes to memory/episodic/YYYY-MM-DD.md:
## Feishu Chat: \x3Cchat_id> (2026-03-19)
- Messages: \x3Ccount>
- Participants: user_id, app_id
### user (首长):
message content here...
### assistant (飞书机器人):
message content here...
Key Concepts
- Daily grouping: All messages from the same YYYYMMDD file land in the same episodic file
- Deduplication: Chat IDs tracked — re-running never creates duplicates
- Role mapping: User messages →
user, App/bot messages →assistant - Content extraction: Handles
textandpostmsg_type automatically - OPENCLAW_WORKSPACE: Set this env var to point imports to the right agent workspace
Source Format
Expects Feishu export files named feishu_chat_YYYYMMDD.json with this structure:
[
{
"message_id": "om_xxx",
"chat_id": "oc_xxx",
"create_time": "1773899372102",
"msg_type": "text|post",
"sender": {
"id": "ou_xxx",
"sender_type": "user|app"
},
"body": {
"content": "{\"text\":\"message text\"}" // text type
// or
"content": "{\"title\":\"\",\"content\":[[{\"tag\":\"text\",\"text\":\"...\"}]]}" // post type
}
}
]
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-chat-importer - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-chat-importer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Feishu Chat Importer 是什么?
Convert Feishu chat history exports into OpenClaw episodic memory format. Parses feishu_chat_YYYYMMDD.json files, normalizes messages, and writes daily episo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 62 次。
如何安装 Feishu Chat Importer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-chat-importer」即可一键安装,无需额外配置。
Feishu Chat Importer 是免费的吗?
是的,Feishu Chat Importer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Feishu Chat Importer 支持哪些平台?
Feishu Chat Importer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(win32, linux, darwin)。
谁开发了 Feishu Chat Importer?
由 arkerro(@arkerro)开发并维护,当前版本 v1.0.0。