Skip to content

A powerful Chrome extension that helps you write professional emails instantly using Google's Gemini API. Perfect for students and working professionals.

Notifications You must be signed in to change notification settings

hk151109/EmailGenius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Email Genius - Chrome Extension

A powerful Chrome extension that helps you write professional emails instantly using Google's Gemini API. Perfect for students and working professionals.

Extension Banner

πŸš€ Features

✍️ Quick Compose

  • Inline Gmail Integration - Write emails directly in Gmail without opening popups
  • One-Click Access - Quick Compose button appears in Gmail's formatting toolbar
  • Smart Suggestions - Get instant email drafts based on your description

πŸ“§ Multiple Email Types

Generate emails for any occasion:

  • General correspondence
  • Follow-up messages
  • Meeting requests
  • Thank you notes
  • Apologies
  • Introductions
  • Sales outreach
  • Status updates

🎨 Customizable Tone

Choose the perfect tone for your audience:

  • Professional - For formal business communication
  • Friendly - For colleagues and familiar contacts
  • Formal - For official and legal matters
  • Casual - For informal conversations
  • Default - Balanced and versatile

πŸ’¬ Smart Reply Generation

  • Automatically reads email context from conversations
  • Generates contextually relevant replies
  • Saves time on repetitive responses

βš™οΈ Personal Configuration

  • Store your personal details (name, role, company)
  • Set default email preferences
  • Customize signature style
  • API key management with secure storage

πŸ“Έ Screenshots

Quick Compose in Gmail and Inline Prompt Box

Quick Compose Button The Quick Compose button appears in Gmail's formatting toolbar for instant access Type your email description directly in Gmail - no need to switch tabs

Extension Popup

Extension Popup Alternative access via extension popup for more detailed email composition

Settings Page

Settings Page Configure your API key, personal details, and email preferences

πŸ”§ Installation

Prerequisites

  1. Google Chrome browser (version 88 or higher)
  2. Google Gemini API Key (Get it here)

Steps

  1. Clone or Download the Extension

    git clone hhtps://github.com/hk151109/EmailGenius.git
    cd EmailGenius
  2. Load Extension in Chrome

    • Open Chrome and navigate to chrome://extensions/
    • Enable "Developer mode" (toggle in top-right corner)
    • Click "Load unpacked"
    • Select the EmailGenius folder
  3. Configure API Key

    • Click the extension icon in Chrome toolbar
    • Click "Settings" or right-click extension icon β†’ "Options"
    • Enter your Google Gemini API Key
    • Click "Save Settings"
  4. Set Up Your Profile (Optional)

    • Fill in your name, role, and company details
    • Choose your default email tone
    • Save your preferences

πŸ“– User Guide

Method 1: Quick Compose in Gmail (Recommended)

This is the fastest way to generate emails without leaving Gmail.

  1. Open Gmail and click "Compose" or "Reply"
  2. Find the Quick Compose button (✍️ Quick Compose) in the formatting toolbar (leftmost button)
  3. Click the button to show the inline prompt box
  4. Describe your email - e.g., "Follow up on project timeline"
  5. Select email type (optional) - Choose from dropdown
  6. Select tone (optional) - Professional, Friendly, etc.
  7. Click "Generate" or press Enter
  8. Email appears in the compose box automatically
  9. Edit if needed and send!

Method 2: Extension Popup

For more detailed email composition with additional options.

  1. Click the extension icon in Chrome toolbar
  2. Choose "New Email" or "Reply" tab
  3. Enter your prompt - Describe what you need
  4. Configure options:
    • Select email type
    • Choose tone
    • Add recipient (optional)
  5. Click "Generate Email"
  6. Review the generated email
  7. Click "Insert into Gmail" or "Copy to Clipboard"

Method 3: Smart Reply

Generate contextual replies to emails you've received.

  1. Open an email in Gmail
  2. Click "Reply"
  3. Click the extension icon or use Quick Compose
  4. Select "Reply" tab (in popup)
  5. Click "Generate Reply" - The extension reads the email content automatically
  6. Review and send the generated reply

