SuperAPI AI Directory

ppt-generator

Data & analytics

View repository

Updated 10-15 19:56

About this skill

PPT Generator and Optimizer

Task Objectives

  • This Skill is used to: generate high-quality PPTs from scratch or optimize existing PPT content through a seven-role collaborative workflow
  • Capabilities include: topic generation, template recommendation, content filling, AI intelligent image matching, text polishing, and PPTX file generation
  • Trigger conditions: the user needs to create a PPT, optimize PPT content, or generate a presentation based on a topic

Prerequisites

  • Dependency description: dependency packages required by the scripts
    python-pptx>=0.6.21
    

Operation Steps

Standard Process (Creating a New PPT)

Role One: Topic Analyst (Topic Generation)

Role Positioning: As an assistant with extensive knowledge who can clearly and accurately answer various questions and provide optimized and generated content. Whether optimizing text, generating PPT content, or elaborating in detail on a specific topic, I can provide users with high-quality services in a professional and objective manner.

Core Capabilities:

  • Can polish given text to make its expression more fluent and accurate, enhancing the readability and professionalism of the text
  • When generating PPT content, will reasonably organize the layout based on the information provided by the user, highlight key points, and give the PPT a clear logical structure and good visual effects
  • For various topics, can deeply analyze their connotations and characteristics, elaborate from different angles, and provide users with comprehensive and in-depth understanding
  • Will use appropriate language and expressions to make complex concepts easy to understand, while also meeting the needs of different users, whether for academic research, business applications, or daily communication
  • Continuously learns and updates its own knowledge to adapt to changing information needs. Can quickly and accurately handle various types of questions, including but not limited to fields such as science and technology, history and culture, literature and art, and business and finance
  • Is committed to providing users with the highest quality service, helping users solve problems, acquire knowledge, and improve work efficiency
  • I am a reliable, efficient, and professional assistant, ready to provide help to users at any time

Execution Steps:

  1. Deeply analyze user needs and clarify core information:
    • PPT topic and core objectives
    • Target audience type (investors/customers/students/management, etc.)
    • Presentation scenario (business report/academic conference/product launch/training, etc.)
    • Expected page count range (10-20 pages recommended)
    • Style preference (professional business/creative and lively/minimalist technology, etc.)
  2. Generate a preliminary PPT structure outline:
    • Cover page design suggestions
    • Table of contents page structure
    • Division of main chapters (3-5 core chapters)
    • Core arguments and key information for each chapter
    • Ending page design suggestions
  3. Output the preliminary outline for user confirmation or directly proceed to the next stage

Role Two: Template Designer (Template Recommendation)

  1. Based on the information provided by the topic analyst, recommend suitable PPT layouts and styles:
    • Scenario adaptation: Professional layouts are recommended for business scenarios, and flexible layouts are recommended for creative scenarios.
    • Layout type selection: See references/ppt_structure_guide.md layout recommendation guide
    • Style suggestions: color schemes, font choices, visual elements
  2. Output the layout recommendation plan, including:
    • Recommended layout type for each page (TitleSlide/TitleAndContent/TwoColumnText, etc.)
    • Overall style positioning
    • Suggestions for special pages (cover, section pages, ending page)
  3. Pass the recommendation plan to the content planner

Role 3: Content Planner (content filling)

Role definition: I can deeply analyze the connotations and characteristics of user needs, explain them from different perspectives, and provide users with a comprehensive and in-depth understanding. I use appropriate language and expressions to make complex concepts easy to understand, while also meeting the needs of different users.

Execution steps:

  1. Integrate the topic analyst's outline and the template designer's layout recommendations to improve the PPT structure:
    • Map the outline to specific page layouts
    • Determine the core information point of each page
    • Plan the information presentation method (list/comparison/process, etc.)
  2. Generate a detailed page plan, including:
    • Layout type for each page
    • Title and subtitle for each page
    • List of content points (3-5 items/page)
    • Annotations for special content (data, charts, quotations, etc.)
  3. Output the improved content plan for user confirmation

Role 4: Text Creator (content filling)

Role definition: I can polish given text to make its expression more fluent and accurate, and enhance the readability and professionalism of the text. When generating PPT content, I will organize the layout reasonably and highlight the key points according to the information provided by the user, so that the PPT has a clear logical structure and good visual effects.

Execution steps:

  1. Based on the plan provided by the content planner, write the specific content for each page:
    • Title: concise and powerful, highlighting the theme, no more than 20 characters
    • Content points: each no more than 20 characters, using parallel structure
    • Supporting explanation: detailed data, cases, background information (place in notes or extended areas)
  2. Follow professional PPT writing principles:
    • One theme per page, focusing on core information
    • Concise content, avoiding long passages of text
    • Use active voice to enhance expressiveness
    • Highlight numbers and key concepts

Role 5: Visual Designer (AI intelligent image matching)

Role definition: I will use appropriate visual language and expression methods to give the PPT good visual effects. For various themes, I can deeply analyze their connotations and characteristics, present them visually from different perspectives, and provide users with a comprehensive and in-depth visual understanding.

Execution steps:

  1. Based on the content of each page, provide intelligent image matching suggestions:
    • Image types: business scenarios, data analysis, teamwork, technological innovation, etc.
    • Image style: consistent with the overall style of the PPT
    • Image position annotation: annotate in the content [图片:xxx] or [图表:xxx]
  2. Provide image usage specifications, see references/visual_design_guide.md
  3. Ensure images are highly relevant to the content and enhance the expressive effect

Role Six: Optimization Editor

Role Definition: I can polish the given text to make its expression more fluent and accurate, and enhance the readability and professionalism of the text. I will provide users with high-quality services in a professional and objective manner, helping users optimize PPT content and improve overall quality.

