Enterprise AI Employee Platform - Autonomous Multi-Agent System
Project description
AutoEmployee v2.0 - Production-Ready AI Employee Platform
Enterprise-Grade Full-Stack Application with FastAPI Backend, Next.js 14 Frontend, PostgreSQL, and Real-Time Dashboard
๐ Quick Start (5 Minutes)
Prerequisites
- Docker & Docker Compose
- OR: Python 3.13+, Node.js 20+, PostgreSQL 15+
Option 1: Docker (Recommended)
# 1. Clone/navigate to directory
cd Platinum-Tier
# 2. Copy environment file
cp .env.example .env
# 3. Start all services
cd docker
docker-compose up -d
# 4. Access application
# Frontend: http://localhost:3000
# Backend API: http://localhost:8000
# API Docs: http://localhost:8000/docs
Option 2: Manual Setup
# Backend
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload
# Frontend (in new terminal)
cd frontend
npm install
npm run dev
# Database (ensure PostgreSQL is running)
๐ Organized Directory Structure
Platinum-Tier/
โ
โโโ backend/ # FastAPI Backend
โ โโโ app/
โ โ โโโ main.py # Main application
โ โ โโโ config.py # Configuration
โ โ โโโ database.py # Database connection
โ โ โโโ models/ # SQLAlchemy models
โ โ โโโ schemas/ # Pydantic schemas
โ โ โโโ api/ # API routes
โ โ โโโ services/ # Business logic
โ โ โโโ auth/ # Authentication
โ โโโ requirements.txt
โ โโโ Dockerfile
โ
โโโ frontend/ # Next.js 14 Frontend
โ โโโ src/
โ โ โโโ app/ # App router pages
โ โ โโโ components/ # React components
โ โ โโโ lib/ # Utilities
โ โ โโโ styles/ # CSS styles
โ โโโ package.json
โ โโโ Dockerfile
โ
โโโ docker/ # Docker Configuration
โ โโโ docker-compose.yml
โ โโโ nginx.conf
โ
โโโ watcher/ # AI Watchers (Existing)
โ โโโ gmail_watcher.py
โ โโโ facebook_watcher.py
โ โโโ ...
โ
โโโ mcp-servers/ # MCP Servers (Existing)
โ โโโ email-mcp/
โ โโโ ...
โ
โโโ data/ # Application Data
โ โโโ Inbox/
โ โโโ Needs_Action/
โ โโโ Done/
โ โโโ Logs/
โ
โโโ docs/ # Documentation
โ โโโ API.md
โ โโโ FEATURES.md
โ โโโ DEPLOYMENT.md
โ
โโโ scripts/ # Utility Scripts
โ โโโ setup.sh
โ โโโ init-db.sql
โ
โโโ .env.example # Environment template
โโโ .gitignore
โโโ README.md # This file
โจ Features
Backend (FastAPI)
| Feature | Status | Description |
|---|---|---|
| REST API | โ | 40+ endpoints |
| JWT Auth | โ | Access + Refresh tokens |
| OAuth2 | โ | Google, GitHub login |
| PostgreSQL | โ | Production database |
| WebSocket | โ | Real-time updates |
| Dashboard API | โ | Live watcher data |
| Task Management | โ | Full CRUD operations |
| Audit Logging | โ | Compliance-ready |
Frontend (Next.js 14)
| Feature | Status | Description |
|---|---|---|
| Modern UI | โ | Tailwind CSS, dark theme |
| Real-Time Dashboard | โ | Live watcher/agent data |
| Documentation Site | โ | All features documented |
| Task Interface | โ | Manage AI tasks |
| Responsive | โ | Mobile-friendly |
| Authentication UI | โ | Login, register, OAuth |
Infrastructure
| Feature | Status | Description |
|---|---|---|
| Docker | โ | Full containerization |
| Nginx | โ | Reverse proxy |
| Health Checks | โ | Service monitoring |
| Auto-Restart | โ | Production-ready |
๐ Authentication
Default Credentials
Email: admin@autoemployee.com
Password: admin123
โ ๏ธ Change immediately after first login!
Supported Methods
- Email/Password (JWT)
- Google OAuth2
- GitHub OAuth2
๐ Dashboard Features
The real-time dashboard displays:
Agent Status
- Cloud Executive (Running/Stopped)
- Local Executive (Running/Stopped)
- Uptime, CPU, Memory usage
Task Statistics
- Pending tasks (Cloud/Local breakdown)
- Completed today
- Pending approval queue
Watchers (11 Total)
- Gmail Watcher
- Facebook Watcher
- Instagram Watcher
- X/Twitter Watcher
- LinkedIn Watcher
- WhatsApp Watcher
- Needs Action Watcher
- HITL Watcher
- Scheduler
- Cloud Sync
- Local Sync
MCP Servers (6 Total)
- email-mcp
- odoo-mcp
- social-mcp
- social-mcp-fb
- social-mcp-ig
- social-mcp-x
System Resources
- CPU usage %
- Memory usage (GB)
- Disk usage (GB)
๐ ๏ธ Development
Backend Development
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000
Access API Docs: http://localhost:8000/docs
Frontend Development
cd frontend
npm install
npm run dev
Access Frontend: http://localhost:3000
Running Watchers
# Start individual watchers
python watcher/gmail_watcher.py
python watcher/facebook_watcher.py
python watcher/orchestrator_cloud.py
python watcher/orchestrator_local.py
๐ API Endpoints
Authentication
POST /api/v1/auth/register - Register new user
POST /api/v1/auth/login - Login (JWT)
POST /api/v1/auth/refresh - Refresh token
POST /api/v1/auth/oauth/google - Google OAuth
POST /api/v1/auth/oauth/github - GitHub OAuth
Users
GET /api/v1/users - List users
GET /api/v1/users/me - Current user
PUT /api/v1/users/me - Update profile
Tasks
GET /api/v1/tasks - List tasks
POST /api/v1/tasks - Create task
GET /api/v1/tasks/{id} - Get task
PUT /api/v1/tasks/{id} - Update task
DELETE /api/v1/tasks/{id} - Delete task
POST /api/v1/tasks/{id}/approve - Approve task
Dashboard
GET /api/v1/dashboard - Full dashboard data
GET /api/v1/dashboard/summary - Lightweight summary
GET /api/v1/dashboard/watchers - Watcher status
GET /api/v1/dashboard/resources - System resources
WS /api/v1/dashboard/ws - Real-time WebSocket
๐ข Production Deployment
Environment Variables
Create .env file:
# Database
DB_PASSWORD=secure-password-here
# Authentication
SECRET_KEY=your-super-secret-key-min-32-chars
# OAuth2 (Optional)
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-secret
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-secret
# CORS
ALLOWED_ORIGINS=https://yourdomain.com
Deploy with Docker
# Production mode
cd docker
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# Check status
docker-compose ps
# View logs
docker-compose logs -f
Backup Database
docker-compose exec db pg_dump -U autoemployee autoemployee > backup.sql
๐งช Testing
Backend Tests
cd backend
pytest --cov=app
Frontend Tests
cd frontend
npm test
E2E Tests
python test_e2e_complete.py
๐ Documentation
| Document | Description |
|---|---|
| API Docs | Interactive API reference |
| FEATURES.md | Complete feature list |
| DEPLOYMENT.md | Production deployment guide |
| DASHBOARD_GUIDE.md | Dashboard user guide |
๐ง Troubleshooting
Frontend won't load
# Check backend is running
curl http://localhost:8000/health
# Restart frontend
docker-compose restart frontend
Database connection error
# Check database is healthy
docker-compose ps db
# View database logs
docker-compose logs db
Watchers not showing data
# Ensure watchers are running
python watcher/gmail_watcher.py
python watcher/orchestrator_cloud.py
๐ Support
- Documentation: http://localhost:8000/docs
- GitHub Issues: https://github.com/adeelahmed/autoemployee/issues
- Email: support@autoemployee.com
๐ฏ Roadmap
Q2 2026
- Mobile app (iOS/Android)
- Advanced analytics
- Custom integrations
Q3 2026
- Plugin marketplace
- Multi-tenant support
- Advanced AI models
๐ License
Proprietary - All rights reserved
Version: 2.0.0
Last Updated: March 30, 2026
Status: โ
Production Ready
Built with โค๏ธ by Adeel Ahmed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoemployee_ai-2.0.0-py3-none-any.whl.
File metadata
- Download URL: autoemployee_ai-2.0.0-py3-none-any.whl
- Upload date:
- Size: 42.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25960aae51d68c6a3c114ced25840ec28928663ee4cce0f70c395ecccd5f57ff
|
|
| MD5 |
f4920e31a6b7dc5eba1c705556f14ee5
|
|
| BLAKE2b-256 |
648c1553c2691d3133a78f37a085fa302d063c339f32192f629039f8459ebf68
|