Send Email Skill
This skill allows agents to send emails via the user's Gmail account using a Python script.
When to Use
Use this skill when you need to perform automated email communication, such as sending reports, notifications, or project updates.
Prerequisites
- Valid Gmail credentials stored in
.gemini/antigravity/brain/...(configured). google-api-python-clientinstalled.
Process
- Prepare the email recipient, subject, and body.
- Formulate the python command with the appropriate arguments.
- Execute the command and monitor for success or failure logs.
Best Practices
- Always verify recipient email addresses before sending.
- Keep email bodies concise and professional.
- Use descriptive subjects to ensure clarity for the recipient.
Tools
Send Email
Send an email to a specific recipient.
Usage:
# To send an email
run_command(
CommandLine='python scripts/send_gmail.py --to "recipient@example.com" --subject "Subject Line" --body "Message body goes here"',
Cwd='.', # Use factory root
SafeToAutoRun=False, # User should confirm email sending usually
WaitMsBeforeAsync=5000
)
Security
- The script uses hardcoded paths to credentials stored outside the git repository.
- Do not modify the credential paths in
scripts/send_gmail.py.