作者:互联网 时间: 2026-08-07 20:15:01
AI PPT 生成器是为 Openclaw Skills 生态系统设计的精密工具,可实现演示文稿创作全生命周期的自动化。通过集成百度 AI,它能分析用户的特定主题,并智能建议或选择符合内容意图的视觉主题,无论是企业、教育还是创意场景。该技能消除了幻灯片设计的体力劳动,让用户专注于高层信息传递,而由智能体处理布局、结构和模板应用。
下载入口:https://github.com/openclaw/skills/tree/main/skills/ide-rea/ai-ppt-generator从源直接安装技能的最快方式。
npx clawhub@latest install ai-ppt-generator
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 ai-ppt-generator。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
要在 Openclaw Skills 框架内使用此技能,请确保您拥有 Python 3 和有效的 API 密钥。
# 设置环境变量
export BAIDU_API_KEY='your_api_key'
# 验证您的模板访问权限
python3 scripts/ppt_theme_list.py
该技能通过结构化 JSON 响应和特定脚本参数管理数据:
| 属性 | 描述 |
|---|---|
query |
PPT 的主要主题或内容提示。 |
tpl_id |
所选视觉模板的唯一 ID。 |
style_id |
类别 ID(例如:商务、科技、极简)。 |
ppt_url |
生成的 .pptx 文件的最终托管 URL。 |
is_end |
表示生成已完成的布尔状态标志。 |
name: ai-ppt-generator
description: Generate PPT with Baidu AI. Smart template selection based on content.
metadata: { "openclaw": { "emoji": "??", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY" } }
Generate PPT using Baidu AI with intelligent template selection.
ppt_theme_list.py → User picks → Use generate_ppt.py with chosen tpl_id and real style_idrandom_ppt_theme.py (auto-selects appropriate template based on topic content)random_ppt_theme.py analyzes the topic and suggests appropriate template:
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)# 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 "企业商务"
ppt_theme_list.py to show available templatesgenerate_ppt.py --query "TOPIC" --tpl_id IDrandom_ppt_theme.py --query "TOPIC"is_end: true to get final PPT URLDuring generation:
{"status": "PPT生成中", "run_time": 45}
Final result:
{
"status": "PPT导出结束",
"is_end": true,
"data": {"ppt_url": "https://image0.bj.bcebos.com/...ppt"}
}
is_end: true before considering complete