How arsath-mohamed/ai-cold-email-generator works
This Streamlit app turns freelancer and target details plus scraped public-page context into an editable personalized cold email, then can send it through Gmail. The main path is user input → scraping and context assembly → Groq generation → review/edit → Gmail delivery. The source excerpts show the app’s calls and service integrations; no separate persistence subsystem is evident beyond Gmail OAuth token files.
Main entry points: app.py App workflow · scraper.py Page scraper · gmail.py Gmail sender · llm.py Email generator
Components 13
Streamlit workflow
- App workflow
app.py - Context assembly
app.py - Review and edit
app.py - Clipboard copy
app.py
Target research
- Page scraper
scraper.py
Email generation
- Email generator
llm.py
Gmail delivery
- Gmail sender
gmail.py - OAuth credentials
gmail.py
Other components
- Freelancer
- Target website
- Groq API
- Gmail API
- Email recipient
Connections 13
- Freelancer → App workflow: enters details
app.py - App workflow → Page scraper: fetches context
app.py - Page scraper → Target website: requests page
scraper.py - Page scraper → Context assembly: returns page data
app.py - App workflow → Context assembly: assembles inputs
app.py - App workflow → Email generator: requests draft
app.py - Email generator → Groq API: generates text
llm.py - App workflow → Review and edit: displays draft
app.py - Review and edit → Clipboard copy: copies text
app.py - Email recipient → App workflow: enters address
app.py - App workflow → Gmail sender: sends reviewed email
app.py - Gmail sender → OAuth credentials: loads or saves tokens
gmail.py - Gmail sender → Gmail API: submits message
gmail.py