AI-powered inventory management system with voice commands, WhatsApp integration, and intelligent analytics for Indian retail businesses.
- π€ Voice Commands - Control inventory with voice in English, Hindi, Tamil
- π± WhatsApp Integration - Automatic invoice sending via WhatsApp
- π€ ASTA AI Assistant - Natural language queries and insights
- π Real-time Analytics - Profit tracking, low stock alerts
- ποΈ Vision AI - Shelf image analysis and invoice scanning
- π Smart Reports - Automated inventory reports
- Node.js 18+
- Docker & Docker Compose
- WhatsApp mobile app
# 1. Clone repository
git clone <repository-url>
cd stockshield
# 2. Install dependencies
cd stockshield/server && npm install
cd ../src && npm install
# 3. Start Evolution API (WhatsApp)
cd ../../evolution-api
docker-compose up -d
# 4. Configure environment
cp stockshield/.env.example stockshield/.env
# Edit .env with your API keys
# 5. Start services
cd stockshield/server && node index.js
cd ../src && npm run dev- Frontend: http://localhost:3000/workspace
- Server API: http://localhost:3001
- Evolution API: http://localhost:8080
Complete documentation available in docs/ folder:
- π Complete Documentation Index
- π Quick Start Guide
- π± WhatsApp Setup Guide
- π€ Voice Features
- π€ ASTA Chat Guide
- π§ API Endpoints
"Add 10 kg rice" β Adds stock
"Sold 5 kg dal" β Records sale
"Check stock of sugar" β Shows inventory
"Show low stock" β Lists low items
"Generate report" β Creates report
- Connect WhatsApp - Scan QR code once
- Automatic Sending - Invoices sent for sales > βΉ5000
- Manual Sending - Click "Send Invoice" on any transaction
- Formatted Messages - Professional invoice format with GST
- "What are my profits this month?"
- "Which items are low in stock?"
- "Show me sales trends"
- "Recommend reorder quantities"
- Frontend: Next.js 14, React, TailwindCSS
- Backend: Express.js, Node.js
- WhatsApp: Evolution API, Baileys
- Voice AI: Sarvam AI (STT/TTS)
- Database: PostgreSQL, Redis
- Deployment: Docker, Docker Compose
-
Start Evolution API
cd evolution-api && docker-compose up -d
-
Connect WhatsApp
- Open app β Click WhatsApp icon
- Click "Scan QR Code to Connect"
- Scan with WhatsApp mobile app
-
Configure Settings
- Enter WhatsApp number
- Set auto-send threshold
- Save settings
- β Automatic invoice generation
- β GST calculation (18%)
- β Formatted WhatsApp messages
- β Delivery confirmation
- β Disconnect/reconnect support
- β Manual and automatic sending
- English (en-IN)
- Hindi (hi-IN)
- Tamil (ta-IN)
- Inventory management
- Stock queries
- Report generation
- Transaction recording
Say "ASTA AI" to activate voice assistant
stockshield/.env:
EVOLUTION_API_URL=http://localhost:8080
EVOLUTION_API_KEY=429683C4C977415CAAFCCE10F7D57E11
WHATSAPP_INSTANCE=stockshield
SARVAM_API_KEY=your_sarvam_key
PORT=3001evolution-api/.env:
SERVER_PORT=8080
DATABASE_PROVIDER=postgresql
AUTHENTICATION_API_KEY=429683C4C977415CAAFCCE10F7D57E11- Check Evolution API:
docker ps - Click "Disconnect" in settings
- Click "Scan QR Code to Connect"
- Scan with mobile app
- Verify WhatsApp status shows "Connected"
- Check phone number format (+919876543210)
- Ensure transaction exists
- Check server logs
- Allow microphone permissions
- Check Sarvam API key
- Test with simple commands
- Verify language selection
βββββββββββββββββββ
β Next.js β β User Interface
β Frontend β
ββββββββββ¬βββββββββ
β
β HTTP API
β
ββββββββββΌβββββββββ
β Express.js β β Business Logic
β Server β
ββββββββββ¬βββββββββ
β
ββββββββββββββββ¬ββββββββββββββ
β β β
ββββββββββΌβββββββββ ββββΌβββββββββββ ββΌβββββββββ
β Evolution API β β Sarvam AI β βDatabase β
β (WhatsApp) β β (Voice) β β β
βββββββββββββββββββ βββββββββββββββ βββββββββββ
npm run devnpm run build
npm startdocker-compose up -d- β Fixed WhatsApp QR code display
- β Fixed connection status detection
- β Added disconnect/logout feature
- β Fixed invoice sending functionality
- β Improved error handling
- β Enhanced user feedback
- β Updated documentation
- Fork the repository
- Create feature branch
- Commit changes
- Push to branch
- Create Pull Request
Proprietary - All rights reserved
- π Documentation
- π Issue Tracker
- π¬ Discussions
- Multi-store support
- Advanced analytics dashboard
- Mobile app (React Native)
- Barcode scanning
- Supplier management
- Purchase order automation
- Multi-currency support
- Cloud deployment
Made with β€οΈ for Indian Retail Businesses
Version: 2.0.0 | Last Updated: April 7, 2026