Connect the inbox to a pipeline that reads each email and attachment, has a model assign a category and confidence, matches it to a record, and routes automatically only above a threshold such as 0.90. On well-defined categories, plan for 80–95% routed without a person, at roughly 1–3 cents per document to run.
How do I automatically classify and route inbound emails and attachments with AI, and how accurate is it?
How the pipeline works
Every working setup has the same five steps. The model is one step of five, and usually not the one that breaks.
- Capture. A Gmail or Microsoft 365 shared mailbox pushes new messages to the pipeline, or the pipeline polls it. Each message is stored once, keyed on its
Message-ID, so a retry never processes it twice. - Extract. The body is cleaned of signatures and quoted reply chains. Attachments go through OCR if they are scans or photos; native PDFs and Word files are read directly.
- Classify. A model returns a category from a fixed list, a confidence score, and the identifiers it found: invoice number, policy or loan number, customer name, sender domain.
- Match. The identifiers are looked up in the system of record (HubSpot, Salesforce or your own database) to find the company, deal, ticket or case the email belongs to.
- Route or review. If confidence and the record match both clear their thresholds, the pipeline attaches the files, assigns the owner and creates a task. If not, the item goes to a review queue with the model’s suggestion already filled in.
This is the document-intake pattern we build for lenders, credentialing firms and professional services teams: the model reads everything, and a person checks only what the model flagged.
Confidence thresholds and the human review fallback
Use two thresholds, not one. A typical starting point is three bands, tuned later against your own data.
| Confidence | Record match | What happens |
|---|---|---|
| 0.90 and above | Exact (reference number or known sender) | Routed automatically, logged, spot-checked weekly |
| 0.70 to 0.90 | Exact or probable | Review queue, suggestion pre-filled, one click to accept |
| Below 0.70 | Any | Triage queue, a person classifies from scratch |
| Any | No record found | Held for review; never creates a new record on its own |
A model’s self-reported confidence is not a probability until you check it. Before go-live, run 300–500 hand-labelled past emails through the pipeline and see how often items scored 0.90 were actually right. If they were right 97% of the time, keep the threshold; if 88%, raise it.
Every correction in the review queue is saved with the original prediction. That gives you an accuracy report per category each month and a labelled set for re-tuning prompts or thresholds.
How accurate is it, realistically
Accuracy depends on three things more than on which model you pick.
- How distinct the categories are. "Invoice", "W-9" and "signed contract" separate cleanly. "General question" versus "complaint" does not, and people disagree on those too.
- Whether attachments carry identifiers. An invoice with a PO number matches its record almost every time. A phone photo of a handwritten form often will not.
- How many categories there are. Eight to fifteen is manageable. Forty categories with overlapping meaning pushes more items into review.
As a general planning range, not a guarantee: on clear document types with identifiers, 90–95% of items can be routed automatically with error rates on those items in the low single digits. On free-text requests with fuzzy categories, 60–80% is more honest. Record matching, not classification, is usually the larger source of errors.
Cost per document and to build: a worked example
Take a firm receiving 3,000 emails a month into one shared inbox, 40% with attachments averaging four pages, routing into HubSpot.
| Item | Assumption | Monthly cost |
|---|---|---|
| OCR | 4,800 pages at general market rates of $1–$2 per 1,000 pages for plain text | $5–$10 |
| Model calls | 3,000 emails at $0.002–$0.02 each, depending on model and attachment length | $6–$60 |
| Hosting, storage, logs | Small serverless setup on AWS or similar | $20–$50 |
| Human review | 15% of items at 30 seconds each | About 4 staff hours |
That is roughly $30–$120 a month in running costs, or 1–4 cents per email. Compare that with triaging all 3,000 by hand at a minute each: about 50 staff hours a month becomes about 4.
To build, using Smplfy’s figures: routing one mailbox into HubSpot or Salesforce with categories and owner assignment is a two-system integration, $1,500–$6,000. Adding a review queue, attachment extraction and an accuracy report makes it an internal tool, from $4,000. The cost rises with the number of document types that need field extraction and how messy record matching is. Hourly work is $85 an hour.
Failure modes to plan for
- Reply chains and forwards. The model classifies the quoted thread instead of the new message unless quoted text is stripped first.
- One email, three documents. An invoice, a W-9 and a contract in one message need classifying per attachment, not per email.
- Shared domains. Senders on gmail.com or outlook.com cannot be matched by domain; you need a reference number or a contact lookup.
- The record does not exist yet. A document arrives before the deal is created. Hold it and retry the match, rather than creating a duplicate.
- Mailbox re-authentication. Gmail and Microsoft 365 tokens expire or get revoked when a password changes. The pipeline should alert someone, not fail silently.
- Rate limits. A backlog of 2,000 emails after an outage will hit CRM API limits. Queue and back off.
- Instructions inside emails. Text in an email can try to steer the model. Keep categories to a fixed list and never let the model take actions beyond routing.
- Sensitive data. Decide which model provider may see customer records, and under what data-retention terms, before you send the first email.
Which option fits, and when to wait
| Option | Upfront | Handles attachments | Review queue | What breaks first |
|---|---|---|---|---|
| Mailbox rules in Gmail or Outlook | None | No | No | Any sender or subject it was not written for |
| Help desk built-in routing | Subscription | Partly | Inside the help desk | Routing to records outside the help desk |
| Zapier or Make with an AI step | Hours, not weeks | Limited | Usually improvised | Silent failures, task costs at volume, no accuracy tracking |
| Custom pipeline | From $1,500 (Smplfy) | Yes, with OCR | Yes, with corrections logged | Upstream field changes, if not monitored |
Use mailbox rules if fewer than 200 emails a month need routing or the senders are predictable. Use Zapier or Make for a few hundred emails a month into one system, no scans, and a tolerance for the occasional miss. Build custom when attachments matter, records must be matched and updated, or a misrouted document has a real cost.
Do not build anything yet if you cannot write down your categories and who owns each one. Spend a week labelling what arrives by hand first; it is also the test set you will need later.
Frequently asked questions
How accurate is AI at classifying emails?
On distinct document types that carry identifiers, such as invoices with PO numbers, 90–95% of items can usually be routed automatically with few errors. On fuzzy free-text categories, 60–80% is a more realistic planning figure. Test against 300–500 of your own labelled emails before trusting any threshold.
What confidence threshold should I use for automatic routing?
Start with 0.90 for automatic routing, 0.70 to 0.90 for a review queue with the suggestion pre-filled, and below 0.70 for manual triage. Then check those thresholds against labelled data, because a model’s self-reported confidence is not calibrated by default. Require an exact record match as well as high confidence.
How much does AI email classification cost per email?
Running costs are usually 1–4 cents per email, covering OCR, model calls and hosting. For 3,000 emails a month that is roughly $30–$120. The larger cost is the build and the few hours a month of human review.
Can Zapier or Make classify emails with AI?
Yes, both can add an AI step that labels an email and sends it onward. They work well for a few hundred emails a month into one system with no scanned attachments. They are weaker at per-attachment classification, record matching, review queues and tracking accuracy over time.
What happens when the AI gets it wrong?
With thresholds in place, most uncertain items never get routed automatically; they go to a review queue. Every correction is logged next to the original prediction, which gives you a monthly accuracy report per category. Weekly spot-checks of auto-routed items catch drift early.
Related answers
Want a scoped estimate for your inbox?
We’ll send a free written scope or take a 20-minute call. Have ready which mailbox and system of record are involved, roughly how many emails and attachments arrive each month, and how they are sorted by hand today. Start a conversation.