← ClaudeAtlas

send-emaillisted

Send emails via Gmail API with approval workflow and audit logging. Smart approval logic determines if emails need human review based on recipient, content, and attachments. Use when you need to send emails programmatically, automate email responses, or integrate email sending into workflows. Supports attachments and templates.
muhammad-anas35/Nexus-ai-employee · ★ 1 · AI & Automation · score 74
Install: claude install-skill muhammad-anas35/Nexus-ai-employee
# Send Email Send emails via Gmail API with approval workflow and audit logging. ## Overview This skill enables Claude to send emails through Gmail API with human-in-the-loop approval for sensitive communications. All emails are logged and tracked for audit purposes. ## Usage ```bash # Send email with approval claude /send-email --to "client@example.com" --subject "Invoice" --body "Please find attached..." # Send to known contact (may auto-approve based on rules) claude /send-email --to "known@client.com" --subject "Follow-up" --body "..." # Send with attachment claude /send-email --to "client@example.com" --subject "Report" --body "..." --attach "report.pdf" ``` ## What It Does 1. **Creates email draft** in `/Plans/EMAIL_*.md` 2. **Checks approval rules** from Company_Handbook.md 3. **Requests approval** if needed via `/Pending_Approval/` 4. **Sends email** via Gmail API after approval 5. **Logs transaction** to `/Logs/` and moves to `/Done/` ## Prerequisites ### Gmail API Setup Same as Gmail Watcher: 1. Enable Gmail API in Google Cloud Console 2. Create OAuth2 credentials 3. Download `credentials.json` 4. Authenticate on first run ### Required Scopes ```python SCOPES = [ 'https://www.googleapis.com/auth/gmail.readonly', 'https://www.googleapis.com/auth/gmail.send', 'https://www.googleapis.com/auth/gmail.compose' ] ``` ## Configuration ### Environment Variables ```bash # .env file GMAIL_CREDENTIALS_PATH=./credentials.json GMAIL_TOKEN_PATH=./token