All demosInbox Triage

Inbox Triage

Find the urgent emails hiding in your inbox.

Examples are free. Bring a key for your own inputs. Get a free key

Performance & cost

This session

Ready to run
Delivery time · median
—
Live model compute
—
Live input tokens
0
Est. cost · USD
$0.00

Bypass examples to measure live inference. Uses your quota.

Measurement details · 0 successful requests
Successful requests
0

Run an example for free to see its measurements.

Model compute is the average per measured request. Delivery time is the median browser time for successful requests, including queue, network, and retries. Cached delivery speed is not inference speed. Model compute can exceed browser time when one request processes many inputs.

Tokens come from response headers. Inference costs use $0.04 per million input tokens, before plan credits. The estimate includes live and recorded tokens at the same rate; cached examples are not charged again. Missing usage is unavailable or a partial total (≥). Demo resets keep these totals; reload to start a new session.

Try it

Triage the inbox, then open a priority message.

Build with the SDKTypeScript · Python · dm1

One request from this demo. Copy it into your app.

Uses your MS_API_KEY and quota. Keep the key on your server.

Install · set your key
npm install @cloudraker/milliseconds
export MS_API_KEY="your-api-key"
example.ts
import { DecisionMachine } from "@cloudraker/milliseconds";

// Run on your server; reads MS_API_KEY from the environment.
const dm = new DecisionMachine();

const { result, usage } = await dm.classify(
  [
    "From: Helen Ashworth <h.ashworth@ashworth-partners.co.uk>\nSubject: Re: Re: Re: Ticket 44120\n\nI have now explained this four times to four different people. I will not be explaining it a fifth time. I expect a resolution and a named owner by end of day, or my next email goes to your CEO and our legal counsel.\n\nHelen Ashworth",
    "From: Marcus Bell <mbell@harlow-dental.com>\nSubject: Great job guys\n\nGreat job guys. Really love paying twice for the same month. Truly a wonderful experience, five stars. 🙃\n\nInvoice #INV-20933 and #INV-20941 are both for September. Please sort it out.\n\nMarcus",
    "From: Rebecca Chao <rchao@atlas-freight.com>\nSubject: Evaluating options for Q1\n\nHello,\n\nWe're a 400-person freight company and we're evaluating options for Q1. Your Enterprise tier came up in a few conversations. Who would be the right person to walk us through it and talk numbers? Ideally next week.\n\nRebecca Chao\nVP Operations, Atlas Freight",
    "From: Jonas Petersen <jonas@nordicroast.dk>\nSubject: It's broken that I can't export to CSV\n\nHonestly it's broken that there's still no CSV export from the reports page. Every competitor has this. Please add it so we can stop copy-pasting into spreadsheets.\n\nJonas",
    "From: Elena Vogt <e.vogt@brightpath.io>\nSubject: Question about my invoice (I'm NOT cancelling!)\n\nHi,\n\nTo be clear up front: I am not cancelling and I don't want to cancel anything. I just want to understand why the September invoice shows 14 seats when we have 12 users.\n\nThanks,\nElena",
    "From: Tom Okafor <tom.okafor@meridian-hr.com>\nSubject: Password reset link goes to a blank page\n\nHi support,\n\nWhen I click the password reset link in the email you send, I land on a blank page. Tried Chrome and Safari. Can you verify the link is working on your end and update the account settings? Happy to send a screenshot.\n\nTom",
    "From: Priya Raman <priya.raman@corvid-logistics.com>\nSubject: not urgent at all\n\nHey team,\n\nNot urgent at all, take your time... just kidding. Prod is down for all of our warehouses since 09:40 and the API returns 502 on every request. Drivers can't scan anything.\n\nPlease call me. +1 (415) 555-0142.\n\nPriya",
    "From: Casey Nguyen <casey@sunnybrook-bakery.com>\nSubject: THANK YOU!!!\n\nTHANK YOU SO MUCH!!! YOU GUYS ROCK!!! The migration went PERFECTLY and my whole team is thrilled. Seriously, BEST support team I have ever dealt with!!!\n\nCasey",
    "From: Amira Haddad <amira.haddad@lumenworks.co>\nSubject: Re: Duplicate charge on order 88213\n\nPerfect, thank you so much — I see the credit on my statement now. You can close this one.\n\nAmira\n\n> On Tue, Sep 15, support@northwind.cloud wrote:\n> Hi Amira, I've issued a refund for the duplicate charge on order 88213. It should appear within 3-5 business days.\n>\n>> Hi, I was charged twice for order 88213 and I'd like a refund of the second charge please.",
    "From: Dana Whitfield <dana.whitfield.ceo@gmail.com>\nSubject: quick favor\n\nAre you at your desk? I'm in a board meeting and can't talk. Need you to handle something for me quickly and discreetly. Reply as soon as you see this.\n\nSent from my iPhone",
    "From: FlashDeals <promo@flashdeals-mail.net>\nSubject: ASAP: 70% off ends at midnight!!!\n\nAct ASAP! Only hours left to grab 70% off our entire catalog. This is CRITICAL savings you can't miss!!!\n\nShop now → https://flashdeals-mail.net/sale\n\nUnsubscribe",
    "From: Northwind Product Updates <updates@news.northwind.cloud>\nSubject: New: automated refund workflows, plus 3 more September features\n\nSeptember product update\n\n• Automated refund workflows: issue a refund from the order view in one click.\n• Cancel-anytime toggles for subscription plans.\n• Faster invoice PDF generation.\n• New security dashboard.\n\nYou are receiving this because you opted in to product news. Manage preferences | Unsubscribe",
    "From: Nate Ruiz <nate@fernhill-studio.com>\nSubject: Heads up on next month\n\nJust a heads up: we've signed with Ledgerly starting October 1st, so we'll be moving our data over during the last week of September. Can someone send instructions for a full export?\n\nNate",
    "From: Ibrahim Diallo <ibrahim@westbay-clinic.org>\nSubject: Re: Login loop on iPad\n\nNo worries, clearing the cache fixed it. You can close this.\n\nIbrahim\n\n> Hi Ibrahim, could you try clearing Safari's cache and let us know if the login loop persists?",
    "From: Workplace Weekly <digest@workplaceweekly-news.com>\nSubject: Emergency preparedness: 7 critical steps every office needs\n\nThis week in Workplace Weekly\n\n• Emergency preparedness: 7 critical steps every office needs\n• How to run an urgent all-hands without the panic\n• Case study: a security breach that wasn't\n\nRead online | Unsubscribe",
    "From: Derek Malone <dmalone@pinecrest-builders.com>\nSubject: Numbers don't match\n\nThe amount on my card statement this month is $412.80 but the dashboard says my plan is $349. What's the difference for? Nobody told me about any change.\n\nDerek",
    "From: Sofia Lindqvist <sofia@kettlebrook.se>\nSubject: small thing whenever you have a moment\n\nHello,\n\nWhenever you have a moment: since this morning every export we run comes back empty, and the nightly sync appears to have deleted last week's records for all of our users. We're a hospital scheduling team so we're working from paper right now.\n\nNo rush if you're busy.\n\nSofia",
    "From: Lukas Brandt <lukas.brandt@posteo.de>\nSubject: wipe my stuff\n\nHi, can you wipe everything you have on me? Account, emails, the lot. I'm in Germany and I believe I have the right to ask for this. Please confirm when it's done.\n\nLukas",
    "From: DocuSign <noreply@docusign-esign-notice.com>\nSubject: Completed: Please review and sign your document\n\nA document has been shared with you for signature.\n\nDocument: Vendor_Agreement_Q3.pdf\nSender: Accounts Payable\n\nREVIEW DOCUMENT: https://docusign-esign-notice.com/view/8213\n\nThis is an automated message from DocuSign. Do not reply.",
    "From: Grant @ SecureScore <grant@securescore-outreach.com>\nSubject: URGENT: your security score dropped this week\n\nHi there,\n\nOur scanner noticed your domain's security score dropped 4 points this week. Companies like yours lose an average of $4.2M per breach!\n\nBook a 15-minute call this week and I'll send over a free report. Limited slots available.\n\nGrant Ellis\nSecureScore | Enterprise Security Ratings",
    "From: Nora Sato <nora.sato@halcyontravel.org>\nSubject: Data not syncing between devices\n\nHi,\n\nChanges I make on desktop don't show on the mobile app for 38 minutes. Is there a known sync delay right now? It's making it hard to coordinate with my field team.\n\nRegards,\nNora",
    "From: Liam Moreau <liam@devshop-offshore.net>\nSubject: We can redesign your website\n\nDear Sir/Madam,\n\nI was going through your website and found several issues affecting your Google ranking. Our team of 81 experts can fix this at a very affordable price.\n\nCan I send you a free audit report?\n\nKind regards,\nLiam Moreau",
    "From: Ava Sato <ava.sato@riverbendschools.co>\nSubject: Upgrading to Business\n\nHi,\n\nWe've outgrown Team. What does moving to Business involve and can we get an annual quote? We'd also need SSO.\n\nBest,\nAva Sato\nRiverbend Schools",
    "From: Mateo Castillo <mateo.castillo@copperlineenergy.org>\nSubject: SSO login shows a blank white screen\n\nHi,\n\nSince yesterday's update, SSO login shows a blank white screen for everyone on our team. It worked fine last week. Our account id is 8025.\n\nBest,\nMateo Castillo\nCopperline Energy",
    "From: Freya O'Neill <freya.oneill@saltmarshbrewing.org>\nSubject: Suggestion for the export flow\n\nIt would be great if scheduled exports could go straight to an S3 bucket instead of email. Right now someone downloads the attachment every morning and uploads it by hand.\n\nRegards,\nFreya",
    "From: Ethan Silva <ethan.silva@saltmarshbrewing.io>\nSubject: Mobile app crashes on open\n\nThe iOS app (version 4.5.5) crashes immediately on launch on my iPhone 15. Reinstalled twice. Android colleagues are fine.\n\nThanks,\nEthan Silva",
    "From: Deals Central <promo@dealscentral-mail.com>\nSubject: Your exclusive coupon inside\n\nDon't miss out! Selected brands at up to 35% off. Use code VIP32 at checkout.\n\nShop now → https://example-promo.net/sale\n\nYou received this because you shopped with us. Unsubscribe",
    "From: Liam Bergström <liam.bergstrm@glasswingstudio.org>\nSubject: Re: Missing invoice\n\nThis is not good enough. Your last reply just repeated the FAQ. We have 200 users depending on this. I need someone technical on a call today, not another template.\n\nLiam Bergström\n\n> Thanks for reaching out! Have you tried clearing your cache? Let us know if the issue persists.",
    "From: Events @ CloudSummit <events@cloudsummit-events.com>\nSubject: [Webinar] Scaling support with AI — reserve your seat\n\nJoin 4168+ leaders for a live webinar on the future of work.\n\nRegister free → https://example-events.com/register\n\nCan't make it? Register anyway and we'll send the recording. Unsubscribe",
    "From: Ava Novak <ava@linkbuilders.net>\nSubject: Your website has 37 SEO errors\n\nDear Sir/Madam,\n\nI was going through your website and found several issues affecting your Google ranking. Our team of 132 experts can fix this at a very affordable price.\n\nCan I send you a free audit report?\n\nKind regards,\nAva Novak",
    "From: Noah Larsen <noah.larsen@saltmarshbrewing.co>\nSubject: Update billing email\n\nHi,\n\nPlease send future invoices to ap@saltmarshbrewing.co instead of my address. Nothing else changes.\n\nNoah\nSent from my phone",
    "From: Ravi Ivanova <ravi.ivanova@northstardental.org>\nSubject: Refund for unused Business seats\n\nHi,\n\nWe removed 8 users on the 2nd but were billed for the full month. Please refund the unused portion ($1304.00) to the original card.\n\nRavi Ivanova"
  ],
  {
    "A question about our invoice": "They ask about or dispute money we charged: an invoice, a duplicate charge, a price change, a receipt or a refund",
    "A customer reports our product misbehaving": "It is broken, erroring, down or slow for them, a page will not load, an export comes back empty, or their records vanished",
    "A customer wants a capability we lack": "They ask us to add something our product cannot do yet",
    "A prospect wants to buy": "They ask for a price, a quote, a demo, an upgrade or the right person to talk to",
    "Someone broke into an account": "A password was stolen, or someone signed in to their account who should not have",
    "A legal or privacy demand": "They invoke a right: erase everything you hold on me, GDPR, CCPA, a subpoena or a lawyer",
    "Bulk mail nobody asked for": "A stranger pitching their own product, a stranger warning about a problem in order to sell the fix, a weekly digest or product-update blast, or a scam impersonating a person or a brand",
    "None of the above": "A thank-you with nothing to do, a thread already resolved, an escalation about how we handled a ticket, or mail sent to the wrong address",
    "One employee writing to another": "Both the writer and the reader are on our own staff, and the subject is a meeting, payroll, hiring or office logistics"
  }
).withUsage();

console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });

Under the hood How it works & limitations

API calls/classify/yes-no/rate

How it works

The model assigns each email a category, urgency, sentiment and support signals. These judgments place emails into inbox lanes. A custom intent label runs a separate check across the selected messages.

Demo scope

The inbox contains synthetic emails. Low-confidence categories go to review, and phishing signals are advisory. Labels and lanes can be wrong, so inspect a message before acting on it.

Inspired by the work of dabit3.