Generate professional email drafts using Python templates. Use when the user needs to compose business emails, follow-ups, introductions, meeting requests, or other professional correspondence. Supports multiple tones, languages, and email types with structured output.
Generate professional email drafts from structured input parameters.
| Script | Purpose | Dependencies |
|---|---|---|
email_draft.py | Generate structured email drafts | Python 3 (stdlib only) |
python scripts/email_draft.py --type TYPE --to "RECIPIENT" --subject "SUBJECT" --body "KEY_POINTS" --tone TONE
| Type | Description |
|---|---|
introduction | Self-introduction or connecting two people |
follow-up | Follow up on a previous conversation or meeting |
request | Request information, meeting, or action |
thank-you | Express gratitude after meeting/event |
apology | Professional apology for delays/issues |
announcement | Announce news, changes, or updates |
invitation | Invite to meeting, event, or collaboration |
rejection | Politely decline a request or proposal |
reminder | Gentle reminder about deadlines or tasks |
proposal | Propose a project, partnership, or idea |
cold-outreach | First contact with a potential client/partner |
internal-memo | Internal team communication |
custom | Custom email from provided key points |
formal — Traditional business correspondenceprofessional — Standard professional (default)friendly — Warm but professionalcasual — Informal, for colleagues you know wellurgent — Time-sensitive communication--type TYPE — Email type (see table above)--to "NAME" — Recipient name--from "NAME" — Sender name--subject "SUBJECT" — Email subject line--body "KEY_POINTS" — Key points to include (semicolon-separated)--tone TONE — Writing tone (default: professional)--lang LANG — Language: en (default), zh, ja, ko--save PATH — Save draft to file--context "CONTEXT" — Additional context or background# Professional follow-up email
python scripts/email_draft.py --type follow-up --to "John" --subject "Follow up on our meeting" --body "discussed Q3 targets;agreed on timeline;need budget approval" --tone professional
# Formal Chinese business email
python scripts/email_draft.py --type request --to "王经理" --subject "关于项目合作" --body "希望安排会议;讨论合作细节;下周方便的时间" --tone formal --lang zh
# Internal announcement
python scripts/email_draft.py --type announcement --to "Team" --subject "New office policy" --body "remote work policy update;3 days in office;effective next month" --tone friendly
# Cold outreach
python scripts/email_draft.py --type cold-outreach --to "Sarah" --from "Alex" --subject "Partnership opportunity" --body "mutual benefit;our platform capabilities;propose a call" --tone professional --save outreach.txt
--to--format html for HTML-formatted email (default is plain text)--signature "Your Name\nTitle\nCompany" to append a signature block