A simple agent demonstrating email integration with ADK.
This agent showcases:
- Integration with Resend API for sending emails
- How to structure and format email content
- Implementing external APIs with ADK agents
- Foundation for building notification systems
Uses a single agent with a specialized tool:
- EmailAgent: Uses the
send_emailtool to send emails via Resend
- Set up environment variables:
cp .env.example .env- Edit the
.envfile with your API keys:
NEBIUS_API_KEY="your_nebius_api_key_here"
NEBIUS_API_BASE="https://api.studio.nebius.ai/v1"
RESEND_API_KEY="your_resend_api_key_here"
Run with ADK CLI:
# Terminal - Run directly in the terminal
adk run email_adk_agent
# Dev UI - Visual interface for testing and debugging
adk web- Nebius Token Factory - For LLM inference
- Resend - For email sending
To customize the email content, modify the send_email function in agent.py:
params = {
"from": "Your Name <your@email.com>",
"to": ["recipient@email.com"],
"subject": "Custom Email Subject",
"html": "<p>Your custom email content here</p>",
}