Project Description

Description:
This project leverages Google Cloud services and GPT (Generative Pre-trained Transformer) to create a highly efficient email processing and notification system. The system automates the reading, analysis, and prioritization of emails from Gmail and sends notifications for important messages through Telegram.

Tools and Technologies:

  • Google Cloud Scheduler: Triggers the process every hour.
  • Google Pub/Sub: Handles communication between services.
  • Google Cloud Run: Executes the cloud function to fetch and process emails.
  • Gmail API: Retrieves email data from the user’s Gmail account.
  • OpenAI GPT-3.5 Turbo: Analyzes the email content to classify it based on its importance.
  • Telegram API: Sends notifications to the user about important emails.

Process Overview:

  1. Email Retrieval: Using the Gmail API, the system fetches emails periodically.
  2. AI Processing: Each email is passed through GPT-3.5, which classifies the email based on predefined categories (e.g., job offers, interview invitations, rejections).
  3. Notification: If an email is deemed important (e.g., job-related emails), a notification is sent to the user via Telegram.
  4. Storage: The system logs email IDs to ensure no email is processed twice.

Key Features:

  • Automated Email Filtering: Reduces manual filtering by using AI to prioritize job-related emails.
  • Real-Time Notifications: Important emails are instantly flagged and sent to the user via Telegram.
  • Scalable Architecture: Built using Google Cloud tools, allowing easy scalability and maintenance.

Challenges and Solutions:

  • Handling API Rate Limits: Implemented retry logic to gracefully handle rate limits from APIs.
  • Efficient Processing: The system processes emails one at a time, ensuring each email is analyzed thoroughly without overloading the GPT API.

Impact:
This system is designed to automate email management for individuals overwhelmed by high email volumes, focusing on job-related communication. It’s a practical solution that demonstrates proficiency in cloud technologies, AI, and automation.