Resend

Send transactional emails from an Agent with ResendTools and the Resend API.

ResendTools enable an Agent to send emails using Resend.

Prerequisites

The following example requires the resend library and an API key from Resend.

uv pip install -U agno resend openai
export RESEND_API_KEY=***

Example

The following agent will send an email using Resend.

cookbook/91_tools/resend_tools.py
from agno.agent import Agent
from agno.tools.resend import ResendTools

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

agent = Agent(tools=[ResendTools(from_email=from_email)])
agent.print_response(f"Send an email to {to_email} greeting them with hello world")

Toolkit Params

ParameterTypeDefaultDescription
api_keystrNoneResend API key. If not provided, uses RESEND_API_KEY env var.
from_emailstrNoneThe email address used as the sender in email communications.
enable_send_emailboolTrueEnable the send_email functionality.
allboolFalseEnable all functionality.

Toolkit Functions

FunctionDescription
send_emailSend an email using the Resend API.

Sender setup

Replace from_email with an address on a domain verified in Resend, and to_email with the recipient for your example. The API key does not verify a sending domain automatically. See Resend's Python setup for domain verification and test-sender restrictions.

Developer Resources