ai-ppt-generator
Generate PPT with Baidu AI. Smart template selection based on content.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/binbin/ai-ppt-generator-1-1-3AI PPT Generator
Generate PPT using Baidu AI with intelligent template selection.
Smart Workflow
- User provides PPT topic
- Agent asks: "Want to choose a template style?"
- If yes → Show styles from
ppt_theme_list.py→ User picks → Usegenerate_ppt.pywith chosentpl_idand realstyle_id - If no → Use
random_ppt_theme.py(auto-selects appropriate template based on topic content)
Intelligent Template Selection
random_ppt_theme.py analyzes the topic and suggests appropriate template:
- Business topics → 企业商务 style
- Technology topics → 未来科技 style
- Education topics → 卡通手绘 style
- Creative topics → 创意趣味 style
- Cultural topics → 中国风 or 文化艺术 style
- Year-end reports → 年终总结 style
- Minimalist design → 扁平简约 style
- Artistic content → 文艺清新 style
Scripts
scripts/ppt_theme_list.py- List all available templates with style_id and tpl_idscripts/random_ppt_theme.py- Smart template selection + generate PPTscripts/generate_ppt.py- Generate PPT with specific template (uses real style_id and tpl_id from API)
Key Features
- Smart categorization: Analyzes topic content to suggest appropriate style
- Fallback logic: If template not found, automatically uses random selection
- Complete parameters: Properly passes both style_id and tpl_id to API
Usage Examples
# List all templates with IDs
python3 scripts/ppt_theme_list.py
# Smart automatic selection (recommended for most users)
python3 scripts/random_ppt_theme.py --query "人工智能发展趋势报告"
# Specific template with proper style_id
python3 scripts/generate_ppt.py --query "儿童英语课件" --tpl_id 106
# Specific template with auto-suggested category
python3 scripts/random_ppt_theme.py --query "企业年度总结" --category "企业商务"
Agent Steps
- Get PPT topic from user
- Ask: "Want to choose a template style?"
- If user says YES:
- Run
ppt_theme_list.pyto show available templates - User selects a template (note the tpl_id)
- Run
generate_ppt.py --query "TOPIC" --tpl_id ID
- Run
- If user says NO:
- Run
random_ppt_theme.py --query "TOPIC" - Script will auto-select appropriate template based on topic
- Run
- Set timeout to 300 seconds (PPT generation takes 2-5 minutes)
- Monitor output, wait for
is_end: trueto get final PPT URL
Output Examples
During generation:
{"status": "PPT生成中", "run_time": 45}
Final result:
{
"status": "PPT导出结束",
"is_end": true,
"data": {"ppt_url": "https://image0.bj.bcebos.com/...ppt"}
}
Technical Notes
- API integration: Fetches real style_id from Baidu API for each template
- Error handling: If template not found, falls back to random selection
- Timeout: Generation takes 2-5 minutes, set sufficient timeout
- Streaming: Uses streaming API, wait for
is_end: truebefore considering complete
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-binbin-ai-ppt-generator-1-1-3": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
im-social-insurance-backpay
内蒙古养老保险补缴计算工具。用于计算内蒙古地区养老保险补缴金额,包括本金、利息(按月复利计息)、滞纳金等明细。 **触发关键词**:社保补缴、社保补费、补缴、补费、养老保险补缴、社保欠费计算 **使用场景**: 1. 计算历史欠缴养老保险的补缴金额 2. 估算补缴本金、利息、滞纳金明细 3. 对比不同缴费档次(60%/80%/100%/150%/200%/300%)的补缴金额 4. 计算无滞纳金情况下的补缴金额 **输入参数**: - 补缴起止年月(必填) - 缴费档次比例(可选,默认60%,支持--all计算全部档次) - 补缴时间(可选,默认当前时间) - 自定义月缴费基数(可选,设置后忽略档次比例和社平工资) **输出结果**: - 个人本金、单位本金 - 个人利息、单位利息(按月复利计算) - 个人滞纳金、单位滞纳金 - 有滞纳金和无滞纳金分别汇总 - 支持六档对比:60%、80%、100%、150%、200%、300%
openclaw-skills-setup-cn
ClawHub 安装与配置 | ClawHub setup. 帮助中文用户安装 ClawHub、配置镜像(如阿里云)、 找技能(发现/推荐)、以及技能的安装/更新/启用/禁用。 Use when: 安装 clawhub, clawhub 怎么用, 找技能/找 skill, 有什么技能可以/有什么 skill 可以, 找一个技能/找一个 skill, 搜索技能/搜索 skill, 安装技能/安装 skill, 更新技能/更新 skill, 管理技能/管理 skill, clawhub init, clawhub install, clawhub search, clawhub update, openclaw skills.
docx-cn
Word 文档处理 | Word Document Processing. 创建、读取、编辑 Word 文档 | Create, read, edit Word documents. 支持 .docx 格式、格式化、表格、图片 | Supports .docx format, formatting, tables, images. 触发词:Word、文档、docx.
software-copyright-cn
中国计算机软件著作权登记申请材料生成器。用于生成软著申请所需的全部材料,包括软件基本信息表单填写、程序鉴别材料PDF(源代码语法高亮)、文档鉴别材料PDF(用户手册)。当用户提到"软著"、"软件著作权"、"著作权登记"、"版权登记"、"软著申请"、"copyright registration"时使用此技能。
install-openclaw
OpenClaw 全自动安装、配置和修复工具。包括:OpenClaw 安装、Claude API 中转站配置、飞书插件集成、bug 自动修复。当用户需要安装、配置或修复 OpenClaw 时使用此技能。