AGENT SKILL

Baidu Wenku AIPPT

Generate PPT with Baidu Wenku AI. Smart template selection based on content.

License 许可
MIT
最近更新
2026-09-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
Baidu Wenku AIPPT
metadata
{ "openclaw": { "emoji": "📑", "requires": { "env": [ "BAIDU_API_KEY" ], "bins": [ "python3" ] }, "primaryEnv": "BAIDU_API_KEY" } }
description
Generate PPT with Baidu Wenku AI. Smart template selection based on content.

02 资源文件 5

03 SKILL.md 正文

AI PPT Generator

Generate PPT using Baidu AI with intelligent template selection.

Smart Workflow

  1. User provides PPT topic
  2. Agent asks: "Want to choose a template style?"
  3. If yes → Show styles from ppt_theme_list.py → User picks → Use generate_ppt.py with chosen tpl_id and real style_id
  4. 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_id
  • scripts/random_ppt_theme.py - Smart template selection + generate PPT
  • scripts/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

  1. Get PPT topic from user
  2. Ask: "Want to choose a template style?"
  3. If user says YES:
    • Run ppt_theme_list.py to show available templates
    • User selects a template (note the tpl_id)
    • Run generate_ppt.py --query "TOPIC" --tpl_id ID
  4. If user says NO:
    • Run random_ppt_theme.py --query "TOPIC"
    • Script will auto-select appropriate template based on topic
  5. Set timeout to 300 seconds (PPT generation takes 2-5 minutes)
  6. Monitor output, wait for is_end: true to 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: true before considering complete

04 同仓库更多 Skills

bobvarkey
bobvarkey/diabetes-buddy

youtube

YouTube Data API integration with managed OAuth. Search videos, manage playlists, access channel data, and interact with comments. Use this skill when users want to interact with YouTube. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).

★ 0
bobvarkey
bobvarkey/diabetes-buddy

xcellent

Free, open-source X (Twitter) growth tool. Analytics dashboard, niche discovery, AI tweet writer, best posting times, and credit usage monitoring — all running locally on your machine. BYOK (Bring Your Own Key) model means users only pay X directly for API usage (~$5-15/mo). A free alternative to SuperX ($39/mo), Typefully, and Tweet Hunter.

★ 0
bobvarkey
bobvarkey/diabetes-buddy

work-application

CV generation, job scraping, offer analysis, and application tracking. Use when: (1) generating or adapting a CV/resume for a job offer, (2) scraping job offers from French platforms, (3) analyzing and ranking job offers, (4) generating a full analysis report for a single offer (skills, company, location, salary), (5) tracking candidatures and their status, (6) validating CV content against formatting guardrails. NOT for: cover letter generation (planned), LinkedIn direct messaging, job application submission, salary negotiation coaching.

★ 0
bobvarkey
bobvarkey/diabetes-buddy

weather

Get current weather and forecasts (no API key required).

★ 0
bobvarkey
bobvarkey/diabetes-buddy

to-do

Give your AI the power to act in the future. Schedule delayed prompts and one-off reminders that automatically wake the agent up at an exact moment to execute workflows, check systems, or send notifications.

★ 0
bobvarkey
bobvarkey/diabetes-buddy

summarize

Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).

★ 0