# AI智能电商运营工作台 **Repository Path**: parsecc/customer-service-intelligence ## Basic Information - **Project Name**: AI智能电商运营工作台 - **Description**: 基于 Spring Boot + Vue.js + Spring AI 的客户服务智能系统,提供 AI 智能客服、数据分析、知识库管理和任务工单等功能。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 8 - **Forks**: 5 - **Created**: 2026-05-12 - **Last Updated**: 2026-08-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: SpringAI, Vue ## README # Customer Service Intelligence System A customer service intelligence system based on Spring Boot + Vue.js + Spring AI, providing AI intelligent customer service, data analytics, knowledge base management, and task ticketing functionalities. ## System Features ### 🤖 AI Intelligent Customer Service - AI Agent intelligent dialogue with ReAct mode support - Intelligent tool invocation: order inquiry, inventory query, complaint handling, task creation, etc. - Anomaly trend detection and automatic alerting - WebSocket real-time status push - RAG vector knowledge base retrieval ### 📊 Data Analytics - Dashboard statistics - Sales/inventory/complaint report generation - Trend chart visualization - SQL query analysis (with security protection) - Chart configuration generation (ECharts) ### 📚 Knowledge Base Management - Document creation and categorization - Vector indexing and retrieval - Bulk knowledge base management - File parsing and upload ### ✅ Task Ticketing - Ticket/task creation and assignment - Status flow management - Overdue reminder notifications - Priority setting ### 🔔 Notification System - In-system notification push - Email notifications - WebSocket real-time push - Unread message statistics ### 🛡️ System Security - JWT authentication and authorization - RBAC role-based permission control - API rate limiting protection - Audit log recording - Data masking ## Technology Architecture ### Backend - Spring Boot 3.x - Spring AI (AI Agent) - Spring Security + JWT - PostgreSQL + pgvector (vector database) - Redis (caching/rate limiting) - RabbitMQ (message queue) - Java 17 ### Frontend - Vue 3 + Composition API - Vite build - Pinia state management - Vue Router - Axios - ECharts ## Quick Start ### Environment Requirements - JDK 17+ - Node.js 20+ - PostgreSQL 15+ (pgvector extension required) - Redis 7+ - Maven 3.9+ ### Configuration Steps 1. **Clone the Project** ```bash git clone https://gitee.com/parsecc/customer-service-intelligence.git cd customer-service-intelligence ``` 2. **Configure Database** ```bash # Create database createdb aiops_db # Execute SQL scripts psql -d aiops_db -f backend/src/main/resources/db/schema.sql psql -d aiops_db -f backend/src/main/resources/db/data.sql # (Optional) Upgrade vector dimension psql -d aiops_db -f backend/src/main/resources/db/upgrade_vectors_1024.sql ``` 3. **Configure Backend** ```bash cp backend/.env.example backend/.env # Edit application.yml or application-dev.yml to configure database, Redis, etc. ``` 4. **Start Backend** ```bash cd backend mvn spring-boot:run ``` 5. **Start Frontend** ```bash cd backend/frontend npm install npm run dev ``` 6. **Access the System** - Frontend: http://localhost:5173 - Backend API: http://localhost:8080 ### Docker Deployment ```bash # Build mvn clean package -DskipTests # Build and start containers docker-compose up -d ``` ## Default Accounts | Role | Username | Password | |------|----------|----------| | Admin | admin | admin123 | | Operator | operator | operator123 | ## API Documentation After startup, access Swagger UI at: `http://localhost:8080/swagger-ui.html` ## Directory Structure ``` customer-service-intelligence/ ├── backend/ │ ├── src/main/java/com/aiops/ │ │ ├── agent/ # AI Agent core │ │ ├── config/ # Configuration classes │ │ ├── controller/ # Controllers │ │ ├── dto/ # Data transfer objects │ │ ├── entity/ # Entity classes │ │ ├── enums/ # Enums │ │ ├── exception/ # Exception handling │ │ ├── init/ # Data initialization │ │ ├── repository/ # Data access │ │ ├── scheduled/ # Scheduled tasks │ │ ├── security/ # Security authentication │ │ └── service/ # Business services │ ├── src/main/resources/ │ │ └── db/ # Database scripts │ └── frontend/ # Vue.js frontend ├── docker-compose.yml └── LICENSE ``` ## Core Module Details ### AI Agent Tools - `queryOrder` - Order inquiry - `queryInventory` - Inventory query - `queryComplaints` - Complaint query - `createTicket` - Create ticket - `getDatabaseSchema` - Get table schema - `executeAnalysisSQL` - SQL analysis - `generateChart` - Generate chart - `saveReport` - Save report - `searchKnowledge` - Knowledge retrieval ### Scheduled Tasks - Ticket expiration reminder (every 5 minutes) - Daily report generation (18:00) - Weekly report generation (every Monday at 2:00) - Monthly report generation (1st of every month at 3:00) - Low inventory alert (every hour) - Session cleanup (every Sunday at 4:00) ## License MIT License