πŸ”„ User Flow Diagram

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     User Opens Gmail                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚                       β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
        β”‚   Compose    β”‚        β”‚    Reply    β”‚
        β”‚  New Email   β”‚        β”‚  to Email   β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
                β”‚                      β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  Click Quick        β”‚
                β”‚  Compose Button     β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  Inline Prompt      β”‚
                β”‚  Box Appears        β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  User enters:       β”‚
                β”‚  β€’ Description      β”‚
                β”‚  β€’ Email Type       β”‚
                β”‚  β€’ Tone (optional)  β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  Click Generate     β”‚
                β”‚  or Press Enter     β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  API Call to        β”‚
                β”‚  Gemini             β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  Email Generated    β”‚
                β”‚  & Inserted         β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  User reviews,      β”‚
                β”‚  edits, and sends   β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

βš™οΈ Configuration Options

API Settings

Field Description Required
API Key Your Google Gemini API key βœ… Yes

Personal Information

Field Description Example Required
Full Name Your name John Doe ❌ No
Job Title Your role Product Manager ❌ No
Company Your organization Tech Corp ❌ No
Email Your email address [email protected] ❌ No
Phone Contact number +1 234 567 8900 ❌ No

Email Preferences

Field Options Default
Default Tone Professional, Friendly, Formal, Casual Professional
Include Signature Yes/No Yes

πŸ” Privacy & Security

  • Local Storage Only - Your API key is stored locally in Chrome's secure storage
  • No Data Collection - We don't collect or store any of your emails or personal information
  • Direct API Calls - Communication happens directly between your browser and Google's Gemini API
  • Open Source - Full transparency - inspect the code yourself

πŸ› οΈ Technical Details

Technologies Used

  • Manifest Version: V3
  • AI Model: Google Gemini (gemini-2.0-flash-exp)
  • Frontend: HTML, CSS, JavaScript
  • Storage: Chrome Storage API (Sync)
  • Permissions:
    • storage - Save user preferences
    • activeTab - Access active Gmail tab
    • scripting - Inject content scripts
    • Host permissions for Gmail and Gemini API

File Structure

email-gen/
β”œβ”€β”€ manifest.json          # Extension configuration
β”œβ”€β”€ popup.html            # Extension popup UI
β”œβ”€β”€ popup.js              # Popup logic
β”œβ”€β”€ options.html          # Settings page UI
β”œβ”€β”€ options.js            # Settings logic
β”œβ”€β”€ background.js         # Service worker (API calls)
β”œβ”€β”€ content.js            # Gmail integration script
β”œβ”€β”€ styles.css            # Popup styles
β”œβ”€β”€ userConfig.json       # Default configuration template
└── images/               # Extension icons

❓ Troubleshooting

Button Not Appearing in Gmail

  1. Refresh Gmail - Press F5 to reload the page
  2. Check Extension - Ensure the extension is enabled in chrome://extensions/
  3. Clear Cache - Try clearing browser cache and reloading
  4. Reinstall - Remove and reload the extension

Email Not Generating

  1. Check API Key - Verify your Gemini API key is correct in settings
  2. Check Console - Press F12 and look for errors in the Console tab
  3. API Quota - Ensure you haven't exceeded Gemini API limits
  4. Network Connection - Check your internet connection

Email Not Inserting into Gmail

  1. Refresh Page - Reload Gmail after extension installation
  2. Close Compose - Close and reopen the compose window
  3. Try Popup Method - Use "Copy to Clipboard" instead

Settings Not Saving

  1. Allow Storage - Check Chrome's site settings for storage permissions
  2. Try Again - Close and reopen the settings page
  3. Check Browser - Ensure you're using a supported Chrome version

πŸ”„ Updates & Changelog

Version 1.0.0 (Current)

  • βœ… Initial release
  • βœ… Quick Compose inline integration
  • βœ… Extension popup interface
  • βœ… Smart reply generation
  • βœ… Personal configuration
  • βœ… Multiple email types and tones
  • βœ… Modern, professional UI design

🀝 Contributing

We welcome contributions! Here's how you can help:

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

πŸ“ž Support

Having issues or questions? Here's how to get help:

  • Check Troubleshooting - Review the troubleshooting section above
  • Open an Issue - Report bugs on GitHub Issues

πŸŽ‰ What's Next?

Planned Features

  • Email templates library
  • Multi-language support
  • Analytics and insights
  • Team collaboration features
  • Custom AI model integration
  • Outlook and other email client support

Made with ❀️ for productivity enthusiasts

Star ⭐ this repository if you found it helpful!

About

A powerful Chrome extension that helps you write professional emails instantly using Google's Gemini API. Perfect for students and working professionals.

Topics

Resources

Stars

Watchers

Forks