{"id":26336180,"url":"https://github.com/chinmaywali/emailreplygenerator_ai","last_synced_at":"2026-05-09T00:02:11.118Z","repository":{"id":280232191,"uuid":"941364863","full_name":"chinmaywali/EmailReplyGenerator_AI","owner":"chinmaywali","description":"An AI-powered full-stack email generator with a React.js, Spring Boot  and a Chrome extension that streamlines email drafting using the Gemini API. ⚙️📬 ","archived":false,"fork":false,"pushed_at":"2025-03-02T07:07:07.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T13:43:41.940Z","etag":null,"topics":["emailgenerator","extension","fullstack-development","gemini-ai","react","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chinmaywali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-02T05:29:22.000Z","updated_at":"2025-03-14T12:41:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"db699c54-80d6-449f-918f-41308ba27aba","html_url":"https://github.com/chinmaywali/EmailReplyGenerator_AI","commit_stats":null,"previous_names":["chinmaywali/emailreplygenerator_ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chinmaywali/EmailReplyGenerator_AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmaywali%2FEmailReplyGenerator_AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmaywali%2FEmailReplyGenerator_AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmaywali%2FEmailReplyGenerator_AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmaywali%2FEmailReplyGenerator_AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chinmaywali","download_url":"https://codeload.github.com/chinmaywali/EmailReplyGenerator_AI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmaywali%2FEmailReplyGenerator_AI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32802533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emailgenerator","extension","fullstack-development","gemini-ai","react","spring-boot"],"created_at":"2025-03-16T01:17:02.939Z","updated_at":"2026-05-09T00:02:11.113Z","avatar_url":"https://github.com/chinmaywali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n# ✨ AI-Powered Email Generator \u0026 Chrome Extension  \r\n\r\n## 🚀 Overview  \r\nThe **AI-Powered Email Generator \u0026 Chrome Extension** simplifies email writing by generating well-structured messages instantly.  \r\n\r\nThis project includes:  \r\n✅ **A Full-Stack Web Application** – Built with **React.js** (frontend) and **Spring Boot** (backend).  \r\n✅ **A Chrome Extension** – Integrates with **Gmail \u0026 Outlook** for quick email drafting.  \r\n✅ **AI Assistance** – Uses **Gemini API** to enhance email content generation.  \r\n✅ **PostMan** - Tested using Postman for API validation.\r\n\r\nWith a **clean UI** and **one-click email generation**, this tool is designed for **efficiency and convenience**. 🚀  \r\n\r\n---\r\n\r\n## 🛠️ Tech Stack  \r\n\r\n### 🧑‍💻 Backend (Spring Boot)  \r\n- **Spring Boot** – RESTful API for email generation.  \r\n- **Spring Data JPA** – For database interactions (future enhancement).  \r\n- **Maven** – Dependency management.  \r\n- **Lombok** – Reduces boilerplate code.  \r\n- **Gemini API** – Assists in generating email content.\r\n- **Postman** – API testing and validation.\r\n\r\n\r\n### 🌐 Frontend (React.js)  \r\n- **React 18** – For building the UI.  \r\n- **Vite** – Faster development.  \r\n- **Axios** – API communication.  \r\n\r\n### 🧩 Chrome Extension   \r\n- **JavaScript \u0026 HTML** – Lightweight and responsive.  \r\n- **Axios** – Backend communication.  \r\n\r\n---\r\n\r\n## 🎯 Features  \r\n\r\n✅ **Instant Email Generation** – Quickly draft emails.  \r\n✅ **Different Writing Styles** – Formal, Casual, Professional, etc.  \r\n✅ **One-Click Copy \u0026 Paste** – Seamless workflow integration.  \r\n✅ **Chrome Extension** – Works directly inside Gmail \u0026 Outlook.  \r\n✅ **RESTful API Integration** – Backend communication with React \u0026 Chrome extension.  \r\n\r\n🔹 **Web App Features**  \r\n- Simple UI for generating emails.  \r\n- Copy \u0026 paste functionality.  \r\n\r\n🔹 **Chrome Extension Features**  \r\n- Works within **Gmail \u0026 Outlook**.  \r\n- Pop-up UI for instant email generation.  \r\n- Communicates with the backend via API.  \r\n\r\n---\r\n\r\n## 📂 Project Structure  \r\n\r\n```\r\nAI-Email-Generator/\r\n|\r\n│── backend/ (Spring Boot App)\r\n│   ├── src/main/java/com/ai/emailgenerator/\r\n│   │   ├── controllers/  # API Controllers\r\n│   │   ├── services/  # Business Logic\r\n│   │   ├── models/  # Entity Models\r\n│   │   ├── repositories/  # Database Interactions\r\n│   │   ├── EmailGeneratorApplication.java  # Main Application\r\n│   ├── src/main/resources/application.properties\r\n│   ├── pom.xml\r\n|\r\n│── frontend/ (React App)\r\n│   ├── src/\r\n│   │   ├── components/\r\n│   │   │   ├── EmailForm.js\r\n│   │   │   ├── EmailOutput.js\r\n│   │   ├── App.js\r\n│   │   ├── index.js\r\n│   ├── package.json\r\n|\r\n│── chrome-extension/\r\n│   ├── manifest.json  # Chrome extension config\r\n│   ├── popup.html  # UI for extension\r\n│   ├── popup.js  # Frontend logic\r\n│   ├── background.js  # Background script\r\n|\r\n│── README.md\r\n|\r\n│── .gitignore\r\n```\r\n\r\n---\r\n\r\n## ⚙️ Setup Instructions  \r\n\r\n### 💻 Backend Setup (Spring Boot)  \r\n\r\n1️⃣ Clone the repository:  \r\n```bash\r\ngit clone https://github.com/chinmaywali/AI-Email-Generator.git\r\n```\r\n2️⃣ Navigate to the backend folder:  \r\n```bash\r\ncd backend\r\n```\r\n3️⃣ Add your **Gemini API Key** in `application.properties`:  \r\n```\r\nGEMINI_API_KEY=your_api_key_here\r\n```\r\n4️⃣ Build and run the Spring Boot app:  \r\n```bash\r\nmvn spring-boot:run\r\n```\r\n5️⃣ The backend will be available at:  \r\n```\r\nhttp://localhost:8080\r\n```\r\n\r\n### 🎨 Frontend Setup (React)  \r\n\r\n1️⃣ Open another terminal and navigate to the frontend folder:  \r\n```bash\r\ncd frontend\r\n```\r\n2️⃣ Install dependencies:  \r\n```bash\r\nnpm install\r\n```\r\n3️⃣ Start the React app:  \r\n```bash\r\nnpm start\r\n```\r\n4️⃣ The frontend will be available at:  \r\n```\r\nhttp://localhost:3000\r\n```\r\n\r\n### 🧩 Chrome Extension Setup  \r\n\r\n1️⃣ Navigate to the `chrome-extension` folder.  \r\n```bash\r\ncd chrome-extension\r\n```\r\n2️⃣ Open Chrome and go to:  \r\n```\r\nchrome://extensions/\r\n```\r\n3️⃣ Enable **Developer Mode**.  \r\n4️⃣ Click **Load Unpacked** and select the `chrome-extension` folder.  \r\n5️⃣ The extension will be added to Chrome.  \r\n\r\n---\r\n\r\n## 🔗 API Endpoints  \r\n\r\n### 📌 **AI Email Generation API**  \r\n\r\n| Method | Endpoint                   | Description                     | Request Body |\r\n|--------|----------------------------|---------------------------------|--------------|\r\n| **POST**  | `/generate-email`        | Generates an AI-powered email   | `{ \"tone\": \"Professional\", \"message\": \"Follow-up on project\" }` |\r\n\r\n### 📌 **Example API Requests \u0026 Responses**  \r\n\r\n#### ➤ **Request (Generating an Email)**\r\n```json\r\n{\r\n  \"tone\": \"Formal\",\r\n  \"message\": \"Request for rescheduling the meeting\"\r\n}\r\n```\r\n\r\n#### ➤ **Response**\r\n```json\r\n{\r\n  \"email\": \"Dear [Recipient], I hope this email finds you well. I would like to request a rescheduling of our upcoming meeting...\"\r\n}\r\n\r\n```\r\n\r\n---\r\n## 📮 Postman API Testing  \r\n\r\nTo **test the AI Email Generation API** in **Postman**, follow these steps:  \r\n\r\n1️⃣ Open **Postman**.  \r\n2️⃣ Click on **Import**.  \r\n3️⃣ Click **Raw Text** and paste the following **POST request**:  \r\n\r\n### **📌 AI Email Generation API (POST Request)**  \r\n- **Endpoint:** `http://localhost:8090/api/email/generate`  \r\n- **Method:** `POST`  \r\n- **Headers:**  \r\n  - `Content-Type: application/json`  \r\n- **Body (JSON):**  \r\n```json\r\n{\r\n    \"emailContent\": \"Hey there, this is Jhon here. We connected at AWS Summit.. how is your startup going?\",\r\n    \"tone\": \"Professional\"\r\n}\r\n```\r\n- **Response (Example):**  \r\n```json\r\n{\r\n    \"emailContent\": \"Dear Jhon,\\n\\nIt was a pleasure connecting with you at the AWS Summit. Thank you for reaching out.\\n\\nRegarding your question, our startup is progressing well. We've been focusing on [mention a specific area of progress, e.g., developing our MVP, securing seed funding, onboarding new clients].\\n\\nI'd be happy to share more details when you have time. Perhaps we could schedule a brief call in the coming weeks?\\n\\nBest regards,\\n[Your Name]\"\r\n}\r\n```\r\n4️⃣ Click **Send** to test the API and get an AI-generated email response! ✅  \r\n\r\n✅ **Available Postman Requests:**  \r\n- **Generate Email** – AI-generated emails based on user input.  \r\n- **Validate API Responses** – Ensure smooth AI integration.  \r\n\r\n---\r\n\r\n## 🤝 Contributing  \r\nContributions are welcome! Feel free to **fork** this repo and submit a **pull request**.  \r\n\r\n\r\n---\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinmaywali%2Femailreplygenerator_ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinmaywali%2Femailreplygenerator_ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinmaywali%2Femailreplygenerator_ai/lists"}