STAYCHARTED BLOG · Machine learning · Rules and automation
Outlook rules vs a trained model for shared inbox routing
Outlook rules sort by sender and keywords until customers word things differently. When a model trained on your past routing does better, and how to add it.
What Outlook and Exchange rules do well
- Sender and domain. Everything from a key customer or a system address goes to one folder.
- Exact phrases from systems. Automated emails with a fixed subject line.
- Policy. Mail flow rules for disclaimers, blocking, or sending a copy for compliance.
Keep these. They're reliable because the input is predictable.
Where they run out
- People don't write in keywords. "My order never came", "where's my package" and "still waiting on delivery" need three conditions, or one that catches too much.
- Order and overlap. When several rules match, their order and "stop processing more rules" decide the outcome.
- Limits. Inbox rules in Exchange Online share a size limit per mailbox (Microsoft documents a maximum of 256 KB), and client-only rules in classic Outlook require that client to be running. New Outlook and Outlook on the web support server-side rules.
- No confidence from a simple match. A basic rule moves the email or it doesn't; you need extra review logic to catch ambiguous matches.
- Accuracy needs a separate check. Compare rule destinations with the team’s final routing to measure mistakes.
What a trained model does instead
Your mailbox history already says where each kind of email belongs: which folder, category or person it ended up with. A model trained on that reads the subject and body and suggests the team or category, with a confidence.
- It reads meaning, so new wording doesn't need a new rule.
- It's measured per team on emails it never saw.
- Below your cutoff, the email stays in the main inbox for a person to triage.
- Each time someone moves an email, that's a label for the next version.
Rules and model together
- Keep sender and policy rules (key customers, system mail, compliance copies).
- For everything else, a Power Automate flow (or Zapier or Make) sends the new email's subject and body to StayCharted and applies the suggested category or folder when the confidence is above your cutoff.
- Below the cutoff, the email stays where people triage it today.
How to decide, with your own numbers
- Export a few months of emails with the folder or category they ended up in (Power Automate or an export of the folders).
- Train on everything before last month and test on last month.
- Compare with where your rules put the same emails.
Explore the rules vs machine learning series
- Rule-Based System vs Machine Learning: When Rules Stop Scaling
- Convert a Rule-Based System to Machine Learning, Safely
- ServiceNow Assignment Rules vs Machine Learning: When to Switch
- GL Coding Rules vs Machine Learning: Where Vendor Rules Fail
- QuickBooks Bank Rules vs AI Categorization: When to Switch
- Keyword Tables vs Machine Learning for UNSPSC and HS Codes
Common questions
Do I need to delete my Outlook rules?
No. Keep sender and policy rules. Replace the keyword rules only where the model tests better.
Is the email content sent outside Microsoft 365?
The text you send for classification goes to StayCharted to be categorized. Send only the fields you need, and see Security for how it's handled.
Can it route to people, not just folders?
Yes, if your history records who handled each email. The answer is whatever your history labels.
How many emails do we need?
A few hundred per team or category is a good start.