How immanuel-khang/personalized-chatbot-for-auto-request-response-supporting-automobile-garage-management works
This is a garage-management chatbot for automobile sales and after-sales support. A customer enters a message through the console; the LangGraph harness routes it to sales advice, discount review, contract guidance, or maintenance support, then returns the assistant response. Sales and maintenance can invoke tools, which access in-memory car, discount, and maintenance repositories. The graph also checkpoints conversation state by session thread ID. The README is high-level; the detailed workflow and integrations shown here are supported by the sampled source files.
Main entry points: agent_nodes.py Tool Executor · db_repositories.py In-Memory Repositories · graph_builder.py Graph Harness · main.py Chat Console
Components 17
Conversation Runtime
- Chat Console
main.py - Graph Harness
graph_builder.py
Service Stages
- Stage Router
agent_nodes.py - Sales Advice
agent_nodes.py - Discount Review
agent_nodes.py - Contract Guidance
agent_nodes.py - Maintenance Advice
agent_nodes.py
Tools and Data Access
- Tool Executor
agent_nodes.py - Search Cars
tools.py - Get Car Price
tools.py - Request Discount
tools.py - Lookup Maintenance
tools.py - In-Memory Repositories
db_repositories.py
Session State
- Harness State
harness_state.py - Memory Checkpointer
graph_builder.py
Other components
- Customer
- OpenAI Chat Model
Connections 24
- Customer → Chat Console: sends message
- Chat Console → Graph Harness: builds and invokes
- Graph Harness → Stage Router: starts workflow
- Stage Router → Sales Advice: routes by stage
- Stage Router → Discount Review: routes by stage
- Stage Router → Contract Guidance: routes by stage
- Stage Router → Maintenance Advice: routes by stage
- Sales Advice → OpenAI Chat Model: requests response
- Maintenance Advice → OpenAI Chat Model: requests response
- Discount Review → OpenAI Chat Model: requests response
- Contract Guidance → OpenAI Chat Model: requests response
- Sales Advice → Tool Executor: dispatches tool calls
- Maintenance Advice → Tool Executor: dispatches tool calls
- Tool Executor → Search Cars: executes selected tool
- Tool Executor → Get Car Price: executes selected tool
- Tool Executor → Request Discount: executes selected tool
- Tool Executor → Lookup Maintenance: executes selected tool
- Search Cars → In-Memory Repositories: searches cars
- Get Car Price → In-Memory Repositories: looks up car
- Request Discount → In-Memory Repositories: reads car; creates request
- Lookup Maintenance → In-Memory Repositories: reads maintenance data
- Discount Review → In-Memory Repositories: reads latest request
- Graph Harness → Memory Checkpointer: saves session state
- Graph Harness → Harness State: passes workflow state