/MailMindAI

๐Ÿค– Smart Email Marketing Analytics with AI | Machine Learning Campaign Optimizer | React TypeScript + Python FastAPI + OpenAI Integration | Real-time Performance Analysis & Recommendations

Primary LanguagePython

๐Ÿš€ MailMind AI - Email Marketing Campaign Analyzer

Analyze, Optimize, and Supercharge Your Email Marketing Performance with AI

A modern, full-stack application that transforms your email campaign data into actionable insights using artificial intelligence. Get personalized recommendations, performance predictions, and beautiful visualizations to take your email marketing to the next level.

๐ŸŒŸ Live Demo

๐Ÿ”— Try MailMind AI Now

Experience the full application with:

  • Interactive email emoji loading animations
  • AI-powered campaign analysis
  • Real-time performance predictions
  • Beautiful QuillBot-inspired design

โœจ Features

๐ŸŽจ Amazing User Experience

  • Interactive Loading Animations: Beautiful email emoji orbital animations during AI analysis
  • QuillBot-Inspired Design: Clean, professional interface with smooth transitions and modern aesthetics
  • Responsive Layout: Perfect experience on desktop, tablet, and mobile devices
  • Intuitive Interface: User-friendly forms and campaign result displays

๐Ÿค– AI-Powered Intelligence

  • Smart Campaign Analysis: AI identifies performance bottlenecks and optimization opportunities
  • Personalized Recommendations: Tailored suggestions for improving open rates, click-through rates, and conversions
  • ML Performance Predictions: Machine learning models forecast potential improvements
  • Contextual Insights: Analysis considers campaign type, target audience, and industry best practices

๐Ÿ“Š Comprehensive Analytics

  • Performance Metrics: Detailed analysis of open rates, click-through rates, and conversion tracking
  • Improvement Areas: Specific weak spots identification with actionable solutions
  • Predicted Outcomes: Forecasted performance improvements with confidence levels
  • Campaign History: Save and compare multiple campaign analyses

๐Ÿ—๏ธ Technology Stack

mailmind-ai/
โ”œโ”€โ”€ ๐ŸŽจ frontend/               # React TypeScript Application
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Hero/          # Landing page with campaign input form
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ LoadingAnimation/  # Email emoji orbital animations
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ CampaignModal/     # AI analysis results display
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Description/       # QuillBot-inspired process explanation
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ CampaignsGrid/     # Historical campaigns view
โ”‚   โ”‚   โ””โ”€โ”€ App.tsx            # Main application logic and state
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ ๐Ÿ”ง api/                    # Flask Python API
โ”‚   โ”œโ”€โ”€ index.py               # API endpoints (health, analyze, campaigns)
โ”‚   โ””โ”€โ”€ requirements.txt       # Python dependencies
โ”œโ”€โ”€ ๐Ÿš€ vercel.json             # Full-stack deployment configuration
โ””โ”€โ”€ ๐Ÿ“š README.md

Frontend: React 18, TypeScript, CSS3 Animations Backend: Flask, Python 3.9+ Deployment: Vercel (Frontend + Serverless Functions) AI Integration: Ready for OpenAI GPT-4 integration

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 16+ and npm
  • Python 3.8+
  • OpenAI API Key (Get one here)

1๏ธโƒฃ Clone & Setup

git clone https://github.com/AceAtDev/MailMindAI.git

Backend Setup

cd backend
pip install -r requirements.txt
python main.py # This will spin off the backend

Local Development

Clone and Install:

# Frontend setup
cd frontend
npm install
npm start

Environment Setup:

# Optional: Add OpenAI API key for enhanced AI features
# Create .env file in project root
echo "OPENAI_API_KEY=your_key_here" > .env

Run Locally:

# Development server (frontend only)
cd frontend
npm start

# Full-stack development
vercel dev

Access Points:

๐Ÿš€ Deployment

This application is deployed on Vercel with both frontend and backend:

Live Application: https://mailmindai-eta.vercel.app

API Endpoints:

  • GET /api/ - API status and health check
  • GET /api/campaigns - Retrieve saved campaign analyses
  • POST /api/analyze-campaign - Analyze new campaign data

Deploy Your Own:

# Deploy to Vercel
npm i -g vercel
vercel

# Or deploy to your preferred platform
# The app is configured for easy deployment anywhere

