Automatically classify support tickets using AI (OpenAI or Anthropic). The plugin assigns priority, topic/category, and fills custom form fields based on ticket content.
- Automatic classification on ticket creation
- Reclassification when customers send new messages (optional)
- Manual classification via "Classify with AI" button in ticket view
- Multiple AI providers: OpenAI (GPT-4o, GPT-4o-mini, etc.) and Anthropic (Claude)
- Custom field support: Text, memo, choice, and boolean fields
- Configurable options: Choose which fields the AI can modify
- osTicket 1.18+
- PHP 8.3+ with cURL extension
- OpenAI or Anthropic API key
- Download or clone this repository
- Copy the
ai-ticket-classifierfolder to<osticket>/include/plugins/ - Go to Admin Panel > Manage > Plugins
- Click Add New Plugin
- Select AI Ticket Classifier and click Install
- Click on the plugin name to configure
| Setting | Description |
|---|---|
| AI Provider | Choose between OpenAI or Anthropic |
| API Key | Your API key for the selected provider |
| Model | Model to use (e.g., gpt-4o-mini, claude-3-haiku-20240307) |
| Setting | Description |
|---|---|
| Classify New Tickets | Automatically classify tickets when created |
| Reclassify on Customer Reply | Reclassify when customer sends a new message |
| Setting | Description |
|---|---|
| Set Priority | Allow AI to set ticket priority |
| Set Topic/Category | Allow AI to set ticket topic |
Select which custom fields from the Ticket Details form the AI should fill. Supported field types:
- Text
- Memo (long text)
- Choices (dropdown/select)
- Boolean (checkbox)
| Setting | Description |
|---|---|
| On API Error | Log to System Logs or Silent |
| Debug Logging | Enable verbose logging (disable in production) |
| Setting | Description |
|---|---|
| Temperature | AI randomness (0-2). Note: GPT-5 and o-series only support 1 |
| API Timeout | Maximum seconds to wait for AI response |
When enabled, tickets are automatically classified:
- On creation (if "Classify New Tickets" is enabled)
- On customer reply (if "Reclassify on Customer Reply" is enabled)
- Open a ticket in the Staff Panel
- Click the More dropdown menu
- Select Classify with AI
- The page will reload with updated classification
gpt-4o-mini- Fast and cost-effective (recommended)gpt-4o- More capable, higher cost
claude-3-haiku-20240307- Fast and cost-effectiveclaude-3-5-sonnet-20241022- More capable
- Check that the API key is correct
- Enable Debug Logging in plugin settings
- Check Admin Panel > Dashboard > System Logs for errors
- Ensure the field is selected in AI-Managed Custom Fields
- Check that the field type is supported (text, memo, choices, bool)
- Enable debug logging to see detailed information
- 401 Unauthorized: Invalid API key
- 429 Too Many Requests: Rate limit exceeded
- 500/503: Provider service issues
This plugin works great in combination with AI Response Generator - automatically generate professional responses to tickets using AI. Together they provide a complete AI-powered ticket handling solution:
- AI Ticket Classifier - Automatically categorizes and prioritizes incoming tickets
- AI Response Generator - Suggests or generates responses for agents
MIT License
For issues and feature requests, please use the GitHub issue tracker.