An AI-powered Email Generator built using Spring Boot and Google's Gemini API. This application generates professional, context-aware emails based on user input, helping users quickly draft emails for various purposes such as business communication, job applications, customer support, and more.
- Generate professional emails using AI
- Powered by Google Gemini API
- RESTful API architecture
- Clean Spring Boot backend implementation
- JSON-based request and response handling
- Easy integration with frontend applications
- Configurable email tone and content generation
- Java
- Spring Boot
- Maven
- Spring Web
- Google Gemini API
- Git
- GitHub
- Postman
src/
├── main/
│ ├── java/
│ │ └── com/example/demo/
│ │ ├── controller/
│ │ ├── service/
│ │ ├── dto/
│ │ └── config/
│ └── resources/
│ └── application.properties
└── test/
POST /api/email/generate{
"prompt": "Write a professional leave request email for two days."
}{
"emailContent": "Dear Manager,\n\nI would like to request..."
}- Java 17+
- Maven
- Gemini API Key
git clone git@github.com:Sumit-0011/AI-Email-Generator.git
cd AI-Email-GeneratorAdd your Gemini API key in:
application.propertiesExample:
gemini.api.key=YOUR_API_KEYmvn spring-boot:runOr
mvn clean install
java -jar target/*.jarUse Postman or any API client to send requests to the API endpoint.
Example:
POST http://localhost:8080/api/email/generate- Email tone selection (Formal, Friendly, Professional)
- Multiple language support
- Email templates
- Frontend UI with React or Angular
- Email sending integration
- User authentication
This project helped me gain hands-on experience with:
- Spring Boot REST APIs
- External API integration
- JSON request/response handling
- Maven project management
- Git and GitHub workflows
- Generative AI application development
Sumit
GitHub: https://github.com/Sumit-0011
This project is open source and available under the MIT License.