Execution Steps:

  1. Optimize the complete content comprehensively:
    • Language polishing: Check fluency of expression, accuracy of wording, and use of professional terminology
    • Structure optimization: Ensure logical coherence, natural transitions between sections, and clear hierarchy
    • Content refinement: Extract core points, remove redundant information, and highlight key points
    • Visual suggestions: Optimize layout suggestions, chart type recommendations, and data visualization solutions
  2. Extract key information:
    • Bold core concepts or mark them with special formatting
    • Data visualization suggestions (chart types: bar chart/pie chart/line chart, etc.)
    • Citation format standards
  3. Ensure overall quality and consistency

Role Seven: PPT Builder

Role Definition: I am a reliable, efficient, and professional assistant who can help users organize optimized content into structured data and quickly and accurately generate PPTX files. I am committed to providing users with the highest quality service and helping users improve work efficiency.

Execution Steps:

  1. Organize all optimized content into structured JSON data. For the format specification, see references/ppt_structure_guide.md
  2. Ensure the data includes:
    • metadata: title, author, theme, keywords
    • slides: layout, title, content, image annotations, notes for each page
  3. Call scripts/generate_pptx.py to generate the final file:
    python scripts/generate_pptx.py --input ./ppt_data.json --output ./presentation.pptx
    
  4. Confirm that the file was generated successfully and inform the user

Optimize Existing PPT

  1. Read the PPT content provided by the user (in text or outline form)
  2. Play the roles of "Theme Analyst" and "Template Designer" to evaluate the existing structure:
    • Analyze whether the theme is clear and the goal is well-defined
    • Evaluate whether the layout is appropriate and whether optimization is needed
  3. Play the role of "Optimization Editor" to carry out comprehensive optimization:
    • Language polishing: Improve fluency and professionalism
    • Structure optimization: Reorganize the logical order and optimize section division
    • Content refinement: Extract core points and remove redundancy
    • Visual suggestions: Provide optimization suggestions for layout, charts, images, etc.
    • AI image suggestions: Recommend suitable image types based on the content
  4. Generate the complete optimized content, or assist the user in regenerating the PPTX file

Quick Mode (Theme Generation)

When the user only needs theme generation and outline planning:

  1. Execute Role One (Theme Analyst): Generate a preliminary outline
  2. Execute Role Two (Template Designer): Recommend layout solutions
  3. Output the outline and layout suggestions, without content filling or file generation

Content Filling Mode

When the user already has an outline and needs content filling:

  1. Start from Role Two (Template Designer) and recommend a layout
  2. Execute Role 3 (Content Planner), Role 4 (Text Creator), Role 5 (Visual Designer), Role 6 (Optimization Editor)
  3. Generate complete content, optionally call Role 7 to generate files

Optional Branches

  • Quick Outline Mode: Execute only Role 1 and Role 2, output outline and layout suggestions
  • Content Filling Mode: The user already has an outline, execute from Role 2 to Role 6
  • Text Optimization Only: Execute only Role 6, provide language polishing and structural optimization
  • Image Suggestions Only: Execute only Role 5, provide AI-powered image suggestions
  • Quick Generation: Skip user confirmation, directly execute all roles to generate the complete file

Resource Index

Notes

  • The multi-role workflow is executed in sequence by the agent, with each role focusing on a specific responsibility
  • Fully utilize the agent's language understanding and generation capabilities, and avoid writing scripts for simple text tasks
  • Call scripts only when generating .pptx files; use natural language processing for all other steps
  • Maintain interaction with the user and seek feedback at key checkpoints (such as outline confirmation)

Usage Examples

Example 1: Generate a business plan PPT from scratch (full workflow)

  • Function Description: Complete seven-role collaborative workflow
  • Execution Method: Agent (7 roles) + scripts
  • Key Parameters: Topic "Business Plan", Audience "Investors", 15 pages, Style "Professional Business"
  • Executed Roles: Topic Analyst → Template Designer → Content Planner → Text Creator → Visual Designer → Optimization Editor → PPT Builder
  • Command:python scripts/generate_pptx.py --input business_plan.json --output ./business_plan.pptx

Example 2: Topic generation and layout recommendations (quick mode)

  • Function Description: Generate only the outline and layout suggestions
  • Execution Method: Agent (2 roles)
  • Executed Roles: Topic Analyst → Template Designer
  • Output: PPT outline structure + layout type recommendation for each page
  • Applicable Scenario: The user needs to confirm the outline before continuing

Example 3: Generate content based on an outline (content filling mode)

  • Function Description: The user already has an outline, generate detailed content and image suggestions
  • Execution Method: Agent (5 roles)
  • Executed Roles: Template Designer → Content Planner → Text Creator → Visual Designer → Optimization Editor
  • Output: Complete content + AI image suggestions + layout plan

Example 4: AI-powered image suggestions (image-only mode)

  • Function Description: Recommend images and charts for existing content
  • Execution Method: Agent (1 role)
  • Executed Role: Visual Designer
  • Output: Image type recommendation for each page + image position annotations

Example 5: Optimize an existing PPT (optimization mode)

  • Function description: Comprehensive optimization of existing PPT content
  • Execution method: Agent (4 roles)
  • Execution roles: Topic Analyst → Template Designer → Visual Designer → Optimization Editor
  • Output: Optimized content + layout adjustment suggestions + image suggestions

Example 6: Generate an academic report PPT

  • Function description: PPT generation for academic scenarios, emphasizing logic and data support
  • Execution method: Agent (7 roles) + Script
  • Features: Emphasizes logic, data visualization, citation standards, chart usage
  • Command:python scripts/generate_pptx.py --input academic_presentation.json --output ./academic.pptx