Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

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

  1. Gmail Trigger - AI Agent Label
  2. Extract Email Data
  3. AI Agent - Email Classifier
  4. OpenAI Chat Model
  5. Parse AI Classification
  6. Add Classification Label
  7. Route by Category
  8. Create Draft Response
  9. Send Action Item Slack Alert
  10. Send Newsletter Summary to Slack

Similar automations