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 generates email
- Calls Email Tool
- To: recipient
- Subject: text
- Body: content
- Email Provider sends
- 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:- Go to Project Settings
- Find Email Configuration
- Select email provider (SMTP, SendGrid, AWS SES, etc.)
- Enter credentials
- Verify connection
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”
- 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
Email not sending
Email not sending
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
Invalid email address
Invalid email address
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
Email delivery delayed
Email delivery delayed
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
Agent not calling Email Tool
Agent not calling Email Tool
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
Email provider errors
Email provider errors
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
- Email Tool Configuration - Set up email provider
- Agent Configuration - Add tools to agents
- Workflows with Email - Use email in workflows
- Create Your First Agent - Get started with agents