/train command lets you teach your bot from past ticket conversations. It analyzes resolved tickets and extracts question-answer pairs that are added to your Knowledge Base.
The
/train command requires a Pro or Enterprise plan.What It Does
The/train command:
- Scans your resolved tickets from the past X days
- Uses AI to identify question-answer pairs
- Extracts the best Q&A from each conversation
- Adds them to your Knowledge Base automatically
Running /train
Basic Usage
In any channel where your bot is active, run:Specifying Days
To analyze a different time period:| Parameter | Range | Default |
|---|---|---|
| days | 7-365 | 90 |
Requirements
To run/train, you need:
- Administrator permission in the server
- Knowledge Base enabled in your dashboard
- At least one resolved ticket in the time period
The Training Process
After running/train, you’ll see:
1
Counting Tickets
The bot counts how many tickets are available to analyze.
2
Analyzing Conversations
AI reads through each ticket conversation, looking for:
- Clear questions from users
- Helpful answers from staff
- Complete resolution patterns
3
Extracting Q&A Pairs
The AI extracts question-answer pairs that would help future users.
4
Adding to Knowledge Base
Extracted Q&A pairs are stored and used for future suggestions.
Progress Updates
While training, you’ll see updates like:Cancelling Training
Click the Cancel Training button to stop training early. Any Q&A pairs already extracted will be kept.First-Time Setup
AI Consent
The first time you run/train, you’ll need to accept AI data processing terms.
Why is this required?
- Ticket conversations are sent to AI for analysis
- This may include user messages and staff responses
- You’re authorizing this processing
Consent Prompt
You’ll see:What Makes Good Training Data
The AI looks for tickets that have:Clear Questions
Helpful Answers
Complete Resolution
Tickets that were marked as resolved or closed with a solution.What Gets Skipped
The AI skips tickets that:- Were closed without a real solution
- Had mostly back-and-forth troubleshooting
- Contained only small talk or greetings
- Were spam or test tickets
After Training
Viewing Results
After training completes, you’ll see:Using Trained Knowledge
Trained Q&A pairs are automatically used when:- Users open new tickets with similar questions
- The Knowledge Base searches for answers
- No better documentation source exists
Retraining
You can run/train again to:
- Capture newer ticket conversations
- Learn from recently resolved issues
- Update knowledge after your team’s processes change
There’s a cooldown between training runs to prevent overuse. You’ll see how long to wait if you try to train too soon.
Best Practices
Train After Major Updates
Run/train after:
- Launching new features
- Resolving new types of issues
- Your team learns new troubleshooting steps
Combine with Documentation
/train works best alongside documentation sources:
- Documentation provides official information
- Trained Q&A provides real-world answers
- Together they cover more questions
Regular Training Schedule
Consider training:- Monthly for active support teams
- After resolving 50+ new tickets
- When you notice AI missing common questions
Review the Results
Check your Knowledge Base after training:- Look at the extracted Q&A pairs
- Verify they’re accurate
- Delete any that aren’t helpful
Troubleshooting
”No Tickets Found”
This means:- No resolved tickets in the time period
- Tickets don’t have enough content
- Knowledge Base isn’t enabled
”Training Stalled”
If training shows no progress for 5+ minutes:- The process may have encountered an error
- Try cancelling and running again
- Check for bot connectivity issues
”Consent Required” for Non-Owner
Only the bot owner can accept AI consent. Solution: Ask the bot owner to run/train first and accept consent.
Low Q&A Extraction
If few Q&A pairs are extracted:- Tickets may not have clear question-answer patterns
- Staff responses may be too brief
- Try a longer time period (more tickets)
Need Help?
Get instant support via private DM