An intelligent customer support ticket processing system implementing four key agentic design patterns.
- Prompt Chaining: Preprocessing → Classification → Response Generation
- Routing: Technical, Billing, General, and Complaint branches
- Parallelization: Concurrent sentiment analysis, keyword extraction, priority scoring
- Reflection: Self-improvement with iterative refinement
- Install Python 3.8+
- Install dependencies:
pip install -r requirements.txt - Get API key from https://openrouter.ai/keys
- Add to
.env:OPENROUTER_API_KEY=your-key - Run:
python main.py
master: Stable production codedevelop: Active development branch
Processing Ticket #1 Original: hi my app keeps crashing...
PROMPT CHAINING Cleaned: Hello, my app keeps crashing... Category: technical
ROUTING Branch: TECHNICAL
PARALLELIZATION Priority: high
REFLECTION Iteration 1: Score 7 Iteration 2: Score 8 FINAL RESPONSE: [Improved response]