Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kartikmehta8/automated-email-reply-gemini
An automated email processor that replies to unread emails, analyses content for priority, type, and team, generates personalized responses using Gemini API, and saves analysis in a CSV file.
https://github.com/kartikmehta8/automated-email-reply-gemini
automated-email gemini gmail imap-server
Last synced: about 4 hours ago
JSON representation
An automated email processor that replies to unread emails, analyses content for priority, type, and team, generates personalized responses using Gemini API, and saves analysis in a CSV file.
- Host: GitHub
- URL: https://github.com/kartikmehta8/automated-email-reply-gemini
- Owner: kartikmehta8
- Created: 2025-01-10T16:10:21.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2025-01-10T16:10:36.000Z (14 days ago)
- Last Synced: 2025-01-21T18:44:13.125Z (2 days ago)
- Topics: automated-email, gemini, gmail, imap-server
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Email Automation and Analysis Script
This project automates email replies and performs analysis on incoming emails. It uses Gmail's IMAP protocol for retrieving emails, analyzes their content, generates a personalized response using the Gemini AI model, and saves the analysis in a CSV file.
## Features
- **Automatic Email Replies**: Sends personalized replies to unread emails.
- **Email Analysis**:
- Assigns priority to emails based on content.
- Categorizes emails into types (e.g., Technical, Marketing).
- Maps emails to teams (e.g., Engineering, Marketing).
- **CSV Export**: Saves email data, analysis results, and responses to `email_analysis.csv`.## Prerequisites
- **Node.js** and **npm** installed.
- A Gmail account with:
- IMAP enabled.
- App password configured for email access.
- Gemini API keys for personalized email response generation.## Usage
Run the script:
```bash
node email-automation.js
```- The script will fetch unread emails, analyze them, generate replies, send them, and save results in a CSV file.
## File Structure
```
email-automation/
├── gemini_client.js # Gemini client for personalized responses.
├── email-automation.js # Main script.
├── email_analysis.csv # Output file with analysis.
├── .env # Environment variables.
└── README.md # Project documentation.
```