Skip to main content

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)

  1. Gmail Watcher
  2. Facebook Watcher
  3. Instagram Watcher
  4. X/Twitter Watcher
  5. LinkedIn Watcher
  6. WhatsApp Watcher
  7. Needs Action Watcher
  8. HITL Watcher
  9. Scheduler
  10. Cloud Sync
  11. 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


๐ŸŽฏ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoemployee_ai-2.0.0-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

Details for the file autoemployee_ai-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autoemployee_ai-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25960aae51d68c6a3c114ced25840ec28928663ee4cce0f70c395ecccd5f57ff
MD5 f4920e31a6b7dc5eba1c705556f14ee5
BLAKE2b-256 648c1553c2691d3133a78f37a085fa302d063c339f32192f629039f8459ebf68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page