AI & automation consulting · logistics · Copilot Studio · Power Automate · TMS API

"Where is my delivery?"
Answered in minutes, never to the wrong person.

A fictional Belgian pallet distributor gets 640 customer emails a day, and half of them ask something the transport system already knows. This case takes it from a mailbox analysis to a tested design. A Copilot Studio agent reads each email, a Power Automate flow checks the TMS and 18 policy rules, and the business case says honestly where the money comes from.

Independent portfolio case study based on a fictional organisation (Corlaan Logistics). It contains no confidential information from any real employer. All figures are illustrative assumptions — not real company data.

The problem

38% + 11%

of the mailbox asks "where is it?" or "send the proof of delivery"

4,973 h

of agent time a year, mostly spent finding the shipment, not writing

2.9 h

median first response; 5.2 h for French-speaking customers

+1 FTE

requested for 2027. The sponsor's answer: "show me what can be automated first"

The journey

It starts before the mailbox: an inspiration session and a discovery workshop that ranked eight use cases. It ends after go-live: reviewer training, champions and a weekly review.

  1. 1Analyse the mailbox
  2. 2Design the solution
  3. 3Write the rules
  4. 4Secure it
  5. 5Test it
  6. 6Prove the value
  7. 7Roll out in steps

The design in one picture

The cloud flow orchestrates: a Copilot Studio agent without tools reads the email, a read-only connector looks up the TMS, policy rules decide between automatic reply, draft and routing, and every outcome is audited.
The model reads. The rules decide. Only the flow can send, only templates, only to the original sender.

Five decisions that shape it

DecisionInstead ofWhy
The model reads; rules decidean agent with send and TMS toolsOn the test set, the naive design harms in 23 of 48 emails
Agent without tools, called from a flowan autonomous agent with tools, or custom codeTestable reading, supportable by a 3-person IT team, ready for a phase 2 conversation
Templates, not generated textfriendly free textEvery sentence approved once, every fact from the TMS
Authorise every shipmenttrusting a plausible senderOne generic reply for "not found" and "not yours" — the mailbox cannot be probed
Shadow → draft-only → graduatedswitching it onThe team sees every proposed reply first; trust is measured, not assumed

Proof, not promises

48/48

emails in the evaluation set get the outcome a careful colleague would choose: 21 automatic, 12 drafts, 11 routed, 4 ignored

0 vs 23

harmful outcomes, guarded vs naive: data leaks, stale answers, wrong tone, reply loops, obeyed instructions

CI

every commit runs the evaluation set, reply scans, the API contract against a mock server, and checks that every number in the docs still matches the model

Replay the test set

Built, and measured on a real model

48/48

emails where the real Power Automate flows take the same decision as the tested code, with the reply text identical to the character. Plus 24/24 on the held-out set.

14 → 24

held-out emails read right: the keyword stand-in vs gpt-4.1-mini in Azure AI Foundry with the final agent instructions. No harmful outcome in 3 runs.

3 + 1

cloud flows and a model-driven app around a Copilot Studio agent kept as code; plus a second, knowledge-based agent for the team's procedures.

Compare the readers How it was built, and what broke

The value, honestly

The solution frees 3,832 h a year (2.4 FTE). Nobody is let go, so only part of that is cash: no Q4 temps, and no extra hire in 2027. That gives a 3-year NPV of €144,672 and a payback of 13 months.

If the hire happens anyway, the NPV is €13,595. So the case rests on a management decision, not on the technology, and that decision is on the go/no-go list. Draft-only mode alone already covers the cash. Automatic replies are what make customers wait minutes instead of hours.

Change the assumptions Read the business case

What is real and what is simulated

  • Real, tested code: the policy rules, the reply templates in three languages, the business case model, the TMS API contract and its mock server. The demo runs the same modules as CI.
  • Built in a Power Platform developer environment: the Copilot Studio agent, three cloud flows, Dataverse tables and a model-driven app. Verified against the tested code.
  • Measured on a real model: gpt-4.1-mini in Azure AI Foundry and the live agent, on the test set and a held-out set. The answers are recorded and replayed.
  • Stand-in in the demo: the browser demo reads emails with a deterministic stand-in, so it works without a model.
  • Not connected: a live mailbox and a real TMS.
  • Fictional: the company, customers, emails, interviews and figures.