Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.3 KB

File metadata and controls

59 lines (43 loc) · 1.3 KB

Email Agent (Communication Demo)

A simple agent demonstrating email integration with ADK.

Overview

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

Technical Pattern

Uses a single agent with a specialized tool:

  • EmailAgent: Uses the send_email tool to send emails via Resend

Setup

  1. Set up environment variables:
cp .env.example .env
  1. Edit the .env file 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"

Usage

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

Required API Keys

Customization

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>",
}