AI-powered email automation plugin for Eliza that intelligently detects email-worthy conversations and handles generation/delivery. This is not perfect and is simply a solid starting point, and I would encourage any and all contributions!
- Partnership opportunity detection
- Technical discussion recognition
- Business proposal identification
- Follow-up requirement analysis
- Structured email formatting
- Context-aware content
- Professional tone maintenance
- Technical detail inclusion
# Required
RESEND_API_KEY= # Your Resend API key
DEFAULT_TO_EMAIL= # Default recipient
DEFAULT_FROM_EMAIL= # Default sender
# Optional Settings
EMAIL_AUTOMATION_ENABLED=true # Enable AI detection. If this is enabled, the plugin will automatically detect email-worthy conversations and handle generation/delivery and only that.
EMAIL_EVALUATION_PROMPT= # Custom detection criteria for shouldEmailimport { emailAutomationPlugin } from '@elizaos/plugin-email-automation';
// Add to your Eliza configuration
{
plugins: [emailAutomationPlugin],
settings: {
EMAIL_AUTOMATION_ENABLED: true,
// ... other settings
}
}The plugin uses Handlebars for templating. Here's an example output:
This template produces professional emails like the example shown in the image above. You can customize the template by:
- Creating your own
.hbsfile - Registering it with the template manager
- Specifying your template when sending emails
# Installation
pnpm install
# Testing
pnpm test
pnpm test:watch
pnpm test:coverage
# Building
pnpm build- Unit tests for all services
- Integration tests for end-to-end flows
- Throttling and rate limiting tests
- Error handling scenarios
- Mock providers for testing
graph TD
A[Email Trigger] --> B[Automation Service]
B --> C{AI Evaluation}
C -->|Yes| D[Generation Service]
D --> E[Email Service]
E --> F[Resend Provider]
F --> G[Delivery]
Architecture Overview:
- Resend Provider support (more to come)
- AI-powered email detection
- Context-aware content generation
- Professional template rendering
This plugin integrates with and builds upon:
- Resend: Modern email API for developers
- Handlebars: Templating engine for email formatting
For more information about Resend capabilities:
This plugin is part of the Eliza project. See the main project repository for license information.