# πŸš€ WidgeTDC PowerPoint Integration Package ## πŸ“¦ Hvad er dette? Dette er den **komplette integration pakke** til at opgradere WidgeTDC med world-class PowerPoint generation capabilities! Pakken integrerer: - βœ… **PPTAgent** (ICIP-CAS) - 2-stage generation + PPTEval framework - βœ… **MultiAgentPPT** - Multi-agent parallel processing - βœ… **ChatPPT-MCP** - Enterprise MCP server - βœ… **Zenodo10K** - 10,000+ PPT templates dataset ## πŸ“ Package Indhold ``` ppt-integration-package/ β”œβ”€β”€ README.md # Dette dokument β”œβ”€β”€ SETUP.md # Detaljeret setup guide β”œβ”€β”€ setup-scripts/ # Automatiske setup scripts β”‚ β”œβ”€β”€ 01-install-dependencies.ps1 # Installer dependencies β”‚ β”œβ”€β”€ 02-setup-pptagent.ps1 # Setup PPTAgent Docker β”‚ β”œβ”€β”€ 03-setup-multiagent.ps1 # Setup MultiAgentPPT β”‚ β”œβ”€β”€ 04-download-datasets.ps1 # Download Zenodo10K β”‚ └── 05-configure-services.ps1 # Configure alle services β”œβ”€β”€ backend/ # Backend services β”‚ β”œβ”€β”€ agents/ # Multi-agent system β”‚ β”‚ β”œβ”€β”€ multi-agent-orchestrator.ts β”‚ β”‚ β”œβ”€β”€ outline-agent.ts β”‚ β”‚ β”œβ”€β”€ research-agent.ts β”‚ β”‚ β”œβ”€β”€ ppt-gen-agent.ts β”‚ β”‚ └── quality-checker-agent.ts β”‚ β”œβ”€β”€ services/ # External services β”‚ β”‚ β”œβ”€β”€ pptagent-service.ts β”‚ β”‚ β”œβ”€β”€ chatppt-mcp-service.ts β”‚ β”‚ └── template-service.ts β”‚ β”œβ”€β”€ routes/ # API routes β”‚ β”‚ β”œβ”€β”€ presentation.ts β”‚ β”‚ └── templates.ts β”‚ └── mcp/ # MCP servers β”‚ β”œβ”€β”€ powerpoint-server.ts β”‚ └── knowledge-base.ts β”œβ”€β”€ widgets/ # Upgraded widgets β”‚ β”œβ”€β”€ autonomous-powerpoint-master-v2.tsx β”‚ β”œβ”€β”€ autonomous-word-architect-v2.tsx β”‚ └── autonomous-excel-analyzer-v2.tsx β”œβ”€β”€ docker/ # Docker configuration β”‚ β”œβ”€β”€ docker-compose.yml β”‚ β”œβ”€β”€ pptagent/ β”‚ β”‚ └── Dockerfile β”‚ └── multiagent/ β”‚ └── Dockerfile β”œβ”€β”€ config/ # Configuration files β”‚ β”œβ”€β”€ env.template β”‚ β”œβ”€β”€ pptagent.config.json β”‚ β”œβ”€β”€ multiagent.config.json β”‚ └── chatppt-mcp.config.json └── docs/ # Documentation β”œβ”€β”€ ARCHITECTURE.md β”œβ”€β”€ API.md └── TROUBLESHOOTING.md ``` ## πŸš€ Quick Start ### 1. Setup Alt (Automatisk) ```powershell cd C:\Users\claus\Projects\WidgeTDC\ppt-integration-package .\setup-scripts\RUN-ALL.ps1 ``` Dette kΓΈrer alle setup scripts i rΓ¦kkefΓΈlge og fΓ₯r alt til at virke! ### 2. Eller Setup Manuel ```powershell # Step 1: Install dependencies .\setup-scripts\01-install-dependencies.ps1 # Step 2: Setup PPTAgent .\setup-scripts\02-setup-pptagent.ps1 # Step 3: Setup MultiAgentPPT .\setup-scripts\03-setup-multiagent.ps1 # Step 4: Download datasets .\setup-scripts\04-download-datasets.ps1 # Step 5: Configure services .\setup-scripts\05-configure-services.ps1 ``` ### 3. Start Services ```powershell # Start all Docker services cd docker docker-compose up -d # Check status docker-compose ps ``` ### 4. Integrer i WidgeTDC ```powershell # Copy backend files cp -r backend/* C:\Users\claus\Projects\WidgeTDC\backend\ # Copy widgets cp widgets\*.tsx C:\Users\claus\Projects\WidgeTDC\nEWwIDGETS\ # Update configuration cp config\env.template C:\Users\claus\Projects\WidgeTDC\.env ``` ## 🎯 Features ### PPTAgent Integration - 2-stage generation (Analysis β†’ Generation) - PPTEval quality metrics - Reference learning from templates - Python-pptx code generation ### MultiAgentPPT System - Parallel research agents (3x concurrent) - Real-time streaming updates - Quality checking with retry loops - MCP knowledge base integration ### ChatPPT-MCP - 18 professional APIs - Online editing capabilities - Template application - Color scheme changes ### Zenodo10K Dataset - 10,000+ professional PPT templates - Pattern learning - Layout analysis - Style extraction ## πŸ“Š Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ WidgeTDC Frontend (React 19) β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ PowerPoint Master Widget v2 β”‚ β”‚ β”‚ β”‚ β€’ Multi-agent orchestration β”‚ β”‚ β”‚ β”‚ β€’ Real-time streaming β”‚ β”‚ β”‚ β”‚ β€’ Quality metrics display β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ WebSocket / SSE β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ WidgeTDC Backend (Node.js) β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Multi-Agent Orchestrator β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β–Ό β–Ό β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚PPTAgent β”‚ β”‚MultiAgentβ”‚ β”‚ChatPPT β”‚ β”‚Docker β”‚ β”‚System β”‚ β”‚MCP β”‚ β”‚:9297 β”‚ β”‚:10001 β”‚ β”‚:8088 β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ## πŸ”§ Configuration Alle services konfigureres via `.env`: ```env # PPTAgent PPTAGENT_URL=http://localhost:9297 OPENAI_API_KEY=your_key_here # MultiAgentPPT MULTIAGENT_OUTLINE_URL=http://localhost:10001 MULTIAGENT_SLIDES_URL=http://localhost:10011 # ChatPPT-MCP CHATPPT_API_KEY=your_key_here CHATPPT_API_URL=https://api.yoo-ai.com/mcp # Database DATABASE_URL=postgresql://postgres:welcome@localhost:5432/widgetdc ``` ## πŸ“š Documentation - **SETUP.md** - Detaljeret setup instruktioner - **ARCHITECTURE.md** - System arkitektur - **API.md** - API endpoints reference - **TROUBLESHOOTING.md** - Fejlfinding guide ## πŸ› Troubleshooting ### Port conflicts ```powershell # Check what's using ports netstat -ano | findstr "9297" netstat -ano | findstr "10001" # Kill process taskkill /PID /F ``` ### Docker issues ```powershell # Restart Docker Desktop Restart-Service docker # Rebuild containers docker-compose down docker-compose up --build -d ``` ### Service not responding ```powershell # Check logs docker-compose logs pptagent docker-compose logs multiagent # Check health curl http://localhost:9297/health ``` ## πŸŽ“ Learn More - [PPTAgent GitHub](https://github.com/icip-cas/PPTAgent) - [MultiAgentPPT GitHub](https://github.com/johnson7788/MultiAgentPPT) - [ChatPPT-MCP GitHub](https://github.com/YOOTeam/ChatPPT-MCP) - [Zenodo10K Dataset](https://huggingface.co/datasets/Forceless/Zenodo10K) ## πŸ’ͺ Support For issues eller spΓΈrgsmΓ₯l: 1. Check **TROUBLESHOOTING.md** 2. Review logs: `docker-compose logs` 3. Kontakt CLAK via The Synapse Protocol --- **Status:** βœ… Production Ready **Version:** 2.0.0 **Last Updated:** December 2024 **License:** MIT