A Streamlit web app that generates professional or daily use emails using the latest open-source AI models via the Groq API.
Simply enter your requirements and instantly get high-quality email drafts and improvement suggestions.
Live app: https://email-assistant-710.streamlit.app/
- AI-Powered Email Generation: Quickly create emails for work, study, outreach, and more.
- Improvement Suggestions: Get actionable feedback to improve your drafts.
- Fast & Free: Powered by Groq’s Llama 3 models – no payment or credit card required.
- Secure: Your API key is stored as a secret on Streamlit Cloud, never in code.
- Python 3.8+
- A free Groq API key (Get one here)
- (Optional) Streamlit Cloud account for deployment
-
Clone this repository:
git clone https://github.com/YOUR_USERNAME/your-repo-name.git cd your-repo-name -
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set your Groq API key:
- If running locally, create a file called
.envin the root directory and add:GROQ_API_KEY="gsk_...your_api_key..." - If deploying on Streamlit Cloud, add your key in the app settings under "Secrets".
- If running locally, create a file called
Start the app locally:
streamlit run app.py- Push your code to GitHub.
- Go to Streamlit Cloud and create a new app.
- Set your
GROQ_API_KEYas a secret in the app’s settings. - Deploy & share your app link!
├── app.py # Streamlit frontend
├── email_generator.py # Groq-powered backend logic
├── requirements.txt # Python dependencies
├── .env # Your API key (never commit this!)
├── .gitignore # Ignore secrets and virtualenv
└── README.md # This file
See requirements.txt:
streamlit
python-dotenv
groq
Never commit your .env file or API keys to GitHub.
Use .gitignore to keep secrets safe.
MIT
Made by Khushbu Sharma