How chaitanya-rajendra/intelligent-support-ticket works
This is a support-ticket triage API: incoming tickets are classified by an LLM, assigned a confidence-based outcome, and persisted for retrieval, metrics, and human review. The README describes n8n as the intake and notification orchestrator, with auto-response email and Slack or human-review routing; those integrations are documented capabilities, not shown in the sampled Python implementation. The graph includes the prompt and workflow files from the tree; their contents were not sampled.
Main entry points: main.py Ticket API · ticket triage workflow .JSON n8n workflow · classifier.py Ticket classifier · database.py Database sessions
Components 13
Intake and routing
- n8n workflow
ticket triage workflow .JSON - Auto-response email
- Slack support channel
Triage API
- Ticket API
main.py - API schemas
schemas.py
LLM classification
- Ticket classifier
classifier.py - Classification prompt
classification prompt.txt - OpenAI API
Ticket persistence
- Ticket model
models.py - Database sessions
database.py - PostgreSQL
Other components
- Ticket sources
- Human reviewer
Connections 15
- Ticket sources → n8n workflow: sends tickets
README.md - n8n workflow → Ticket API: submits tickets
README.md - Ticket API → API schemas: validates and serializes
main.py - Ticket API → Ticket classifier: classifies text
main.py - Ticket classifier → Classification prompt: loads prompt
classifier.py - Ticket classifier → OpenAI API: requests classification
classifier.py - Ticket API → Ticket model: creates and queries
main.py - Ticket model → Database sessions: uses model base
models.py - Ticket API → Database sessions: reads and writes
main.py - Database sessions → PostgreSQL: connects to
README.md - Ticket API → n8n workflow: returns outcome
README.md - n8n workflow → Auto-response email: sends response
README.md - n8n workflow → Slack support channel: notifies support
README.md - n8n workflow → Human reviewer: queues review
README.md - Human reviewer → Ticket API: marks reviewed
README.md