How shrutijagadale0725-rgb/escalai works
EscalAI takes a consumer complaint from intake through drafted correspondence, reply-window tracking, and—if needed—a filing decision and case file. Users interact through the web simulator or MCP tools; neither sends messages on the user's behalf. The service persists each case in SQLite and runs a resumable LangGraph workflow. The README documents the four escalation stages and simulator capabilities. Source excerpts show the main call paths; stage details are represented from the README, and the optional Groq integrations are shown separately.
Main entry points: graph.py Resumable workflow · service.py Case service · mcp_server.py MCP and HTTP tools · simulator.html Web simulator
Components 14
User interaction
- Web simulator
web/simulator.html - MCP and HTTP tools
escalation_agent/mcp_server.py
Intent and routing
- Intent extraction
escalation_agent/nlu.py - Groq NLU
Case workflow
- Case service
escalation_agent/service.py - Resumable workflow
escalation_agent/graph.py - SQLite checkpoints
escalation_agent/service.py
Drafting and policy
- Seller support
rules.yaml - Grievance officer
rules.yaml - Consumer helpline
rules.yaml - Consumer Commission
rules.yaml - Letters and case file
escalation_agent/drafting.py - Groq polishing
escalation_agent/drafting.py
Other components
- Consumer
Connections 15
- Consumer → Web simulator: uses
README.md - Web simulator → MCP and HTTP tools: calls tools
README.md - Web simulator → MCP and HTTP tools: posts text
escalation_agent/mcp_server.py - MCP and HTTP tools → Intent extraction: routes text
escalation_agent/mcp_server.py - Intent extraction → Groq NLU: tries extraction
escalation_agent/nlu.py - MCP and HTTP tools → Case service: invokes cases
escalation_agent/mcp_server.py - Case service → Resumable workflow: builds and invokes
escalation_agent/service.py - Case service → SQLite checkpoints: persists checkpoints
escalation_agent/service.py - Case service → Letters and case file: creates polisher
escalation_agent/service.py - Resumable workflow → Letters and case file: drafts letters
escalation_agent/graph.py - Resumable workflow → Seller support: follows stage rules
README.md - Resumable workflow → Grievance officer: follows stage rules
README.md - Resumable workflow → Consumer helpline: follows stage rules
README.md - Resumable workflow → Consumer Commission: gates filing
README.md - Letters and case file → Groq polishing: optionally polishes
escalation_agent/drafting.py