AI Setup & Configuration
ThreadTrak offers three AI analysis modes. Choose based on your needs for accuracy, privacy, and cost. All modes are bring-your-own-key (BYOK) β we never charge for AI.
Quick Reference
ANALYSIS MODES
- Pattern Matching β Free, instant, offline
- LM Studio β Free, local, smarter
- Cloud AI β OpenAI, most accurate, BYOK
WHAT AI DETECTS
- Intent: Question, Bug, Feature Request, Praise...
- Sentiment: Positive, Neutral, Negative
- Urgency: Low, Medium, High
- Priority Score: 0-100
WHERE TO CONFIGURE
Settings β Analysis Mode β Choose your mode
For OpenAI: Add API key in AI Analysis section
For LM Studio: Enter server URL, select model
Choose Your Analysis Mode
Pattern Matching
Built-in regex-based detection. Works offline, instant results. Detects questions, bugs, praise, complaints, and urgency markers.
Best for: Quick triage, basic classification
LM Studio
Connect to your local LLM server. Runs Llama, Mistral, or Phi models on your own hardware. Full privacy, no API costs.
Best for: Privacy-conscious users with decent hardware
Cloud AI (OpenAI)
Bring your own OpenAI API key. Pay OpenAI directly β no monthly fees to us. GPT-4o recommended for best results.
Best for: Maximum accuracy and speed
Mode Comparison
| Feature | Pattern Matching | LM Studio | Cloud AI |
|---|---|---|---|
| Type | Built-in | Local LLM | Cloud API |
| Speed | Instant | 5-10s | Fast |
| Cost | Free | Free (local) | ~$0.001-0.01/reply |
| Privacy | 100% local | 100% local | Cloud |
| Intent Categories | 5 | 19 | 19 |
| Reply Suggestions | No | Yes | Yes |
Setup Instructions
Pattern Matching Setup
No setup required! Pattern Matching is enabled by default and works immediately.
- Open ThreadTrak on X.com
- Go to Settings (gear icon) β Analysis Mode
- Select "Pattern Matching" (should be selected by default)
- Open any thread β badges will appear automatically
Cloud AI (OpenAI) Setup
- Go to platform.openai.com/api-keys and create a new API key.
- Open ThreadTrak on X.com and click the Settings (gear icon).
- Navigate to Analysis Mode β select "Cloud AI".
- Go to AI Analysis section.
- Paste your key (starts with
sk-...) into the API Key field. - Select your preferred model:
- GPT-4o β Best accuracy, ~$0.005/reply
- GPT-4o-mini β Good balance, ~$0.001/reply
- Click "Save". Your key is stored locally in your browser.
- Reload the thread to see AI analysis badges.
LM Studio Setup
- Open LM Studio and download a model. Recommended:
- Llama 3.2 3B β Fast, good for most hardware
- Mistral 7B β Better quality, needs 8GB+ RAM
- Phi-3 Mini β Lightweight, good balance
- Go to the Local Server tab (looks like βοΈ).
- Load your model and click Start Server.
- Ensure the port is
1234(default). - In ThreadTrak, go to Settings β Analysis Mode β select "LM Studio".
- Go to LM Studio section.
- Server URL should be:
http://localhost:1234 - Click Test Connection to verify.
- Reload the thread to see AI analysis badges.
What AI Detects
Intent Categories (19 total)
Plus: Support Request, Constructive Feedback, Agreement, Disagreement, Opinion, Advice, Joke, Sarcasm, Trolling, and more.
Other Signals
Sentiment
Urgency
Priority Score
0-100 score based on intent, sentiment, urgency, and user status. High scores appear at top in Priority View.
AI Reply Suggestions
PROIn Focus Mode, click "Suggest Reply" to generate response options based on context.
How It Works
- Select a reply in Focus Mode
- Click "Suggest Reply" or the AI generate button
- AI considers the reply, parent tweet, and your tone
- Generates 1-3 suggestions
- Click to insert, edit as needed, then send
Available Tones
Troubleshooting
"AI analysis not running"
Check: Settings β Analysis Mode β is a mode selected? For Cloud AI: Is your API key entered in AI Analysis section? Try reloading the thread.
"Pattern Matching badges not showing"
Check: Settings β AI Analysis β "Show badges in Tree" is enabled. Also: The reply text may not match any detection patterns.
"LM Studio not connecting"
1. Is LM Studio open with the server running?
2. Check the port (default 1234)
3. Enable CORS in LM Studio server settings
4. Make sure a model is loaded
5. Use "Test Connection" in ThreadTrak settings
"OpenAI quota exceeded"
Check your billing status at platform.openai.com. Even with a valid key, you need credits in your account. Add payment method if needed.
"Analysis is slow"
LM Studio processes ~5-10 seconds per batch. For threads with 50+ replies, consider using Pattern Matching or Cloud AI for speed.
Free vs. Pro AI Features
| Capability | Free | Pro |
|---|---|---|
| Pattern Matching | β | β |
| Pattern Matching badges | β | β |
| LM Studio integration | β | β |
| Cloud AI (OpenAI) | β | β |
| AI reply suggestions | β | β |
| Priority scoring | Basic | AI-enhanced |
| Intent detection | Patterns only | AI + Patterns |