How ajay700-oss/multiple-agent works
ShopAI is a Flask-backed conversational shopping assistant. A user opens its page, then can submit chat history to the chat endpoint; the endpoint validates and trims history, builds a prompt, and tries configured Gemini keys and models until one responds. The response is returned as JSON. The excerpts show the page-rendering route but not the template or stylesheet contents, so their client-side behavior and any link from the page to the chat endpoint cannot be verified.
Main entry points: app.py Chat endpoint · index.html Shopping page
Components 8
ShopAI web app
- Flask application
app.py - Shopping page
templates/index.html - Page styles
static/style.css - Health endpoint
app.py
AI conversation
- Chat endpoint
app.py - Prompt and history builder
app.py
Other components
- Shopper
- Gemini models
Connections 6
- Flask application → Shopping page: renders
app.py - Flask application → Chat endpoint: routes requests
app.py - Flask application → Health endpoint: routes requests
app.py - Chat endpoint → Prompt and history builder: builds messages
app.py - Chat endpoint → Gemini models: calls models
app.py - Gemini models → Chat endpoint: returns reply
app.py