An intelligent, multilingual AI-powered chatbot for e-commerce customer support built with modern technologies.
- 🤖 AI-Powered Conversations - Smart responses using Groq API
- 🌐 Multilingual Support - English and Urdu with RTL support
- 📦 Order Tracking - Real-time order status and tracking
- 🛍️ Product Information - Intelligent product search and recommendations
- ❓ FAQ Management - Instant answers with semantic search
- 🎨 Beautiful UI - Modern glassmorphism dark theme
- 📱 Mobile Responsive - Works perfectly on all devices
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Frontend │◄────►│ Backend │◄────►│ Databases │
│ (React/Vite) │ │ (Bun/Hono.js) │ │ (MongoDB/Redis) │
│ localhost:5173 │ │ localhost:3000 │ │ │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
┌──────────────┐
│ AI Service │
│ (Groq) │
└──────────────┘
docker-compose up -d mongodb rediscd backend
bun install
bun run devBackend will run on http://localhost:3000
cd frontend
npm install
npm run devFrontend will run on http://localhost:5173
cx_app/
├── backend/ # Bun.js + Hono.js API
│ ├── src/
│ │ ├── agents/ # AI agents (7 total)
│ │ ├── routes/ # API routes
│ │ ├── services/ # Business logic
│ │ ├── models/ # Mongoose models
│ │ └── config/ # Configuration
│ └── .env # Environment config
├── frontend/ # React + Vite application
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── services/ # API client
│ │ ├── store/ # Zustand state
│ │ └── styles/ # CSS design system
│ └── package.json
├── docker-compose.yml # Infrastructure
└── IMPLEMENTATION_PLAN.md # Detailed roadmap
- Runtime: Bun.js
- Framework: Hono.js
- Database: MongoDB + Mongoose
- Cache: Redis
- AI: Groq API
- Language: TypeScript
- Framework: React 19
- Build Tool: Vite 7
- State: Zustand
- HTTP: Axios
- Icons: Lucide React
- Language: TypeScript
PORT=3000
NODE_ENV=development
MONGODB_URI=mongodb://localhost:27017/cx_chatbot
REDIS_HOST=localhost
REDIS_PORT=6379
GROQ_API_KEY=your_key_here
CORS_ORIGIN=http://localhost:5173| Query | Expected Response |
|---|---|
| "Hello!" | Friendly greeting |
| "What are your shipping costs?" | FAQ answer |
| "Show me headphones" | Product list |
| "Track order ORD-001" | Order status |
| "میں اپنا آرڈر ٹریک کرنا چاہتا ہوں" | Urdu support |
See backend/curl.md for detailed API examples.
POST /api/v1/chat/message- Send chat messageGET /api/v1/products- List productsGET /api/v1/orders/:id- Get order detailsGET /api/v1/faqs- List FAQsGET /health- Health check
Built with ❤️ using modern web technologies