Use Cases
- Send automated email responses
- Deliver notifications and alerts via email
- Forward processed information to team members
- Send confirmation emails after workflow completion
- Create personalized email campaigns
Configuration
Gmail Authorization
The Gmail Sender uses OAuth 2.0 for secure authentication. Click the “Connect Gmail” button to authorize Agility to send emails on your behalf.Email Composition
The recipient’s email address. You can insert dynamic values from previous workflow steps.Example:
[email protected], {{emailFrom}} (to reply to the sender)The email subject line. Supports dynamic field insertion.Example:
Re: {{emailSubject}}, Order Confirmation #{{orderNumber}}The email message body in plain text format. Click on input fields to insert dynamic content from previous agents.Example:
Input Requirements
The Gmail Sender can access all data from previous workflow steps. Common fields to use:{{emailFrom}}- Original sender (from Gmail Reader){{emailSubject}}- Original subject (from Gmail Reader){{text}}- Generated content (from Text Generator)- Any other fields from previous agents
Output Structure
The Gmail Sender does not produce structured output for subsequent agents. It performs the action of sending an email.While this agent doesn’t output data, its successful execution can trigger subsequent agents in your workflow.
Usage Examples
Automated Email Response
Workflow: Read support emails and send AI-generated responses-
Gmail Reader
- From Email:
[email protected] - Only Unread: true
- From Email:
-
Text Generator
- Prompt: “Generate a helpful support response to: ”
-
Gmail Sender
- To:
{{emailFrom}} - Subject:
Re: {{emailSubject}} - Body:
- To:
GitHub Commit Notification
Workflow: Send email summaries of new commits-
GitHub Reader
- Repository:
owner/repo
- Repository:
-
Text Generator
- Prompt: “Summarize these commits: ”
-
Gmail Sender
- To:
[email protected] - Subject:
New commits in {{repoName}} - Body:
- To:
Multi-Step Notification
Workflow: Process data and notify multiple recipients-
Gmail Reader
- From Email:
[email protected]
- From Email:
-
Text Generator
- Prompt: “Extract order details: ”
-
Gmail Sender (To Customer)
- To:
{{emailFrom}} - Subject:
Order Confirmation - Body:
- To:
-
Discord Messenger (Internal Notification)
- Message:
New order processed: {{text}}
- Message:
Best Practices
Email Composition
- Always include a clear subject line
- Use proper email formatting with greetings and signatures
- Test emails with the “Test Agent” button before deploying
- Include relevant context from previous workflow steps
Personalization
- Use dynamic fields to personalize each email
- Address recipients by name when available
- Reference specific details from their original message
Deliverability
- Avoid sending too many emails in rapid succession
- Use clear, non-spammy subject lines
- Include unsubscribe information for automated campaigns
- Verify recipient email addresses are valid
Security
- Review OAuth permissions in your Google Account regularly
- Use appropriate Gmail accounts (business vs. personal)
- Don’t send sensitive information without encryption
- Monitor sent emails to ensure proper workflow execution
Error Handling
Common errors and solutions:- Gmail authorization required: Click “Connect Gmail” to grant access
- Invalid recipient address: Verify the email address format is correct
- Recipient email required: Ensure the “To” field is not empty
- Subject is required: Provide a subject line
- Email body required: Ensure the body field contains content
- Rate limit exceeded: Wait before sending more emails or reduce frequency
Testing
Test Agent
Sends a test email immediately using your current configuration. Verify the email is received and formatted correctly.Test Workflow
Executes the complete workflow, including any email reading, processing, and sending steps.Limitations
- Emails are sent as plain text (HTML formatting not currently supported)
- Attachments are not supported
- Gmail API daily sending limits apply (typically 100-500 emails per day)
- Maximum email size follows Gmail limits (approximately 25MB)