ai-passage-creator  by yuyuanweb

AI article generator with multi-agent collaboration

Created 4 months ago
270 stars

Top 95.0% on SourcePulse

GitHubView on GitHub
Project Summary

AI 爆款文章创作器 is an AI-powered platform designed to automate the creation of engaging articles complete with relevant imagery. It targets developers seeking to build AI-driven content tools, enhance their portfolios with practical AI projects, or explore automated content generation. The primary benefit is a streamlined, end-to-end article creation workflow, offering both full automation and user-controlled human-in-the-loop collaboration, with built-in commercialization features.

How It Works

The project employs a multi-agent collaboration architecture orchestrated by Spring AI Alibaba's StateGraph. Five distinct agents handle sequential tasks: generating title options, creating an outline, writing the main content, analyzing image requirements, and finally, generating or selecting images and merging them with the text. This approach ensures specialized processing for each stage, leading to higher quality output. Image selection utilizes a strategy pattern, supporting multiple sources like Pexels, Mermaid, Iconify, Bing, and AI generation (Gemini), with an automatic fallback to Picsum to prevent interruptions. Real-time progress is communicated via Server-Sent Events (SSE).

Quick Start & Requirements

  • Primary Install/Run: Docker Compose is recommended (docker compose up -d --build). Manual setup involves initializing MySQL, configuring API keys (application-local.yml), starting the backend (mvn spring-boot:run), and then the frontend (npm run dev).
  • Prerequisites: JDK 21+, Node.js 18+, MySQL 8.0+, Redis 7.x, Docker 20.10+, Docker Compose v2+.
  • API Keys: Required for DashScope (通义千问) and Pexels. Optional for Stripe, Tencent COS, and Gemini AI.
  • Links:

Highlighted Details

  • Multi-Agent Orchestration: Five specialized agents (Title, Outline, Content, Image Analysis, Image Merge) managed by Spring AI's StateGraph.
  • Diverse Image Strategies: Supports 6 image sourcing methods (Pexels, Mermaid, Iconify, Bing, Gemini AI, SVG Diagram) with automatic Picsum fallback.
  • Real-time Streaming: Utilizes SSE for live updates on outline/content generation and status changes.
  • Human-in-the-Loop: User intervention points for title selection, outline editing, and content refinement.
  • Commercial Features: Integrated VIP membership system with Stripe payment processing.
  • One-Click Deployment: Docker Compose simplifies setup and deployment.

Maintenance & Community

No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap were found in the provided README.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: The MIT license generally permits commercial use and integration into closed-source projects.

Limitations & Caveats

Core functionality relies heavily on obtaining and configuring external API keys for LLM services (DashScope) and image providers (Pexels). Advanced features such as AI-generated images (via Gemini) and the Stripe payment system are designated as VIP features, implying restricted access for non-paying users. The system is primarily demonstrated with a Java backend, though Go and Python versions are mentioned.

Health Check
Last Commit

4 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
21 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.