Smart Email Writer is an AI-powered Chrome extension that integrates directly with Gmail to generate professional email replies.
It uses a Spring Boot backend connected to the Gemini API to analyze email context and automatically generate high-quality responses, helping users draft replies faster and improve productivity.
-
✉️ AI Email Reply Generation
- Automatically generates professional responses based on email context.
-
⚡ One-Click AI Reply
- Injects a custom “AI Reply” button directly inside the Gmail interface.
-
🧠 Context-Aware Responses
- Uses Gemini API to understand the email content before generating replies.
-
🔌 Chrome Extension Integration
- Seamlessly works within Gmail without leaving the browser.
-
⚙️ Backend API Processing
- Spring Boot backend handles request processing and communication with Gemini AI.
Gmail UI
│
▼
Chrome Extension (JS, HTML, CSS)
│
▼
Spring Boot Backend API
│
▼
Gemini AI API
│
▼
Generated Email Reply
Frontend (Extension)
- JavaScript
- HTML
- CSS
- Chrome Extension APIs
Backend
- Spring Boot
- REST APIs
- JSON Processing
AI Integration
- Gemini API (Google AI)
smart-email-writer
│
├── chrome-extension
│ ├── manifest.json
│ ├── content.js
│ ├── popup.html
│ ├── popup.js
│ └── styles.css
│
├── backend
│ ├── controller
│ ├── service
│ ├── dto
│ └── config
│
└── README.md
git clone https://github.com/your-username/smart-email-writer.git
cd smart-email-writer- Navigate to backend folder
cd backend- Add your Gemini API Key in
application.properties
gemini.api.key=YOUR_API_KEY
- Run the Spring Boot application
mvn spring-boot:runBackend runs on:
http://localhost:8080
- Open Chrome
- Go to
chrome://extensions
- Enable Developer Mode
- Click Load Unpacked
- Select the
chrome-extensionfolder
The extension will now appear in Chrome.
- Open Gmail
- Open any email conversation
- Click the AI Reply button
- The extension sends the email content to the backend
- Backend requests Gemini API
- AI-generated reply appears instantly
User opens Gmail
↓
Clicks "AI Reply"
↓
Extension extracts email content
↓
Backend processes request
↓
Gemini generates response
↓
Reply inserted into Gmail draft
- Tone selection (Professional / Friendly / Formal)
- Multi-language email generation
- Email summarization
- Custom response templates
- Support for Outlook and other email platforms
Mohit Kumar
⭐ If you found this project useful, consider giving it a star!