How eswarsainathreddy/ai_assisted_tickt_management_system works
This is a Streamlit/FastAPI ticket-resolution app. The main workflow is user sign-in, ticket creation or agent execution, LangGraph classification and response drafting, then human review/resumption or resolution; ticket and thread state is stored in PostgreSQL. The README also describes webhook ingestion, RAG knowledge retrieval, observability, and an operations dashboard. Those documented capabilities are included, but unsampled implementation details and their wiring remain unverified.
Main entry points: database.py PostgreSQL access · ui_utils.py UI API client · nodes.py Agent stages · main.py API application
Components 25
Streamlit interface
- Ticket pages
pages - UI API client
src/ui_utils.py
FastAPI services
- Authentication
src/routes/auth.py - Ticket API
src/routes/tickets.py - Agent API
src/routes/agent.py - Thread API
src/routes/threads.py - API application
src/main.py - Password hashing
src/utils/hashing.py - JWT handling
src/utils/jwt_handler.py
Agent workflow
- Workflow graph
src/graph.py - Agent stages
src/nodes.py - Incident state
src/state.py - LLM configuration
src/llms.py - Agent prompts
src/prompts.py - Knowledge retrieval
src/retrieval.py
Ticket data
- PostgreSQL access
src/database.py - User records
src/models/Users.py - Ticket records
src/models/Tickets.py - Workflow threads
src/models/Threads.py
Other components
- Support user
- Human reviewer
- SOPs and history
- Qdrant vector store
- LangSmith
- Ticketing platforms
Connections 35
- Support user → Ticket pages: uses
README.md - Ticket pages → UI API client: calls
pages/home.py - UI API client → Authentication: signs in
src/ui_utils.py - UI API client → Ticket API: manages tickets
src/ui_utils.py - UI API client → Agent API: runs or resumes
src/ui_utils.py - UI API client → Thread API: looks up thread
src/ui_utils.py - API application → Authentication: registers
src/main.py - API application → Ticket API: registers
src/main.py - API application → Agent API: registers
src/main.py - API application → Thread API: registers
src/main.py - Authentication → Password hashing: hashes passwords
src/routes/auth.py - Authentication → JWT handling: issues tokens
src/routes/auth.py - Authentication → PostgreSQL access: queries users
src/routes/auth.py - Ticket API → PostgreSQL access: reads and writes
src/routes/tickets.py - Ticket API → Ticket records: uses records
src/routes/tickets.py - Thread API → PostgreSQL access: reads and writes
src/routes/threads.py - Agent API → Workflow graph: invokes
src/routes/agent.py - Agent API → Thread API: updates over HTTP
src/routes/agent.py - Agent API → PostgreSQL access: uses session
src/routes/agent.py - Workflow graph → Agent stages: dispatches stages
src/graph.py - Workflow graph → Incident state: uses state
src/graph.py - Agent stages → Incident state: reads and updates
src/nodes.py - Agent stages → LLM configuration: uses models
src/nodes.py - Agent stages → Agent prompts: uses prompts
src/nodes.py - Agent stages → Knowledge retrieval: retrieves context
src/nodes.py - PostgreSQL access → User records: provides ORM base
src/models/Users.py - PostgreSQL access → Ticket records: provides ORM base
src/models/Tickets.py - PostgreSQL access → Workflow threads: provides ORM base
src/models/Threads.py - Ticket records → User records: references user
src/models/Tickets.py - Workflow threads → Ticket records: references ticket
src/models/Threads.py - Human reviewer → UI API client: reviews response
README.md - Ticketing platforms → API application: sends webhook
README.md - Knowledge retrieval → Qdrant vector store: searches knowledge
README.md - SOPs and history → Qdrant vector store: indexed for retrieval
README.md - Workflow graph → LangSmith: traced by
README.md