How jaswanthyamana/food-butler works
Food Butler is a conversational food-ordering platform with customer and administrative interfaces, a Gemini-powered agent, a FastAPI service, and PostgreSQL persistence. The principal flow is customer request → AI interpretation and tool invocation → backend menu/cart/checkout operations → order and delivery tracking. The graph reflects documented capabilities and source-index references; frontend internals and several unsampled AI/backend implementations are represented only at directory or subsystem level, so uncertain links are omitted.
Main entry points: main.py FastAPI entry · crud.py Domain operations · index.html Customer app · main_orchestrator.py AI orchestrator
Components 22
User interfaces
- Customer app
frontend/index.html - Admin panels
frontend/admin.html - Restaurant panel
frontend/restaurant_admin.html
AI ordering
- AI orchestrator
ai_agent/main_orchestrator.py - Ordering tools
ai_agent/tools.py - Backend API clients
ai_agent/api_clients.py - Recommendations
ai_agent
Backend domains
- FastAPI entry
backend/app/main.py - Authentication
backend/app/routers/auth.py - Restaurants and menu
backend/app/routers/menu.py - Cart and checkout
backend/app/routers/cart.py - Orders and history
backend/app/routers/orders.py - Delivery tracking
backend/app/routers/delivery.py - Inventory
backend/app/routers/inventory.py - Administration
backend/app/routers/admin.py - Customer profiles
backend/app/routers/customers.py - Payments
backend/app/routers/payments.py
Persistence
- Domain operations
backend/app/crud.py - Domain models
backend/app/models.py - Database sessions
backend/app/database.py - PostgreSQL
Other components
- Customer
Connections 25
- Customer → Customer app: uses
README.md - Customer app → AI orchestrator: sends requests
README.md - Customer app → FastAPI entry: calls REST API
README.md - Admin panels → FastAPI entry: manages platform
README.md - Restaurant panel → FastAPI entry: manages restaurant
README.md - AI orchestrator → Ordering tools: invokes tools
ai_agent/main_orchestrator.py - Ordering tools → Backend API clients: calls clients
ai_agent/tools.py - Backend API clients → FastAPI entry: calls backend
ai_agent/api_clients.py - AI orchestrator → Recommendations: offers suggestions
README.md - FastAPI entry → Authentication: registers routes
backend/app/main.py - FastAPI entry → Restaurants and menu: registers routes
backend/app/main.py - FastAPI entry → Cart and checkout: registers routes
backend/app/main.py - FastAPI entry → Orders and history: registers routes
backend/app/main.py - FastAPI entry → Delivery tracking: registers routes
backend/app/main.py - FastAPI entry → Inventory: registers routes
backend/app/main.py - FastAPI entry → Administration: registers routes
backend/app/main.py - FastAPI entry → Customer profiles: registers routes
backend/app/main.py - FastAPI entry → Payments: registers routes
backend/app/main.py - Authentication → Domain operations: looks up users
backend/app/routers/auth.py - Authentication → Database sessions: gets sessions
backend/app/routers/auth.py - Administration → Domain operations: manages records
backend/app/routers/admin.py - Delivery tracking → Domain operations: updates tracking
backend/app/routers/delivery.py - Domain operations → Domain models: queries records
backend/app/crud.py - Database sessions → PostgreSQL: connects
backend/app/database.py - Domain models → Database sessions: uses base
backend/app/models.py