MTS AI Case Assistant is a SuiteCRM plugin designed to automate case handling workflows using AI technology. The plugin helps businesses optimize customer support processes, reduce response times, and improve satisfaction.
Installation Guide
Install Guide - MTS AI Case Assistant
System Requirements
- SuiteCRM 8.x (Cloud or On-premise)
- PHP 8.1+
- MySQL 5.7+ or MariaDB 10.3+
- Internet - To call AI APIs (unless using Ollama local)
Installation
Step 1: Upload Module
- Login to SuiteCRM with Admin rights
- Go to Admin > Module Loader
- Click Choose File and select
MTS_AI_Case_Assistant_Yearly_1.0.0.zip - Click Upload
- Click Install
Step 2: Run Repair
After installation completes:
- Go to Admin > Repair
- Run Quick Repair and Rebuild
- Wait for completion (no need to clear cache manually)
Step 3: Verify Installation
Check:
- Go to Admin > Admin Panel
- See MTS AI Case Assistant section in module list
- See new modules:
- AI Providers
- AI Agents
- Routing Configs
- AI Action Logs
Initial Configuration
Step 1: Create AI Provider
- Go to AI Providers > Create Provider
- Fill in information:
| Field | Description | Example |
|---|---|---|
| Name | Provider name | OpenAI Production |
| Provider Type | AI type | OpenAI |
| API URL | Leave empty for default | (empty) |
| API Key | Key from OpenAI/Anthropic | sk-... |
| Default Model | Default model | gpt-4o |
| Active | Enable | ✓ |
- Click Save
Step 2: Create AI Agent
- Go to AI Agents > Create Agent
- Configure:
| Field | Value | Notes |
|---|---|---|
| Name | Classification Agent | |
| Provider | OpenAI Production | Select provider created above |
| Model Override | (empty) | Use provider default |
| System Prompt | See template below | Instructions for AI |
| Max Tokens | 200 | Enough for classification |
| Temperature | 0.1 | Low for consistent output |
| Purpose | Classify | |
| Active | ✓ |
System Prompt Template:
You are a support ticket classification expert.
Analyze the case content and return the user_id that should handle it.
- If "billing" or "invoice" in content → return billing user's id
- If "technical" or "error" in content → return technical user's id
- Otherwise → return default user id
Return ONLY the user_id, no explanation.
- Click Save
Step 3: Create Routing Config
- Go to Routing Configs > Create Config
- Configure:
| Field | Value |
|---|---|
| Name | Main Config |
| Applies To | Cases |
| Classify Agent | Classification Agent |
| Active | ✓ |
| Default User | User to receive unmatched cases |
Routing Map (JSON):
{
"billing": "user-id-billing",
"technical": "user-id-support",
"sales": "user-id-sales"
}
To get user ID: go to Users > open user > copy ID from URL.
- Click Save
Step 4: Configure Scheduler
To enable queue processor:
- Go to Admin > Schedulers
- Create new scheduler:
| Field | Value |
|---|---|
| Name | MTS Case Assistant Queue |
| Job | mts_ca_process_queue |
| Interval | Every 1 min |
| Status | Active |
| Next Run | (auto-calculated) |
- Click Save
Note: If job mts_ca_process_queue is not visible, run Repair > Repair and Rebuild again.
Verify Operation
Test Classification
- Create new case with "billing issue" in subject
- Wait 1-2 minutes (scheduler runs)
- Open case - see assigned_user_id is set
- Go to AI Action Logs - see new log
Test Reply Generation
- Open assigned case
- Click Generate Reply button (if available)
- View generated draft
Uninstall
If you need to remove the module:
- Go to Admin > Module Loader
- Select MTS AI Case Assistant
- Click Uninstall
- Confirm (you can choose to remove tables)
Troubleshooting
Scheduler Job Not Visible
Run Repair again:
Admin > Repair > Quick Repair and Rebuild
AI Not Classifying
Check: 1. Is Provider Active? 2. Is API Key correct? 3. Is Routing Map valid JSON? 4. Check logs in AI Action Logs
Case Not Assigned
- Check Scheduler is running
- Check log in SuiteCRM
sugarcrm.log
Contact
- Website: mientrungsoft.com
- Email: anhnhatuit@gmail.com
- WhatsApp: +84973131884