What this automation does
Every email that hits your inbox gets read by AI, which classifies it into categories you define — client requests, invoices, newsletters, internal updates, sales outreach, and spam. Based on the classification, it applies Gmail labels, stars urgent messages, and archives low-priority ones.
This is inbox zero on autopilot. Instead of manually scanning and sorting 50-200 emails per day, you open Gmail to find everything pre-organized. Client emails are starred, newsletters are archived, and invoices are labeled for your bookkeeper.
Tools you need
- Gmail (Google Workspace): Your email inbox — needs API access for label management
- OpenAI API: Classifies emails by reading subject and body ($0.005-0.01 per email)
- Zapier: Triggers on new emails, sends to OpenAI, applies labels and actions
How to set it up
Step 1: Define your email categories. Create Gmail labels for each: Clients, Invoices, Internal, Newsletters, Sales Outreach, Action Required. Think about what groupings would save you the most time.
Step 2: Create a Zapier zap triggered by new emails in Gmail. Pass the sender, subject, and first 500 characters of the body to OpenAI. Include your category definitions in the system prompt and ask for a JSON response with category, priority (high/medium/low), and a one-line summary.
Step 3: Use Zapier's Paths feature to route based on the AI's classification. Each path applies the appropriate Gmail label. For 'Action Required' emails, also add a star. For 'Newsletters' and 'Sales Outreach', apply the label and archive.
Step 4: Run for 3 days and review the results. Most tuning involves refining what counts as 'Action Required' versus normal client emails. Add example senders to your prompt for edge cases.
Cost breakdown
| Item | Cost | Notes |
|---|---|---|
| Zapier | $20/mo | Starter plan handles most email volumes |
| OpenAI API | $3-$10/mo | ~$0.007 per email at 500-1500 emails/mo |
| Gmail | $0 (existing) | Uses your current Google Workspace |
| Setup time | 20-30 min | One-time configuration |
| Total monthly | $23-$30/mo | Saves 45+ min of manual sorting per day |
Frequently asked questions
Yes. Zapier and Make both support Outlook triggers. The workflow is identical — just swap the Gmail trigger and label actions for Outlook equivalents. Outlook uses folders and categories instead of labels, but the concept is the same.
Email content is sent to OpenAI for classification, so you need to be comfortable with that. For sensitive industries, you can use Azure OpenAI (which offers data residency guarantees) or run a local model. You can also limit the automation to subject lines only, though accuracy drops slightly.