← All posts

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.

By Manoj Mohandas ·

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

  1. Keep sender and policy rules (key customers, system mail, compliance copies).
  2. 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.
  3. Below the cutoff, the email stays where people triage it today.

How AI email routing works for shared inboxes →

How to decide, with your own numbers

  1. Export a few months of emails with the folder or category they ended up in (Power Automate or an export of the folders).
  2. Train on everything before last month and test on last month.
  3. Compare with where your rules put the same emails.

Explore the rules vs machine learning series

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.

Sources and further reading

Put it into practice with StayCharted

Start free →

Check plans and allowances · Security and your data