A Chrome extension that extracts emails from web pages, generates AI responses using Google's Gemini, and sends emails. All interactions are stored in MongoDB.
- Extract email addresses from any web page
- Input project details or requirements
- Generate AI responses using Google's Gemini
- Edit AI-generated responses before sending
- Send emails directly from the extension
- Store all interactions in MongoDB
extension/
├── manifest.json # Extension configuration
├── popup.html # Extension popup UI
├── popup.js # Popup functionality
├── contentScript.js # Email extraction script
├── background.js # Background service worker
├── images/ # Extension icons
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
└── server/ # Backend server
├── server.js # API endpoints and logic
├── package.json # Server dependencies
└── env.example # Environment variables example
-
Clone this repository:
git clone https://github.com/yourusername/email-assistant.git cd email-assistant -
Add extension icons to the
imagesfolder (16x16, 48x48, and 128x128 pixels) -
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked" and select the extension folder
- Open Chrome and navigate to
-
Navigate to the server directory:
cd server -
Install dependencies:
npm install -
Create a
.envfile based onenv.exampleand fill in your credentials:cp env.example .env -
Start the server:
npm start
- Navigate to a webpage containing email addresses
- Click the Email Assistant icon in Chrome's toolbar
- Click "Extract Emails" to find email addresses on the page
- Enter project details in the text area
- Click "Generate Response" to create an AI response
- Edit the response if needed
- Select the recipient email from the dropdown
- Click "Send Email" to send the response
- Gemini API Key: Obtain from Google AI Studio
- Email Sending: Uses Gmail, requires an app password
- MongoDB: Configure connection string in server's
.envfile
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express
- Database: MongoDB
- AI: Google Gemini
- Email: Nodemailer
- Chrome Extension APIs