Your AI-powered shopping assistant that predicts prices, detects fake deals, and finds the best bargains in Egypt. ππ€πͺπ¬
# BargainBasha ππ€
> Your AI-powered shopping assistant that predicts prices, detects fake deals, and finds you the best bargains in Egypt.
---
## π― What is BargainBasha?
BargainBasha is a conversational AI shopping assistant that helps Egyptian shoppers make smarter buying decisions. Unlike traditional price trackers, BargainBasha uses machine learning to:
- β
**Predict if prices will drop** β not just track history
- β
**Detect fake deals instantly** β spot artificial price spikes
- β
**Find better alternatives** β compare across Amazon.eg, Jumia, Noon
- β
**WhatsApp-first experience** β chat like you would with a friend
- β
**Smart alerts** β get notified when your target price is hit
---
## π‘ How It Works
```
User: "Is this iPhone 13 at EGP 18,500 a good deal?"
BargainBasha: "Not really! π¬
Current: EGP 18,500
Was: EGP 16,200 last week (14% spike!)
30-day low: EGP 15,500
My prediction: 70% chance it'll drop to EGP 16,000
in 7-10 days. Wait for it! π
Want me to alert you when it drops?"
```
---
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββ
β WhatsApp Bot (Twilio) β
β Web App (React) β
β Telegram Bot β
ββββββββββββββββ¬βββββββββββββββββββββββββββ
β
βββββββΌββββββ
β FastAPI β
β API β
βββββββ¬ββββββ
β
ββββββββββββΌβββββββββββ
β β β
βΌ βΌ βΌ
Conversa- Price ML Model
tional Scraper (XGBoost)
AI
β β β
ββββββββββββΌβββββββββββ
βΌ
ββββββββββββββββββββββ
β PostgreSQL + β
β TimescaleDB β
β Redis Queue β
ββββββββββββββββββββββ
```
See docs/ARCHITECTURE.md for detailed system design.
---
## π Quick Start
### Prerequisites
- Python 3.11+
- PostgreSQL 14+
- Redis 7+
- Twilio account (for WhatsApp)
### Installation
```bash
# Clone repo
git clone
github.com
cd bargainbasha
# Create virtual environment
python -m venv venv
source venv/bin/activate β¦