Process Discovery and Use Case Selection
The best agent project often starts by finding out how the work is really done.
Pick use cases from observed work, not from a technology wish list. Map the real process with people and system records, ask whether removing, simplifying or ordinary automation would solve it, then score what remains on value, checkability, data, integration and risk. Record a baseline before building and agree when you would stop.
What you will learn: discovery methods, how to read a simple event log, when an agent is justified, how to score and gate candidates, how to estimate value honestly and how to write a one-page use case.
Prerequisites: AI Agents vs Chatbots, Copilots, RPA and ML and Agent Limits, Myths and When Not to Use One.
The example runs in November 2026 with Python 3.13 and only the standard library. The event log, scores and weights are invented to show the method and are not benchmarks.
Start with a process, not a tool
A process is a repeatable path from a trigger to an outcome: an invoice arrives and is paid; a customer reports a fault and it is fixed; a new employee accepts an offer and is ready on the first day. A use case names a specific part of that path where software will help.
"Use AI in finance" is not a use case. "Collect missing purchase order numbers from suppliers so invoices can be matched the same day" is one. It names an input, an action, a result and a way to check it.
Four ways to discover how work happens
| Method | Shows well | Misses |
|---|---|---|
| Interviews and workshops | Intent, rules, frustrations | Habits people no longer notice |
| Observation | Workarounds, switching between tools | Rare cases; observation changes behavior |
| Case sampling | What exceptions really look like | Overall frequency if the sample is small |
| Event log analysis | Paths, volumes and waiting time | Work done outside systems |
Use at least two. Process mining is the discipline of reconstructing processes from event records; the IEEE Task Force on Process Mining publishes introductory material. You can begin with far less: a table with a case identifier, an activity name and a time.
Questions that uncover the real process
- What starts a case, and what does "done" mean?
- Show me the last difficult one. What did you open, and whom did you ask?
- Which information is often missing or wrong?
- Where do you wait, and for what?
- What do you know that a new colleague would not?
- Which mistakes are expensive, and how are they caught?
- If you could delete one step, which would it be?
The documented path is usually the easy part, and often already automated. Agents are proposed for the messy remainder, so that remainder is what you must understand.
Mapping the process
A map can be boxes on a whiteboard or a formal notation such as BPMN. For each step capture:
| Attribute | Why it matters for an agent |
|---|---|
| Input and its form | Free text and documents favor a model; structured fields favor rules |
| Decision and its rule | Written rules can be coded; judgment needs evaluation and oversight |
| Systems touched | Sets integration effort and permissions |
| Volume and time | Sets potential value |
| Error and its cost | Sets risk and approval points |
| How success is verified | Without this, evaluation is guesswork |
Try simpler answers first
Before proposing an agent, walk down this list. Stop at the first answer that works.
| Option | Fits when |
|---|---|
| Remove the step | Nobody uses its output |
| Fix the input | A better form or interface prevents missing data |
| Rules or workflow automation | Inputs are structured and the logic is stable |
| One model call | Classify, extract, summarize or draft in a single step |
| Fixed workflow with model steps | Steps are known but some need language understanding |
| Agent | The path varies by case, tools must be chosen and progress can be checked |
Robotic process automation (RPA) imitates clicks and keystrokes and suits stable screens. Business process management (BPM) tools coordinate defined steps, people and systems. Agents complement both: a workflow engine can own the process and call an agent only where interpretation is needed. Single-Agent, Router and Retrieval Patterns and Orchestration vs Automation vs Frameworks compare the designs.
Reading a small event log
This program finds the paths cases took, counts repeated steps, shows where time goes and ranks three candidate improvements.
"""Summarize a small event log and score automation candidates."""
from collections import Counter, defaultdict
# case id, activity, minute offset
LOG = [
("C1", "receive", 0), ("C1", "check", 20), ("C1", "approve", 200), ("C1", "post", 210),
("C2", "receive", 0), ("C2", "check", 35), ("C2", "ask", 50), ("C2", "check", 1500),
("C2", "approve", 1700), ("C2", "post", 1710),
("C3", "receive", 0), ("C3", "check", 15), ("C3", "approve", 90), ("C3", "post", 95),
("C4", "receive", 0), ("C4", "check", 40), ("C4", "ask", 60), ("C4", "check", 2900),
("C4", "ask", 2920), ("C4", "check", 4300), ("C4", "reject", 4400),
("C5", "receive", 0), ("C5", "check", 25), ("C5", "approve", 260), ("C5", "post", 270),
]
cases = defaultdict(list)
for case, activity, minute in LOG:
cases[case].append((minute, activity))
variants, waits, rework = Counter(), defaultdict(int), 0
for events in cases.values():
events.sort()
path = [activity for _, activity in events]
variants[" > ".join(path)] += 1
rework += len(path) != len(set(path))
for (t1, a), (t2, b) in zip(events, events[1:]):
waits[f"{a} to {b}"] += t2 - t1
print("Variants")
for path, count in variants.most_common():
print(f" {count} x {path}")
print(f"Cases with repeated steps: {rework} of {len(cases)}")
total = sum(waits.values())
print("Where elapsed time goes")
for step, minutes in sorted(waits.items(), key=lambda kv: -kv[1])[:3]:
print(f" {step:18} {minutes / total:5.0%}")
# Scores from 1 (poor) to 5 (good), agreed with the process owner.
CANDIDATES = {
"chase missing information": dict(volume=4, checkable=4, data=4, safety=4),
"approve payments": dict(volume=4, checkable=3, data=4, safety=1),
"summarize rejections": dict(volume=2, checkable=3, data=5, safety=5),
}
WEIGHTS = dict(volume=0.3, checkable=0.3, data=0.2, safety=0.2)
print("Candidates")
ranked = sorted(CANDIDATES.items(),
key=lambda kv: -sum(kv[1][k] * w for k, w in WEIGHTS.items()))
for name, s in ranked:
score = sum(s[k] * w for k, w in WEIGHTS.items())
note = " <- gate: safety too low to automate" if s["safety"] < 3 else ""
print(f" {score:.1f} {name}{note}")
Output:
Variants
3 x receive > check > approve > post
1 x receive > check > ask > check > approve > post
1 x receive > check > ask > check > ask > check > reject
Cases with repeated steps: 2 of 5
Where elapsed time goes
ask to check 85%
check to approve 10%
receive to check 2%
Candidates
4.0 chase missing information
3.5 summarize rejections
3.1 approve payments <- gate: safety too low to automate
Two of five cases looped back to ask for information, and the wait after asking accounts for most elapsed time. Checking itself is a small share. A project that makes the check faster would barely change the total; one that gets complete information at submission, or chases it promptly, aims at the real delay. Note also that the top-scoring candidate may be solved by a better input form with no model at all, and that payment approval is gated out regardless of its total because the safety score is too low.
Elapsed time includes nights and weekends. Measure working time or compare like periods before drawing conclusions, and use far more than five cases.
Scoring criteria
A scoring sheet makes disagreement visible. It does not make decisions by itself.
| Criterion | High score looks like |
|---|---|
| Value | Frequent work with a cost or delay the owner cares about |
| Checkability | A record, rule or quick review shows whether the result is right |
| Data readiness | Needed information is accessible, current and permitted |
| Integration | Supported interfaces exist with suitable permissions |
| Safety | Errors are caught early and can be reversed |
| Ownership | An engaged owner and supervisors with time |
| Learning | Builds reusable connectors, tests or skills |
Set weights before scoring, score with the people who do the work and write a sentence of evidence next to each number. If a small change in weights reorders the list, say so; the data does not yet separate the candidates.
Gates that a total cannot override
- The use is forbidden by law, contract or policy.
- No accountable owner will sign.
- Harm would be serious or irreversible and no effective control exists.
- The necessary data may not be used for this purpose.
- Nobody can tell whether the output is right.
- Affected people cannot reach a human or challenge a result where they should be able to.
Screen for legal category early. Uses touching hiring, credit, insurance, education, health or public benefits often carry specific duties (EU AI Act and US AI Policy).
Shaping a portfolio
| Quadrant | Action |
|---|---|
| Higher value, lower risk and effort | Start here and build shared capability |
| Higher value, higher risk or effort | Plan, de-risk with assistance mode, stage carefully |
| Lower value, lower effort | Allow self-service within rules |
| Lower value, higher effort or risk | Decline and record why |
Choose a first project that is real enough to matter and safe enough to learn from. Pure demonstrations teach little about integration, supervision and operations. Strategy, Roadmap and Use Case Prioritization covers sequencing across a portfolio.
Estimating value honestly
Time saved is not money saved unless the time is redeployed or demand is met that would otherwise be refused. Separate the kinds of benefit.
| Benefit | How to evidence it |
|---|---|
| Faster outcome | End-to-end time for comparable cases |
| Fewer errors | Verified error rate before and after |
| More capacity | Additional cases completed to standard |
| Cost avoided | Specific spend that stops, agreed with finance |
| Revenue | Controlled comparison, not coincidence |
| Experience | Complaints, reopen rates, staff feedback |
Subtract the full cost: build, integration, model and platform use, supervision, correction, incident handling, maintenance and the cost of errors that slip through (Agent Cost Model and Token Economics, Business Case, Build vs Buy and Vendor Evaluation). Present a range with assumptions rather than one precise figure.
Suppose 1,000 cases a month take 12 minutes each. An assistant cuts preparation to 4 minutes, and review adds 2, saving 6 minutes per case, or 100 hours. If one case in twenty needs 30 minutes of rework, subtract 25 hours, leaving 75. Whether 75 hours is worth the running and upkeep cost depends on what those hours then do. All figures are invented.
Baseline before building
Measure today's process on the same definitions you will use later: volume, time, cost per case, error rate found by independent checking and satisfaction. Keep a sample of past cases with verified outcomes; it becomes your first evaluation set (Golden Datasets, Synthetic Data and Simulation). If you cannot measure a baseline, say that benefits will be judgment calls, and keep the investment small.
A one-page use case
| Heading | Answer in a sentence or two |
|---|---|
| Problem and owner | What hurts, for whom, owned by whom |
| Scope | Where it starts and ends; what is excluded |
| Why an agent | Which simpler options were rejected and why |
| Actions and limits | Read, draft, change; amounts and approvals |
| Data and systems | Sources, permissions, personal data |
| Success and guardrails | Target measure plus measures that must not get worse |
| Failure handling | Handoff, reversal, stop |
| Cost range | Build and monthly running, with assumptions |
| Stop criteria | What result by which date ends the work |
Test the riskiest assumption first
Do not build the whole system to learn that the data is unusable. Pick the assumption most likely to be false and test it in days.
- Can the model do the hard step? Run it on sampled past cases and have experts grade the output.
- Is the data available? Retrieve it through the real interface with real permissions.
- Will people use it? Put a rough draft inside their working tool.
- Is review cheaper than doing? Time both.
Requirements, Proof of Concept and Pilot to Production takes a promising candidate further.
Keeping discovery trustworthy
Event logs and observations describe people. Use the minimum personal data, tell staff what is collected and why, aggregate where possible and follow rules on workplace monitoring. Discovery used to rank individuals will produce guarded answers and distorted records. Be wary of vendor estimates built on someone else's process, and of savings figures that assume every minute removed turns into money.
Running a scoring session
Invite the process owner, two people who do the work, someone who knows the systems and someone who knows the risks. Share evidence beforehand. Ask each person to score alone, then discuss only the criteria where scores differ widely; those gaps usually reveal an unstated assumption. Record dissent. End with at most a few candidates, a named owner for each and the one assumption to test next. Revisit declined items when data or tools change, so that "no" means "not yet, for this reason" where that is true.
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Starting from a model demonstration | Solution without a problem | Start from observed work |
| Mapping only the official procedure | Exceptions break the design | Sample real cases |
| Automating a broken process | Faster confusion | Simplify first |
| Counting all time saved as money | Business case collapses later | Say what happens to the time |
| No baseline | Value cannot be shown | Measure first |
| Letting scores override legal limits | Unacceptable project proceeds | Apply gates before ranking |
Checklist
- The use case names a trigger, action, result and check.
- Discovery used at least two methods and included exceptions.
- Removal, input fixes and simpler automation were considered.
- Gates were applied before scoring.
- Weights were set first and evidence recorded.
- A baseline and a verified case sample exist.
- Value is a range net of full cost.
- Stop criteria and an owner are agreed.
Frequently asked questions
Do we need process mining software?
Not to start. A small, clean extract and conversations with the team reveal a lot. Specialist tools help when volumes and variants are large.
How many use cases should we start with?
Usually one to three that share systems or skills, so that early work builds reusable capability without spreading supervision thin.
What if the process differs between teams?
Find out why. Some differences are required by customers or law and others are habit. Standardize the second kind before automating.
Is a high-risk use case always a bad first choice?
Usually, because the controls and evidence needed are heavy. Begin with an assisting version of a lower-risk step and learn from it.
References
- IEEE Task Force on Process Mining
- Object Management Group: Business Process Model and Notation
- Gartner press release on agentic AI project cancellations (June 2025)
- European Commission AI Act Service Desk: Annex III
Where to go next
ERP, CRM, API and Event Integration
Connect the systems the use case needs.
Strategy, Roadmap and Use Case Prioritization
Sequence a portfolio.
Requirements, Proof of Concept and Pilot to Production
Move from test to service.