Backend for helpdesk application with AI-powered ticket processing.
POST /auth/register- User registrationPOST /auth/login- User loginGET /auth/me- Get current user (protected)
POST /tickets- Create ticket (protected)GET /tickets- List tickets (protected)GET /tickets/:id- Get ticket details (protected)PUT /tickets/:id- Update ticket status (protected)
GET /knowledge-base- Search articlesPOST /knowledge-base- Create article (admin only)
GET /ai-actions/:ticketId- Get AI processing history (protected)
GET /health- Server status
-
User Authentication
- Register/login to get JWT token
- Use token for protected routes
-
Ticket Creation
- User creates support ticket
- System triggers AI processing automatically
-
AI Processing Pipeline
- Summarizer: Creates ticket summary
- Classifier: Categorizes ticket type
- Sentiment: Analyzes user mood
- Researcher: Searches knowledge base
- Reply Writer: Generates response suggestions
-
Real-time Updates
- Socket.io provides live progress updates
- Users see AI processing status in real-time
-
Knowledge Base
- AI agents search existing articles
- Admins can add new knowledge articles
- Full-text search available
- Node.js, Express, MongoDB
- JWT authentication
- Socket.io for real-time updates
- Google Gemini AI integration
- Express validation middleware