AI Agent Hub
Back to skills
AI PPT Generation icon

AI PPT Generation

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_03e5be41/ppt-generate according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem It Solves

Building PPTs manually often stalls on three steps: choosing a theme and template, turning source material into a stable outline, and converting that outline into an editable file. This skill turns ppt-generate into a repeatable API workflow for producing presentation files from a topic, PDF/Word/TXT resource, or existing template, rather than starting from blank slides.

How It Works

The skill relies on Baidu PPT-related APIs and requires BAIDU_API_KEY to be available in the runtime environment. The main flow has three steps:
- Theme lookup: call PPTThemeQuery to get built-in themes, templates, and IDs such as style_id and tpl_id.
- Outline generation: call PPTOutlineGenerate with the title or user intent. Optional inputs include resource_url, page range, layout, language, and generation mode. The API returns an SSE stream, and the result is assembled into an outline.
- File generation: call PPTGenerate with query_id, chat_id, title, style_id, tpl_id, the Markdown outline, and other required fields to obtain a PPT file URL.

The outline must remain Markdown. Users may add, remove, or edit parts, but malformed Markdown can cause failure. If theme lookup or outline generation fails, stop the workflow instead of passing incomplete parameters to the final generation API.

Use Cases

  • Feed a project review topic and PDF materials into the workflow to produce a Markdown outline and a downloadable PPT file.
  • Turn a customer-provided Word proposal into a presentation deck with professional layout, Chinese content, and intelligent polish mode.
  • Query built-in templates and style IDs, then generate different page-length drafts from the same topic for initial review.
  • Pass a user-edited Markdown outline into the PPT generation API while preserving manually adjusted structure and key points.

Best For

  • Pre-sales support staff who need to turn proposals, research reports, or meeting notes into review-ready PPT decks quickly.
  • Agent engineers who want to package topic, resource, and template selection into an internal workflow.
  • Developers debugging Baidu PPT API calls for theme lookup, SSE outline generation, and file generation.
  • Operations or consulting staff who repeatedly adjust Markdown outline structure before exporting presentation files.