Skip to main content
Email providers (such as SMTP, SendGrid, or AWS SES) are configured once at the project level, not per tool, so every agent in the project sends through the same connection. This keeps credentials centralized and makes it easy to swap providers without touching individual agents.

What is an Email Tool?

An Email Tool lets you:
  • ✅ Send emails from agents
  • ✅ Use configured email providers
  • ✅ Support dynamic recipients
  • ✅ Include rich content
  • ✅ Track email delivery
  • ✅ Integrate with customer communications
Agent Process:
  1. Agent generates email
  2. Calls Email Tool
    • To: recipient
    • Subject: text
    • Body: content
  3. Email Provider sends
  4. Email delivered

Use Cases

Customer Support Notifications

An agent resolves a support ticket and sends a confirmation:

Order Confirmations

An e-commerce agent processes a purchase:

Alert Notifications

An agent detects an important event:

Follow-up Communications

An agent initiates a workflow requiring follow-up:

Configuration

Adding Email Tool to an Agent

1

Go to Agent Settings

Open the agent where you want to use the Email Tool
2

Open Tools Tab

Navigate to the Tools configuration section
3

Add New Tool

Click “Add Tool” and select “Email”
4

Configure Tool

  • Name: Descriptive identifier (e.g., “Send Notification”)
  • Description: What this tool does
  • Email provider should be configured at project level
5

Save

Email Tool is now available to the agent

Email Provider Configuration

Email providers are configured at the project level, not per-tool:
  1. Go to Project Settings
  2. Find Email Configuration
  3. Select email provider (SMTP, SendGrid, AWS SES, etc.)
  4. Enter credentials
  5. Verify connection
Once configured, all agents in the project can use the Email Tool.

How to Use

Email Parameters

When calling the Email Tool, agents specify:

Required Fields

  • To: Recipient email address (required)
  • Subject: Email subject line (required)
  • Body: Email content (required)

Optional Fields

  • CC: Carbon copy recipients (optional)
  • BCC: Blind carbon copy (optional)
  • Reply-To: Reply address (optional)
  • Attachments: Files to attach (optional)
  • HTML Body: Rich HTML formatting (optional)

Dynamic Recipients

The agent can use context to determine recipients:

Email Content Best Practices

Subject Line:
  • Clear and specific
  • Includes action or status
  • Example: “Your order #12345 has shipped”
Body:
  • Professional greeting
  • Clear explanation of purpose
  • Specific details (order numbers, dates, etc.)
  • Call to action if needed
  • Professional closing

Email Tool vs Workflow Email Node


Best Practices

Verify Recipients

Always verify email addresses before sending

Clear Subject Lines

Use descriptive subjects for easy identification

Professional Content

Keep emails clear, concise, and professional

Error Handling

Handle delivery failures gracefully

Example: Support Agent Sending Confirmation

Email Template Example


Troubleshooting

Symptoms: Email Tool executes but email doesn’t arriveSolutions:
  • Verify email provider is configured correctly
  • Check recipient email address is valid
  • Review project email settings
  • Check email logs for errors
  • Verify email credentials haven’t expired
Symptoms: Error when sending to provided addressSolutions:
  • Validate email format in agent prompt
  • Ask user to confirm email if unclear
  • Implement email verification in agent
  • Check for typos in dynamic email addresses
Symptoms: Email takes a long time to arriveSolutions:
  • Check email provider status
  • Review email size/content
  • Check recipient’s spam folder
  • Verify sender reputation
  • Review provider rate limits
Symptoms: Agent has tool but doesn’t use itSolutions:
  • Add to agent prompt when to use email
  • Include examples in prompt
  • Test with explicit instruction
  • Verify tool is properly configured
Symptoms: Error messages from email serviceSolutions:
  • Verify credentials are correct
  • Check API key or token hasn’t expired
  • Review provider’s rate limits
  • Ensure sender address is verified
  • Contact email provider support if needed

Advanced Usage

Rich HTML Emails

Send formatted emails with HTML:

Conditional Email Logic

Email with Context


Integration Examples

Support Workflow

Order Processing

Alert System


Next Steps