# π StockSense Africa
**AI-powered Inventory & Procurement Intelligence for Small Retail Businesses in Africa**
---
## π Overview
StockSense Africa is a smart inventory management and procurement decision-support system designed for small and medium retail businesses.
It helps shop owners:
- Track stock levels in real-time
- Identify products that need urgent reordering
- Compare supplier prices
- Understand revenue performance
- Generate AI-powered procurement recommendations
---
## π Key Features
### π Dashboard (Overview)
- Revenue trends over time
- Total units sold
- Product performance breakdown
- High-level business KPIs
### π¦ Inventory Intelligence
- Stock health monitoring (Critical / Warning / Safe)
- Days-of-stock estimation
- Automatic reorder alerts
- Product-level sales analysis
### πͺ Procurement Tracker
- Supplier price comparison system
- Best price identification
- Add and manage suppliers dynamically
### π€ AI Insights Engine
- Autonomous procurement agent powered by LLMs
- Generates actionable reorder decisions
- Produces supplier-ready messages
- Business health scoring
---
## π§ AI Agent Logic
The system uses an AI agent that:
1. Reads inventory data
2. Classifies stock risk levels
3. Evaluates supplier options
4. Generates procurement actions
5. Outputs structured business recommendations
---
## πΌοΈ Screenshots
> Replace these placeholders with actual images from your app
### π Login Page
### π Dashboard Overview
### π¦ Inventory View
### πͺ Procurement Module
### π€ AI Insights Page
---
## π οΈ Tech Stack
- Python π
- Streamlit
- Pandas
- Plotly
- Groq LLM API
- Python-dotenv
---
## π Project Structure
```
StockSense-Africa/
β
βββ app.py
βββ agent.py
βββ login.py
βββ sample_data.csv
βββ .env
βββ screenshots/
````
---
## π― Problem It Solves
Small retail businesses often:
- Overstock slow-moving items
- Run out of fast-moving stock
- Lack data-driven procurement decisions
- Have no visibility into supplier pricing effic β¦