How sutharatul/quick-call- works
This is a FastAPI-based AI support and concierge prototype. Users ask questions through the web interface; the API routes booking-related requests to verified reservation lookup and personalized answers, while general support requests retrieve approved FAQ knowledge and generate grounded responses. The app can use MongoDB or an in-memory/local FAQ fallback and calls OpenAI for embeddings and chat completions. The excerpts show these main paths, but not the complete route handlers or frontend behavior, so uncertain links are omitted.
Main entry points: app.py Chat routing · index.html Support interface · admin.html Admin interface · faq.json FAQ source
Components 16
User interface
- Support interface
static/index.html - Admin interface
static/admin.html
Support application
- FastAPI service
app.py - Chat routing
app.py - FAQ endpoint
app.py
Knowledge retrieval
- FAQ source
data/faq.json - Knowledge cache
data/knowledge_cache.json - Knowledge retrieval
app.py - Knowledge store
app.py - Grounded answer generation
app.py
Booking concierge
- Booking intent and IDs
app.py - Reservation lookup
app.py - Personalized booking answer
app.py
Other components
- Support user
- OpenAI API
- Reservation database
Connections 18
- Support user → Support interface: asks
- Support interface → FastAPI service: sends requests
- Admin interface → FastAPI service: manages knowledge
- FastAPI service → Chat routing: routes chat
app.py - FastAPI service → FAQ endpoint: serves FAQs
app.py - FAQ endpoint → FAQ source: reads
app.py - Chat routing → Booking intent and IDs: checks intent
app.py - Chat routing → Knowledge retrieval: retrieves evidence
app.py - Knowledge retrieval → Knowledge store: queries
app.py - Knowledge retrieval → OpenAI API: embeds query
app.py - Knowledge retrieval → Knowledge cache: falls back
app.py - Chat routing → Reservation lookup: looks up booking
app.py - Reservation lookup → Reservation database: queries
app.py - Chat routing → Personalized booking answer: generates reply
app.py - Personalized booking answer → OpenAI API: requests completion
app.py - Chat routing → Grounded answer generation: generates reply
app.py - Grounded answer generation → OpenAI API: requests completion
app.py - Grounded answer generation → Knowledge retrieval: uses evidence
app.py