OpenClaw PPT Generator
Generate PPT documents using open-source Python library (python-pptx). No third-party API calls required.
Features
- - Fully Open Source: Uses python-pptx library, no API keys needed
- Simple & Fast: Local generation, no network dependency
- Flexible Content: Supports titles, text, and bullet lists
- Standard Templates: Uses built-in PowerPoint layouts
Scripts
- -
scripts/generate_ppt.py - Main script to generate PPT from content
Usage Examples
CODEBLOCK0
Agent Steps
- 1. Get PPT title and content from user
- Run
scripts/generate_ppt.py with parameters - Return the generated PPT file path
Content Format
- - Use
| to separate slides - Use
: to separate slide title from bullet list - Use
, to separate bullet items
Example: INLINECODE5
Output
CODEBLOCK1
Technical Notes
- - Library: python-pptx (open source)
- No API calls: All processing done locally
- Templates: Uses standard PowerPoint layouts
- Output format: .pptx (Microsoft PowerPoint format)
OpenClaw PPT 生成器
使用开源Python库(python-pptx)生成PPT文档。无需调用第三方API。
特性
- - 完全开源:使用python-pptx库,无需API密钥
- 简单快速:本地生成,无需网络依赖
- 内容灵活:支持标题、文本和项目符号列表
- 标准模板:使用内置的PowerPoint布局
脚本
- - scripts/generate_ppt.py - 根据内容生成PPT的主脚本
使用示例
bash
生成带标题和内容的PPT
python3 scripts/generate_ppt.py --title 我的演示文稿 --content 幻灯片1内容|幻灯片2内容
生成带项目符号列表的PPT
python3 scripts/generate_ppt.py --title 项目报告 --content 简介|功能:功能A,功能B,功能C|结论
指定输出路径
python3 scripts/generate_ppt.py --title 会议纪要 --content 议程|讨论|待办事项 --output meeting.pptx
智能体步骤
- 1. 从用户处获取PPT标题和内容
- 使用参数运行 scripts/generate_ppt.py
- 返回生成的PPT文件路径
内容格式
- - 使用 | 分隔幻灯片
- 使用 : 分隔幻灯片标题和项目符号列表
- 使用 , 分隔项目符号项
示例:标题|幻灯片1:项目1,项目2,项目3|幻灯片2:内容
输出
json
{
status: success,
ppt_path: output.pptx
}
技术说明
- - 库:python-pptx(开源)
- 无API调用:所有处理均在本地完成
- 模板:使用标准PowerPoint布局
- 输出格式:.pptx(Microsoft PowerPoint格式)