AI Email Generator is a web application that generates professional emails based on user input using Amazon Bedrock and the Amazon Nova Lite foundation model. Users can specify the purpose of the email, recipient, tone, and key points, and the application generates a well-structured email in seconds.
The project was built to explore Generative AI application development using AWS services while learning prompt engineering, Amazon Bedrock, and Python.
- Generate professional emails using AI
- Choose different email tones (Formal, Friendly, Professional)
- Enter custom purpose, recipient, and key points
- AI-powered email generation using Amazon Bedrock
- Simple and responsive Streamlit interface
- Download generated emails as a text file
- Input validation and error handling
- Python
- Streamlit
- Amazon Bedrock
- Amazon Nova Lite (
amazon.nova-lite-v1:0)
- boto3
- Git
- GitHub
AI-Email-Generator/
│
├── app.py # Streamlit user interface
├── ai.py # Amazon Bedrock integration
├── requirements.txt # Project dependencies
├── README.md
└── .gitignore
-
The user enters:
- Purpose
- Recipient
- Tone
- Key Points
-
A prompt is dynamically generated based on the user's input.
-
The prompt is sent to Amazon Bedrock using the Amazon Nova Lite model.
-
The model generates a professional email.
-
The generated email is displayed in the application and can be downloaded as a text file.
git clone https://github.com/Bmdsaif005/AI-Email-Generator.git
cd AI-Email-Generatorpython -m venv .venvWindows
.venv\Scripts\activateLinux / macOS
source .venv/bin/activatepip install -r requirements.txtConfigure your AWS credentials before running the application.
aws configureProvide:
- AWS Access Key ID
- AWS Secret Access Key
- Default Region (recommended:
ap-south-1) - Output Format (
json)
Ensure your AWS account has access to Amazon Bedrock and the Amazon Nova Lite model.
streamlit run app.pyThe application will be available in your browser at:
http://localhost:8501
- Email templates for common use cases
- Temperature and maximum word controls
- Copy-to-clipboard functionality
- PDF download support
- Improved UI and layout
- Email history using session state
- Support for multiple AI models
This project helped me understand:
- Streamlit application development
- Prompt engineering
- Amazon Bedrock integration
- Amazon Nova Lite
- boto3 SDK
- AWS authentication and configuration
- Building AI-powered applications with Python
Mohammed Saif
GitHub: https://github.com/Bmdsaif005

