📧 AI-Powered Email Reply Generator Generate professional, friendly, or custom-tone email replies using AI. Built with React + TailwindCSS, powered by Hugging Face’s Zephyr-7B LLM.
🚀 Live Demo 👉 Live Site (optional)
📌 Features ✨ Paste any email and generate a smart reply
🗣️ Choose tone: Formal, Friendly, Thankful, or Neutral
🔁 Regenerate or ✂️ Copy replies instantly
💾 Save replies as drafts (stored locally)
💻 Responsive modern UI using Tailwind CSS
🤖 Uses Hugging Face’s Zephyr-7B model via API
🛠️ Tech Stack Layer Tech Used Frontend React (Hooks), Tailwind CSS AI Backend Hugging Face Inference API (Zephyr-7B) Testing React Testing Library, Jest Build Tool Create React App (react-scripts)
📂 Folder Structure pgsql Copy Edit chatgpt-email-reply/ ├── public/ ├── src/ │ ├── App.js │ ├── App.css │ ├── index.js │ ├── index.css │ ├── App.test.js │ ├── reportWebVitals.js │ └── setupTests.js ├── .gitignore ├── package.json ├── tailwind.config.js ├── postcss.config.js ├── README.md └── Api_creating.txt 🔄 How It Works 📝 User pastes an email into a textarea.
🎯 Selects a tone (Formal, Friendly, Thankful, etc.).
🚀 Clicks Generate Reply → Sends a request to Hugging Face API.
🧠 AI generates a smart response, displayed instantly.
💾 User can copy, regenerate, or save the reply.
🧪 Testing ✅ Basic test included using React Testing Library and Jest
📁 App.test.js ensures the app renders properly (starter test)
🧩 Extendable to cover API calls, button clicks, etc.
⚙️ Setup Instructions
-
Clone the Repository bash Copy Edit git clone https://github.com/Lavi2605/AI-Powered_Email_Relpy_Generator.git cd AI-Powered_Email_Relpy_Generator
-
Install Dependencies bash Copy Edit npm install
-
Create .env File bash Copy Edit REACT_APP_HF_API_KEY=your_huggingface_api_key 📄 Refer to Api_creating.txt for instructions on generating your Hugging Face API key.
-
Start the Development Server bash Copy Edit npm start Open http://localhost:3000 in your browser.
🚀 Deployment You can deploy the app to:
Vercel
Netlify
Don’t forget to add your Hugging Face API key as an environment variable in the deployment settings.
💡 Future Improvements 🧩 Add more tone options (sarcastic, apologetic, etc.)
✅ Expand test coverage
🔐 Use proxy/backend to hide API key
📥 Export replies to PDF or email directly
🔒 Security Note
📄 License This project is open-source and free to use under the MIT License.