Install
openclaw skills install create-feishu-docUse this skill whenever the user wants to create, generate, write to, or organize content into a Feishu document. Triggers include: any mention of 'Feishu doc', 'Feishu document', '飞书文档', '创建飞书文档', '生成飞书文档', or requests to produce structured or complete documents within Feishu. This applies to scenarios requiring fully formatted documents, including but not limited to: technical documentation, PRDs, project plans, reports, notes, articles, or novels. Use this skill whenever content needs to be compiled, structured, and delivered as a Feishu document.
openclaw skills install create-feishu-doc本技能提供通用的飞书文档创建功能,根据用户提供的任意内容创建文档。支持各种文档类型:小说、技术文档、项目计划、报告、笔记、文章等。由于飞书文档API对单次写入内容长度有限制,本技能通过智能分段、分批写入和重试机制确保各种长文档的完整创建。
feishu_doc工具的create操作document_id和文档URLfeishu_doc工具的append操作document_idappend操作失败(返回400错误):
# 伪代码示例
1. create_doc("剑来小说第一章")
2. wait(2)
3. append_content("第一节:小镇少年...")
4. wait(1)
5. append_content("第二节:集市奇遇...")
6. wait(1)
7. append_content("第三节:神秘预言...")
8. 验证文档完整性
# 伪代码示例
1. create_doc("Python编程指南")
2. wait(2)
3. append_content("第一章:Python基础...")
4. wait(1)
5. append_content("第二章:函数和模块...")
6. wait(1)
7. append_content("第三章:面向对象编程...")
8. 验证文档完整性
# 伪代码示例
1. 获取用户输入的文档标题和内容
2. 创建空白文档
3. 等待文档初始化
4. 将内容智能分段
5. 分批次写入所有段落
6. 处理错误和重试
7. 验证文档完整性
8. 返回文档链接和创建结果
原因:内容过长或格式不支持 解决:
原因:写入操作未成功但未检测到 解决:
原因:等待时间过长或网络延迟 解决:
提供Python脚本实现完整的文档创建流程,包括错误处理和重试机制。
飞书API使用指南,包含常见错误代码和解决方案。
技能特点: