Skip to content
Projects

About

Template-based PPT generator that creates PPTs using templates

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+2
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

TrainPPTAgent

TrainPPTAgent is an AI-powered tool for automatically generating professional presentation slides (PPT). With just a topic as input, the system generates a well-structured outline and slide contents.

The project adopts a frontend-backend decoupled architecture:

  • Frontend handles user interaction, outline editing, and template selection.
  • Backend leverages large language models (LLMs) and reinforcement learning (GRPO) to generate optimized PPT outlines and content aligned with user goals.

✨ Features

  • AI-Powered Outline Generation Automatically generates a logically structured presentation outline from a topic.

  • Page-by-Page Content Generation Supports streaming content generation, allowing slides to be displayed incrementally in real-time.

  • Template Support Provides multiple templates so users can apply content to different styles flexibly.

  • Decoupled Architecture Built with Vue.js + Vite + TypeScript for the frontend and Python (Flask/FastAPI) for the backend.

  • Reinforcement Learning Optimization Powered by GRPO reinforcement learning, making the slide agent outputs more relevant to the user’s objectives.


🛠 Tech Stack

  • Frontend: Vue.js, Vite, TypeScript
  • Backend: Python, Flask/FastAPI, A2A, ADK, MCP Search
  • AI Models: Large language models for outline and content generation

Related training code: 👉 PPT Model Training Repository


📂 Project Structure

TrainPPTAgent/
├── backend/           # Backend code
│   ├── main_api/      # Core API services
│   ├── slide_agent/   # AI Agent logic
│   └── ...
├── frontend/          # Frontend code
│   ├── src/
│   │   ├── views/     # Page components (outline, PPT editing, etc.)
│   │   ├── services/  # API service layer
│   │   └── ...
│   └── vite.config.ts # Frontend config
└── doc/               # Documentation
    ├── API_*.md       # API specs
    └── ...

🚀 Getting Started

Backend

  1. Navigate to the backend directory:

    cd backend
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Start the main API service (default: http://127.0.0.1:6800):

    cd main_api
    cp env_template .env
    python main.py
    
  4. Start the outline service (default: http://127.0.0.1:10001):

    cd backend/simpleOutline
    cp env_template .env
    python main_api.py
    
  5. Start the PPT content service (default: http://127.0.0.1:10011):

    cd backend/slide_agent
    cp env_template .env
    python main_api.py
    

Frontend

  1. Navigate to the frontend directory:

    cd frontend
    
  2. Install dependencies:

    npm install
    
  3. Start the development server (default: http://127.0.0.1:5173):

    npm run dev
    

Note: The frontend communicates with the backend API through a proxy configured in frontend/vite.config.ts.


🤖 AI Workflow

  1. User Input → Users enter a topic in the frontend.
  2. Outline Generation → Backend /api/tools/aippt_outline generates a Markdown outline.
  3. Content Generation → Backend /api/tools/aippt generates detailed slide content page by page.
  4. Rendering → The frontend receives data and renders the slides in real-time.

📑 Flowchart

flowchart TD
  U((User)) --> FE[Frontend UI]
  FE -->|Input Topic| API[Backend API]

  API -->|Call Outline Service| Outline[Outline Service]
  Outline -->|Call Web Search| WebSearch1[Web Search]
  Outline --> API --> FE

  FE -->|Confirm Outline| API --> PPTGen[PPT Generation Service]
  PPTGen -->|Call Web Search| WebSearch2[Web Search]
  PPTGen -->|Call Image Search| ImgSearch[Image Search]
  PPTGen --> API --> FE

  FE -->|Render PPT| U

🖼 UI Previews

  • Outline Generation outline.png

  • Template Selection select_template.png

  • Page-by-Page Generation start_ppt_generate.png


📌 Todo

  • Support uploading custom PPT templates with auto-labeling

📖 References


📬 Contact

For any issues, please contact the author: weichat.png

Explore related projects

Loading…