Email Classification
Click to zoom
Email Classification
Smart email router that uses AI to automatically categorize and route emails to appropriate handlers using branching logic.
Automate your email processing with AI-powered classification. This example demonstrates how to build intelligent email routing workflows.
How It Works
- AI Classification: Uses GPT to analyze email content and intent
- Smart Routing: Routes to sales, support, or spam based on classification
- IMAP Integration: Works with any email provider
- Branching Logic: Conditional workflows based on AI decisions
Great for building automated customer support systems, lead routing, or any email processing automation.
Requirements
- OpenAI API key
- IMAP-enabled email account
Quick Start
Run using the Habits CLI wrapper, recommended if you develop local Habits
# First, download the example files
npx habits@latest cortex --config ./email-classification/stack.yaml