Skip to content

πŸš€ EmailProAI - AI-Powered Email Automation Platform-World-class email automation platform with AI-powered content generation, advanced analytics, and enterprise features

License

Notifications You must be signed in to change notification settings

Jitenderkumar2030/emailpro-ai

Repository files navigation

πŸš€ EmailProAI - AI-Powered Email Automation Platform

FastAPI Next.js OpenAI PostgreSQL

World-class email automation platform with AI-powered content generation, advanced analytics, and enterprise features

✨ Key Features

  • πŸ€– AI Email Generation - GPT-4 powered email writing
  • πŸ“Š Advanced Analytics - Real-time tracking & reporting
  • πŸ”„ Campaign Automation - Bulk emails with CSV upload
  • πŸ“§ Email Integrations - Gmail & Outlook OAuth
  • πŸ’³ Payment System - Cashfree payment gateway
  • πŸ‘₯ Team Collaboration - Multi-user enterprise features
  • πŸ“± Mobile Ready - Push notifications & mobile API
  • 🎨 White Label - Custom branding support

πŸ—οΈ Architecture

Backend (FastAPI)

  • Framework: FastAPI + SQLAlchemy + PostgreSQL
  • AI Integration: OpenAI GPT-4 API
  • Authentication: OAuth 2.0 + JWT tokens
  • Email Services: Gmail API, Outlook Graph API
  • Payments: Cashfree payment gateway
  • Background Tasks: APScheduler

Frontend (Next.js)

  • Framework: Next.js 13+ with TypeScript
  • Styling: Tailwind CSS
  • State Management: React Context + Hooks
  • API Client: Axios with interceptors

πŸš€ Quick Start

Prerequisites

  • Python 3.9+
  • Node.js 18+
  • PostgreSQL 13+

Backend Setup

cd backend
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env  # Configure your environment variables
alembic upgrade head
uvicorn app.main:app --reload

Frontend Setup

cd frontend
npm install
npm run dev

πŸ“Š API Documentation

Once running, visit:

πŸ”§ Environment Variables

Backend (.env)

OPENAI_API_KEY=your_openai_api_key
DATABASE_URL=postgresql://user:password@localhost/emailproai
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
CASHFREE_APP_ID=your_cashfree_app_id
CASHFREE_SECRET_KEY=your_cashfree_secret_key
FCM_SERVER_KEY=your_fcm_server_key

πŸ“ˆ Features Overview

πŸ€– AI Email Generation

  • Multiple tone options (Professional, Friendly, Formal)
  • Context-aware email replies
  • Subject line generation
  • Template integration

πŸ“Š Campaign Management

  • CSV bulk upload
  • Real-time analytics
  • A/B testing
  • Drip campaigns

πŸ“§ Email Tracking

  • Open tracking (1x1 pixel)
  • Click tracking
  • Reply detection
  • Bounce handling

πŸ’° Subscription Plans

  • FREE: 3 emails/day
  • STARTER: 100 emails/day ($9.99/month)
  • PRO: Unlimited emails ($29.99/month)
  • LIFETIME: Unlimited forever ($99.99)

🏒 Enterprise Features

  • Team Management: Role-based access control
  • White Labeling: Custom branding
  • API Access: RESTful API with authentication
  • Advanced Analytics: PDF/Excel reports
  • Audit Logs: Complete activity tracking

πŸ“± Mobile Support

  • Push notifications via Firebase
  • Mobile-optimized API endpoints
  • Offline capability
  • Quick actions

πŸ” Security

  • bcrypt password hashing
  • JWT token authentication
  • OAuth 2.0 integrations
  • SQL injection protection
  • CORS configuration
  • Input validation

πŸš€ Deployment

Docker Deployment

docker-compose up -d

Production Checklist

  • Configure environment variables
  • Set up SSL certificates
  • Configure domain DNS
  • Set up monitoring
  • Configure backups

πŸ“Š Database Schema

  • Users: User accounts and settings
  • Campaigns: Email campaigns
  • Email Logs: Individual email tracking
  • Teams: Team management
  • Payments: Payment processing
  • Analytics: Performance metrics

🀝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • OpenAI for GPT-4 API
  • FastAPI for the amazing framework
  • Next.js team for the frontend framework
  • All contributors and supporters

Built with ❀️ by Jitender Kumar

About

πŸš€ EmailProAI - AI-Powered Email Automation Platform-World-class email automation platform with AI-powered content generation, advanced analytics, and enterprise features

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published