Intelligent Gmail integration that generates contextual email replies using AI
π Quick-Start β’ π Features β’ π οΈ Tech Stack β’ πΈ Demo β’ π§ Installation
Transform your Gmail experience with AI-powered email replies. This project combines a Chrome Extension with a Spring Boot backend to provide intelligent, context-aware email responses directly within Gmail's interface.
- π¨ Seamless Gmail Integration - Appears naturally in Gmail's compose interface
- π§ AI-Powered Intelligence - Uses Google's Gemini API for contextual responses
- ποΈ Customizable Tones - Professional, Friendly, Formal, Casual, or Polite
- π± Smart UI Design - Draggable, expandable button with intuitive controls
- π Fallback System - Works even when backend is unavailable
- β‘ Real-time Processing - Instant AI generation with loading states
- Chrome Browser (or Chromium-based)
- Java 17+ and Maven
- Google Gemini API Key
git clone https://github.com/yourusername/Email_Reply_Generator.git
cd Email_Reply_Generator/Email_Reply_Generator
# Set environment variables
export GEMINI_URL="your_gemini_api_url"
export GEMINI_KEY="your_gemini_api_key"
# Start the backend
./mvnw spring-boot:run- Open Chrome β
chrome://extensions/ - Enable Developer mode
- Click Load unpacked β Select
Email_Reply_Generator_Ext/folder - Extension is now active! π
- Open Gmail in Chrome
- Click Reply on any email
- Look for the purple "AI Reply by Roch" button
- Select your preferred tone and click to generate!
- Drag Handle - Dedicated area for repositioning (no accidental clicks)
- Expand/Collapse - Minimize to icon-only mode to save space
- Tone Selector - 5 different response styles
- Visual Feedback - Loading spinners, success/error states
- Context Awareness - Analyzes original email content
- Tone Customization - Professional, Friendly, Formal, Casual, Polite
- Signature Preservation - Keeps your email signature intact
- Smart Formatting - Proper line breaks and email structure
- RESTful API - Clean Spring Boot backend
- CORS Configured - Ready for production deployment
- Error Handling - Graceful fallbacks and user feedback
- Modular Architecture - Easy to extend and customize
- JavaScript ES6+ - Modern async/await patterns
- DOM Manipulation - Gmail interface integration
- MutationObserver - Dynamic UI detection
- CSS3 - Responsive design with animations
- Spring Boot 3.x - RESTful API framework
- Maven - Dependency management
- Google Gemini API - AI text generation
- CORS Support - Cross-origin request handling
βββββββββββββββββββ HTTP POST ββββββββββββββββββββ API Call βββββββββββββββ
β Gmail Web β βββββββββββββββΊ β Spring Boot β βββββββββββββββΊ β Gemini β
β (Extension) β β Backend β β AI β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββ
# Backend
git clone https://github.com/yourusername/Email_Reply_Generator.git
cd Email_Reply_Generator/Email_Reply_Generator
./mvnw spring-boot:run
# Extension
# Load Email_Reply_Generator_Ext/ in Chrome extensionsdocker-compose up -d- Professional distribution
- Automatic updates
- Enterprise deployment
Email_Reply_Generator/
βββ π Email_Reply_Generator/ # Spring Boot Backend
β βββ π src/main/java/ # Java source code
β βββ π src/main/resources/ # Configuration files
β βββ π pom.xml # Maven dependencies
β βββ π Dockerfile # Container configuration
βββ π Email_Reply_Generator_Ext/ # Chrome Extension
β βββ π manifest.json # Extension configuration
β βββ π content.js # Main extension logic
β βββ π content.css # Styling
β βββ π Aireply.png # Extension icon
β βββ π README.md # Extension documentation
βββ π Email_Reply_Generator_React/ # React Frontend (Unused)
β βββ π src/ # React source code
β βββ π public/ # Static assets
β βββ π package.json # Node.js dependencies
β βββ π vite.config.js # Vite configuration
β βββ π README.md # React app documentation
βββ π .gitignore # Git ignore rules
βββ π mvnw # Maven wrapper (Unix)
βββ π mvnw.cmd # Maven wrapper (Windows)
βββ π pom.xml # Root Maven configuration
βββ π README.md # This file
POST /api/email/generate
Content-Type: application/json
{
"emailContent": "Original email content here...",
"tone": "professional"
}Response:
{
"reply": "Generated AI reply with proper formatting..."
}Tone Options:
professional- Business-appropriate languagefriendly- Warm and approachableformal- Traditional business correspondencecasual- Relaxed and conversationalpolite- Courteous and respectful
# Unit tests
./mvnw test
# Integration tests
./mvnw verify
# API testing with Postman
# Import the provided Postman collection- Load extension in Chrome
- Open Gmail
- Test reply generation
- Verify tone selection
- Test drag & drop functionality
- No Data Storage - Emails are processed in real-time only
- Local Processing - Your data stays on your machine
- API Key Security - Environment variable configuration
- CORS Protection - Configured for specific origins
- Gmail integration
- AI reply generation
- Tone selection
- Drag & drop interface
- Custom prompt templates
- Reply history and favorites
- Multi-language support
- Advanced tone customization
- Chrome Web Store publication
- Enterprise deployment options
- Mobile app integration
- API rate limiting and monitoring
We welcome contributions! Please see our Contributing Guidelines for details.
# Fork the repository
git clone https://github.com/yourusername/Email_Reply_Generator.git
# Create feature branch
git checkout -b feature/amazing-feature
# Make changes and test
./mvnw test
# Commit and push
git commit -m "Add amazing feature"
git push origin feature/amazing-feature
# Open Pull RequestThis project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini - AI text generation
- Spring Boot - Backend framework
- Chrome Extensions API - Browser integration
- Gmail - Email platform integration
β Star this repository if you found it helpful!