An AI-powered chatbot that helps customers find the perfect outfit based on their needs and occasions.
- Gender-specific product recommendations (Men's & Women's collections)
- Natural language understanding for customer queries
- Smart product suggestions based on occasion, style, and price
- Clean, responsive chat interface
- Direct links to product pages
- scrape using a curl command for it
curl -s 'https://zilo.one/c/hot-deals-women?collection_name=Hot%20Deals%20-%20Women' \
-H 'x-zilo-pincode: 400069' \
-H 'x-zilo-city: Mumbai' > page.html
-using google ai studio i made like a json for page 1 of hot deals of both men and women
Backend:
- FastAPI - Web framework
- SQLite (in-memory) - Product database
- Nebius AI (Nemotron 3) - LLM for recommendations
- Pydantic - Data validation
Frontend:
- React - UI framework
- Tailwind CSS - Styling
- Lucide React - Icons
backend/
├── main.py # FastAPI app and endpoints
├── models.py # Pydantic models
├── database.py # In-memory SQLite setup
├── llm.py # AI integration
├── men.json # Men's product data
└── women.json # Women's product data
frontend/
└── src/
└── App.jsx # React chat interface
- Install dependencies:
pip install fastapi uvicorn openai pydantic- Set environment variable:
.env
NEBIUS_API_KEY=your_api_key_here- Run the server:
uvicorn main:app --reloadBackend runs on http://localhost:8000
- Create React app and install dependencies:
npm create vite@latest
react-Javscript
npm install tailwindcss @tailwindcss/vite
-
Configure Tailwind (see docs)
-
Replace
src/App.jsxwith the provided component -
Run the app:
npm run devFrontend runs on http://localhost:3000
- Select gender category (Men/Women)
- Type your requirement (e.g., "formal shirt for office", "wedding outfit under 2000")
- Get AI-powered product suggestions
- Click on product cards to view full details
Request:
{
"gender": "men",
"message": "looking for formal shirts"
}Response:
{
"message": "Here are some great formal options...",
"products": [
{
"id": "...",
"brand": "...",
"name": "...",
"price": 799,
"image_url": "...",
"product_url": "..."
}
]
}Check if database is loaded and API is running.
- User selects gender and sends a message
- Backend fetches relevant products from in-memory database
- All products sent to AI model with user's query
- AI analyzes and selects 2-3 best matches
- Backend returns recommendations with explanation
- Frontend displays product cards
- this is just for testing purposes that i made for making this thing works.
- Conversation history/memory
- Price range filtering
- Category-based search
- User preferences
- Vector embeddings for larger catalogs
- PostgreSQL for production
- Location based filtering
MIT
Built for Zilo Fashion Store, Mumbai

