johnson7788/TrainPPTAgent
About
Template-based PPT generator that creates PPTs using templates
AI & Machine LearningMeasured 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
OriginalTrainPPTAgent
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
Navigate to the backend directory:
cd backendInstall dependencies:
pip install -r requirements.txtStart the main API service (default:
http://127.0.0.1:6800):cd main_api cp env_template .env python main.pyStart the outline service (default:
http://127.0.0.1:10001):cd backend/simpleOutline cp env_template .env python main_api.pyStart the PPT content service (default:
http://127.0.0.1:10011):cd backend/slide_agent cp env_template .env python main_api.py
Frontend
Navigate to the frontend directory:
cd frontendInstall dependencies:
npm installStart 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
- User Input → Users enter a topic in the frontend.
- Outline Generation → Backend
/api/tools/aippt_outlinegenerates a Markdown outline. - Content Generation → Backend
/api/tools/aipptgenerates detailed slide content page by page. - 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

Template Selection

Page-by-Page Generation

📌 Todo
- Support uploading custom PPT templates with auto-labeling
📖 References
- Changelog
- Custom Template Guide
- Frontend based on: https://github.com/pipipi-pikachu/PPTist
📬 Contact
For any issues, please contact the author:

Explore related projects
Loading…