Resend Tools

Send an email from your agent with ResendTools and a configured from address.

resend_tools.py
"""
Resend Tools
=============================

Demonstrates resend tools.
"""

from agno.agent import Agent
from agno.tools.resend import ResendTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


from_email = "<enter_from_email>"
to_email = "<enter_to_email>"

agent = Agent(tools=[ResendTools(from_email=from_email)])

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response(f"Send an email to {to_email} greeting them with hello world")

Replace from_email with a sender on your verified Resend domain and to_email with the intended recipient. Running this example sends an actual email. The toolkit submits the body as HTML; its success message reports API submission, not confirmed delivery to the inbox.

Run the Example

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate

Install dependencies

uv pip install -U agno openai resend

Export your API keys

export OPENAI_API_KEY="your_openai_api_key_here"
export RESEND_API_KEY="your_resend_api_key_here"

Run the example

Save the code above as resend_tools.py, then run:

python resend_tools.py

Full source: cookbook/91_tools/resend_tools.py