Skip to content

Vikhas/jobmail-ai-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

JobMail AI - OA Email Detector

Never miss an Online Assessment invite again!

A Chrome Extension that automatically detects and summarizes Online Assessment (OA) emails using Chrome's built-in AI APIs (Prompt API + Summarizer API).

๐ŸŽฏ What It Does

JobMail AI monitors your Gmail inbox and uses Gemini Nano (Chrome's built-in AI) to:

  • ๐Ÿ” Automatically detect OA invitation emails from companies like HackerRank, CodeSignal, Codility, etc.
  • ๐Ÿ“ Summarize email content to extract key details (deadline, platform, instructions)
  • ๐Ÿ”” Notify you instantly when an OA email arrives
  • โœจ Highlight OA emails in your inbox with visual badges
  • ๐Ÿ“Š Track all detected OA emails in a beautiful dashboard

๐Ÿง  Chrome Built-in AI APIs Used

This extension showcases two of Chrome's powerful built-in AI APIs:

  1. Prompt API - Classifies emails into categories (OA_INVITE, REJECTION, STATUS_UPDATE, OTHER)
  2. Summarizer API - Extracts key information and generates summaries

All AI processing happens locally in your browser with Gemini Nano - no data sent to external servers!

๐Ÿš€ Installation

For Testing & Development

  1. Clone or Download this repository

    git clone <your-repo-url>
    cd jobmail-ai
  2. Enable Chrome AI APIs (Required)

    • Open Chrome Canary or Chrome Dev (version 128+)
    • Go to chrome://flags
    • Enable these flags:
      • chrome://flags/#optimization-guide-on-device-model
      • chrome://flags/#prompt-api-for-gemini-nano
      • chrome://flags/#summarization-api-for-gemini-nano
    • Relaunch Chrome
  3. Load the Extension

    • Open Chrome and go to chrome://extensions/
    • Enable "Developer mode" (toggle in top right)
    • Click "Load unpacked"
    • Select the jobmail-ai folder
    • The extension icon should appear in your toolbar!
  4. Open Gmail

๐Ÿ“– How to Use

Automatic Detection

  1. Open Gmail in Chrome
  2. The extension automatically monitors your inbox
  3. When an OA email is detected:
    • Email gets highlighted with a yellow background and "OA" badge
    • You receive a browser notification
    • Email is saved to your dashboard

Manual Scan

  1. Click the JobMail AI extension icon
  2. Click "Scan Inbox Now" button
  3. View all detected OA emails in the dashboard

Dashboard Features

  • View all detected OA emails with summaries
  • See how long ago each email arrived
  • Clear all tracked emails
  • Toggle notifications on/off

๐ŸŽจ Features

โœ… Real-time Email Detection - Monitors Gmail inbox automatically
โœ… AI-Powered Classification - Uses Prompt API to identify OA invites
โœ… Smart Summarization - Extracts key details with Summarizer API
โœ… Visual Highlighting - Yellow background + OA badge in Gmail
โœ… Browser Notifications - Get alerted immediately
โœ… Beautiful Dashboard - Track all OA emails in one place
โœ… Privacy-First - All AI processing happens locally (no external servers)
โœ… Offline Capable - Works without internet once AI model is downloaded

๐Ÿ—๏ธ Technical Architecture

jobmail-ai/
โ”œโ”€โ”€ manifest.json         # Extension configuration (Manifest V3)
โ”œโ”€โ”€ content.js            # Gmail integration & email scanning
โ”œโ”€โ”€ background.js         # Service worker for notifications
โ”œโ”€โ”€ popup.html            # Dashboard UI
โ”œโ”€โ”€ popup.js              # Dashboard logic
โ”œโ”€โ”€ popup.css             # Dashboard styling
โ”œโ”€โ”€ styles.css            # Gmail injection styles
โ””โ”€โ”€ icons/                # Extension icons (16x16, 48x48, 128x128)

Key Technologies

  • Manifest V3 - Latest Chrome Extension standard
  • Chrome Prompt API - Email classification with Gemini Nano
  • Chrome Summarizer API - Email summarization
  • Chrome Storage API - Local data persistence
  • Chrome Notifications API - Alert system
  • Content Scripts - Gmail DOM integration

๐Ÿ”‘ Keyword Detection

The extension detects emails containing terms like:

  • Online Assessment, OA Invite, Coding Test
  • HackerRank, CodeSignal, Codility, LeetCode
  • Technical Assessment, Programming Test
  • Take-home Assignment, Coding Challenge
  • And more...

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the 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

  • Powered by Gemini Nano and Chrome's built-in AI APIs
  • Thanks to the Chrome team for making AI accessible in the browser!

๐Ÿ“ง Contact

Created by Vikhas - Feel free to reach out!


โญ If you find this extension helpful, please star the repository!

๐Ÿ“‹ Current Capabilities & Limitations

What Works Well

  • โœ… Detects OA emails using subject lines and preview snippets
  • โœ… AI classification works with available inbox data
  • โœ… Visual highlighting and notifications function perfectly
  • โœ… Keyword-based fallback ensures high detection rate
  • โœ… All processing happens locally (privacy-first)

Known Limitations

  • โš ๏ธ Email Body Access: The extension currently analyzes subject + sender + Gmail preview snippet (~100-150 chars). Full email body retrieval would require opening each message or Gmail API integration, which is beyond the scope of this hackathon MVP.
  • โš ๏ธ Summaries: AI summaries are based on preview text. For detailed information, users should click through to the email.
  • โœ… Mitigation: Strong keyword detection ensures OA emails are identified even without full content analysis.

Why This Approach?

This design prioritizes:

  1. Performance - Fast scanning without opening every email
  2. Privacy - No external API calls or data collection
  3. Reliability - Works immediately without complex setup
  4. Hackathon Timeline - Functional MVP within 4 days

For a production version, Gmail API integration would enable full email body analysis.

๐Ÿ”ฎ Future Enhancements

  • ๐Ÿ“ง Gmail API integration for full email body access
  • ๐Ÿ“… Deadline extraction and tracking with calendar integration
  • ๐ŸŒ Multilingual support with Translator API
  • โœ๏ธ Email reply proofreading with Proofreader API
  • ๐ŸŽจ Multimodal support (analyze company logos)
  • ๐Ÿ“Š Analytics dashboard with application tracking
  • ๐Ÿ”— Direct links to assessment platforms

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors