Rebook, Refund, Escalate or Ignore: Prompted GPT, Consultancy, Platform or Custom Model for Shipment Exception Emails
A buyer's guide for logistics teams with no ML staff. The right choice depends on two things you already know, developer time and labelled decisions, and the model bill is the smallest line in it.
For a mid-size logistics company with no ML team, the default is a prompted model, GPT or a peer, with structured outputs that restrict every answer to rebook, refund, escalate or ignore, scored on a few hundred of your own past emails and with a person approving refunds. Hire a consultancy only if no developer can build the inbox and transport-system plumbing, take a platform only if it plugs into your systems and beats your prompted baseline on your emails, and wait for a custom model until you have thousands of labelled decisions. At about 20,000 exception emails a month, a small model costs around $6 a month at list price, so the deciding factors are developer time, labelled data and the cost of a wrong refund or a wrong ignore.
Two questions that pick the option
The first question is whether anyone in the business can write and maintain a few weeks of integration code. A classifier that only answers in a chat window is not a system. Something has to read the shared inbox, pull out the shipment or order number, look it up in the transport management system, write the decision to a log and send low-confidence cases to a person. That is ordinary developer work, not ML work, but someone has to own it.
The second question is how many past exception emails you have with the action staff actually took. Those labelled decisions are what every option is judged against, and what any custom model is trained on. Have two staff label each email independently and settle the disagreements: where your own people split, no model will agree with both, and the rate at which they split is the ceiling for any system. The research on how many you need is suggestive rather than settled. Liu and colleagues, in a 2019 arXiv study of sales emails, found fine-tuned BERT beat simpler methods "with as few as 300 labeled samples" and lost below that. Zamula and Loskutov, in a 2026 study of corporate email triage on live traffic, found a prompted LLM with few-shot examples and structured output scored an F1 of 0.73, while an encoder fine-tuned on 11,000 operator decisions reached 0.78 with "nearly half the false positives." Where the crossover sits for a prompted frontier model on shipment exception emails has not been measured.
The options compared
| Option | Fits when | Main risk | Running cost at 20,000 emails a month |
|---|---|---|---|
| Prompted small model with structured outputs | One developer available; few labels yet | Weak label rules; no human gate on refunds | About $6 (gpt-6-luna or Claude Haiku 5.5) |
| Consultancy, fixed scope | No developer capacity | You end up not owning prompts, tests or code | Model cost as above, plus fees |
| Logistics platform | It already connects to your inbox and transport system | Accuracy claims you cannot check | Vendor subscription |
| Owned custom model | Thousands of labelled decisions; prompting has stalled | Retraining and calibration upkeep | About $22 (CPU encoder) to $1,296 (12B model on a GPU) for hosting |
If you have a developer and few labels: keep prompting, properly
This is most companies asking the question. The work is to turn prompting into a classifier. OpenAI's structured outputs guide says the feature "constrains completed, non-refusal model output to your supplied JSON Schema," so an enum field can only hold your four actions. Anthropic offers the same for Claude through constrained decoding, including Haiku 5.5, and Google's Gemini supports string enums "for classification tasks." Add a fifth value such as "other" for emails that are not about a shipment exception at all.
The providers are clear about what this does not do. OpenAI says apps should "validate any business rules that the schema does not express"; Google says "always validate values in your application." A schema-valid "refund" can still be the wrong decision.
Two settings matter for cost. Put the fixed instructions and examples first so the provider can cache them, and switch reasoning off: gpt-6-luna's default reasoning effort is medium, and OpenAI bills reasoning tokens as output.
Keep the test set and its scoring outside any one vendor. OpenAI's deprecations page lists its hosted Evals product as read-only, shutting down on November 30, 2026, and recommends migrating to Promptfoo. A labelled file you own outlives any dashboard, and it is the same file you will use to judge a consultancy or platform later.
If no one can build it: a consultancy, on your terms
The best argument for outside help comes from the MIT NANDA report "The GenAI Divide," which Fortune reported in August 2025: purchased tools and partnerships succeeded about 67% of the time, internal builds about a third as often. The base is 150 interviews, a 350-person survey and 300 public deployments of every kind, so the figure speaks to delivery risk in general, not to email triage. Buy a short fixed-scope build. Write into the contract that you receive the decision rules, the labelled test set, the prompts and the code, and that the consultancy reports per-label results and false refunds per 1,000 emails on emails it did not see while building.
If a platform already fits your stack
Logistics inbox and exception tools are worth a look when they already integrate with your email and transport system, because the integration is the expensive part. Their accuracy and time-saving figures are their own. Ask three things: will they run on your held-out emails and report precision and recall per action; can you see and change the decision rules; and can you export your data and labels if you leave.
If you have thousands of labelled decisions: consider owning a model
A custom model is the right move when the prompted model has plateaued on the costly labels and you have enough reviewed decisions to train on, or when data must stay on your own infrastructure. Without ML staff, that means a managed service or a packaged SDK. OpenAI is not one of the choices: its pricing page says "Fine-tuning is closed to new users," and gpt-6-luna does not support it.
Parsec, a small language model lab, runs one such managed service: it traces production requests, builds datasets and evaluations the customer approves, trains and serves a model, and passes requests to a closed frontier model when the customer's model is not confident, and its inference page says "Weights: Yours. Download them." Its comparison page claims a first post-trained model in about four weeks, without a baseline, and publishes no price for the service; its pages do not mention VPC hosting for it. Separately, open-jev, an MIT-licensed SDK published under Parsec's GitHub organisation, trains "decision models" that pick from a fixed list, report a confidence and defer when unsure. Neither has published results on logistics email.
Whoever builds it, insist on calibrated confidence and a threshold: a higher threshold means fewer automatic mistakes and more emails handed to staff, and only your test set shows where to set it. Google's Decisions API, launched November 11, 2026, returns "the calibrated probability of every option" from its Gemini Decision 1 model and recommends setting thresholds "using labeled examples from your own traffic" and keeping "a human or a second check" on high-stakes actions such as payouts.
Worked example: 20,000 emails a month
Assumptions: each email carries 2,000 tokens of fixed instructions, label rules and examples plus 700 tokens of email text; the model returns 40 tokens (action, confidence, a one-line reason) with reasoning off. Per 1,000 emails that is 2.7 million input tokens, of which 2.0 million are the cacheable prefix, and 40,000 output tokens.
On gpt-6-luna at OpenAI's list price of $0.10 per million input and $0.50 per million output, 1,000 emails cost 2.7 × $0.10 + 0.04 × $0.50 = $0.29. With the prefix cached at $0.01, it is 2.0 × $0.01 + 0.7 × $0.10 + $0.02 = $0.11. Claude Haiku 5.5 has the same list rates. A month of 20,000 emails is $5.80 uncached, $2.20 cached. Gemini Decision 1, at $0.10 input and no output, is $0.27 per 1,000. A larger model such as Claude Sonnet 5.5, at $2 in and $10 out, is $5.80 per 1,000, or $116 a month. If gpt-6-luna were left at default reasoning and used 500 reasoning tokens per email, add $0.25 per 1,000.
Owning a model costs more at this volume. A small encoder on a Hugging Face CPU endpoint at $0.03 an hour is $21.60 a month always on, or $1.08 per 1,000 emails. A 12-billion-parameter model on a 48 GB L40S at $1.80 an hour is $1,296 a month, or $64.80 per 1,000.
Now the line that dominates. At 20,000 emails a month, each percentage point of emails sent to the wrong action is 200 emails. If even a handful of those are false refunds or ignored stuck shipments, their cost, which you know from your own refund values and claims, is likely to exceed a year of the small model's API bill of about $70. Latency per email has not been measured for any option on this task.
What to ask any vendor
- Will you run on our held-out emails, which you have not seen, and report precision, recall and F1 for each action?
- How many false refunds and false ignores per 1,000 emails, at the confidence threshold you propose, and what share goes to a person?
- Do we keep the label rules, test set, prompts and, for a custom model, the weights?
- What happens when we add a fifth action or change a rule, and who re-checks the threshold?
Bottom line
With a developer and few labels, prompt a small model with structured outputs, measure it on your own emails and keep a person on refunds. With no developer, hire a consultancy for a fixed build that leaves you owning the test set and code. With a platform that already fits your systems, buy it only after it beats your baseline on your emails. With thousands of labelled decisions and a prompted model that still gets the expensive actions wrong, consider an owned custom model.
Sources
- OpenAI, Structured outputs guide: https://developers.openai.com/api/docs/guides/structured-outputs
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, gpt-6-luna model page: https://developers.openai.com/api/docs/models/gpt-6-luna
- OpenAI, Reasoning guide: https://developers.openai.com/api/docs/guides/reasoning
- OpenAI, Deprecations: https://developers.openai.com/api/docs/deprecations
- Anthropic, Structured outputs: https://platform.claude.com/docs/en/build-with-claude/structured-outputs
- Anthropic, Pricing: https://platform.claude.com/docs/en/about-claude/pricing
- Google, Gemini structured output: https://aistudio.google.com/docs/structured-output
- Google, Gemini Decisions API: https://aistudio.google.com/docs/decisions-api
- Google, Gemini Decisions API launch: https://blog.google/innovation-and-ai/technology/developers-tools/gemini-decisions-api/
- Google, Gemini API pricing: https://aistudio.google.com/docs/pricing
- Zamula and Loskutov, LLM-Based Intent Classification in Corporate Email Communications: https://injoit.ru/index.php/j1/article/view/2576
- Liu et al., An Evaluation of Transfer Learning for Classifying Sales Engagement Emails at Large Scale: https://arxiv.org/abs/1905.01971
- Fortune, MIT report: 95% of generative AI pilots at companies are failing: https://fortune.com/2025/08/18/mit-report-95-percent-generative-ai-pilots-at-companies-failing-cfo
- Hugging Face, Pricing: https://huggingface.co/pricing
- Parsec, Inference: https://parseclab.ai/inference/
- Parsec vs routers: https://parseclab.ai/compare/routers/
- open-jev decision-model SDK: https://github.com/daseinlabs/open-jev/blob/main/docs/tod-sdk.md
- Parsec vs your own GPUs: https://parseclab.ai/compare/own-gpus/