๏ฟฝ How It Works

1. Input Campaign Data

Enter your email campaign metrics including:

  • Campaign name and basic info
  • Emails sent, open rates, click rates
  • Conversion rates and revenue data

2. AI Analysis Magic โœจ

Watch the beautiful loading animation while our AI:

  • Analyzes your performance data
  • Compares against industry benchmarks
  • Identifies improvement opportunities
  • Generates personalized recommendations

3. Get Actionable Insights

Receive a comprehensive report with:

  • Performance Overview: Clear metrics visualization
  • Improvement Areas: Specific bottlenecks identified
  • AI Recommendations: Detailed optimization strategies
  • ML Predictions: Forecasted performance improvements

๐Ÿš€ Deployment

Vercel (Recommended)

This project is pre-configured for Vercel deployment:

# Install Vercel CLI
npm i -g vercel

# Deploy
vercel

# Set environment variables in Vercel dashboard:
# OPENAI_API_KEY=your_openai_api_key

Manual Deployment

  • Frontend: Build with npm run build and serve static files
  • Backend: Deploy FastAPI app to any Python hosting service
  • Environment: Ensure OPENAI_API_KEY is set in production

๐Ÿ› ๏ธ Development

Project Dependencies

Backend (Python)

  • fastapi==0.104.1 - Modern API framework
  • uvicorn - ASGI server
  • openai - OpenAI API integration
  • pandas - Data analysis
  • sqlalchemy - Database ORM
  • python-dotenv - Environment management

Frontend (React)

  • react^19.1.1 - Modern React with hooks
  • typescript^4.9.5 - Type safety
  • react-markdown - Markdown rendering

API Endpoints

  • POST /analyze - Submit campaign data for analysis
  • GET /campaigns - Retrieve historical campaigns
  • GET /health - Health check endpoint
  • GET /docs - Interactive API documentation

๐Ÿ”’ Security & Privacy

  • โœ… API Keys Protected: Environment variables kept secure
  • โœ… No Data Storage: Campaign data processed in memory only
  • โœ… CORS Configured: Secure cross-origin requests
  • โœ… Input Validation: Pydantic models ensure data integrity

๐Ÿค Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a 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 a Pull Request

๐Ÿ“„ License

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

๐ŸŽ‰ Acknowledgments

  • OpenAI for GPT-4 API
  • QuillBot for design inspiration
  • FastAPI for the excellent Python framework
  • React for the beautiful user interface
  • Vercel for seamless deployment

Made with โค๏ธ for email marketers who want to optimize their campaigns with AI

๐Ÿ“ง Questions? Open an issue or reach out! @ aceatdeveloping@gmail.com

  • ๐Ÿ”„ Fallback Mode: Works with or without OpenAI API key

๐Ÿงช Test the App Locally

  1. Backend: http://localhost:8000/docs (API documentation)

๐Ÿ› ๏ธ Technical Details

Frontend Stack:

  • React 18 with TypeScript
  • CSS3 Animations for email emoji loading
  • Responsive Design with mobile-first approach
  • Modern Build Tools (Vite/Create React App)

Backend Stack:

  • Flask Python web framework
  • RESTful API design
  • CORS enabled for cross-origin requests
  • JSON responses with consistent error handling

Deployment:

  • Vercel for both frontend and serverless functions
  • Automatic CI/CD from Git commits
  • Global CDN for fast worldwide access
  • Environment variables for secure configuration

๐Ÿš€ Performance Features

  • โšก Fast Loading: Optimized React build with code splitting
  • ๐ŸŽจ Smooth Animations: 60fps email emoji orbital animations
  • ๐Ÿ“ฑ Mobile Optimized: Touch-friendly interface and responsive design
  • ๐Ÿ”„ Real-time Updates: Instant API responses and state management
  • ๐Ÿ’พ Campaign History: Save and revisit analysis results

๐Ÿค Contributing

This project showcases modern full-stack development practices:

  1. Clone the repository
  2. Follow the setup instructions above
  3. Create feature branches for changes
  4. Test locally with vercel dev
  5. Deploy your improvements

๐Ÿ“ง Contact & Support


Built with โค๏ธ using React, Flask, and AI โ€ข Deployed on Vercel โ€ข ยฉ 2024 MailMind AI