Email Automation
Classify Gmail with OpenAI, Draft Replies and Alert Slack
When a new email arrives in Gmail, an OpenAI agent classifies it, applies a label, drafts a reply where needed and notifies Slack.
What it does
## Intelligent Email Assistant with AI Classification, Gmail Drafts, and Slack Notifications Created by ZenAgent Labs ### What it does This workflow automatically processes incoming emails with intelligent AI classification, creating draft responses and sending Slack notifications based on email content. ### How it works 1. Monitors emails with the 'AI-Agent' label 2. AI classification into categories: Inquiry, Support, Newsletter, Action Item 3. Adds appropriate labels to emails automatically 4. Creates draft replies for Support and Inquiry emails 5. Sends Slack notifications for Action Items and Newsletter summaries ### Setup Requirements - Gmail OAuth2 credentials configured - OpenAI API credentials (or other AI provider) - Slack OAuth2 credentials (if notifications desired) - Gmail labels created (see setup instructions below) ### How to customize - Modify classification categories in the AI Agent - Adjust label mappings in the Parse Classification node - Customize draft response templates - Configure different Slack channels for different email types
The steps
- Gmail Trigger - AI Agent Label
- Extract Email Data
- AI Agent - Email Classifier
- OpenAI Chat Model
- Parse AI Classification
- Add Classification Label
- Route by Category
- Create Draft Response
- Send Action Item Slack Alert
- Send Newsletter Summary to Slack
Similar automations