/triage endpoint runs machine learning models to classify support tickets by category and priority, providing confidence scores for each prediction.
Endpoint
Request Body
The subject line of the support ticket to classify
The full body/description of the support ticket to classify
Response
The predicted category for the ticket (e.g., “Billing”, “Technical Support”, “Account Management”)
The predicted priority level for the ticket (e.g., “High”, “Medium”, “Low”)
Confidence scores for each prediction
Example Request
Example Response
Use Cases
The triage endpoint is useful for:- Automatic ticket routing - Route tickets to the appropriate support team based on category
- Priority queuing - Prioritize urgent tickets in the support queue
- SLA management - Set response time expectations based on priority predictions
- Analytics - Track common categories and priorities across support tickets
Model Training
The ML models used by this endpoint can be trained using the CLI:Trained model artifacts are stored in the
artifacts/ directory and automatically loaded when the API starts.Confidence Scores
Confidence scores indicate how certain the model is about its predictions:- > 0.8 - High confidence, safe to use for automated routing
- 0.6 - 0.8 - Medium confidence, consider human review
- < 0.6 - Low confidence, recommend manual classification