Process Discovery and Use Case Selection

The best agent project often starts by finding out how the work is really done.

BeginnerIntermediateExpert · 12 min read · Last updated:

In short

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.

Versions used

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.

Beginner Understanding the work

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.

Observereal work
Mapand measure
Simplifyfirst
Scoreand gate
Testsmall

Four ways to discover how work happens

MethodShows wellMisses
Interviews and workshopsIntent, rules, frustrationsHabits people no longer notice
ObservationWorkarounds, switching between toolsRare cases; observation changes behavior
Case samplingWhat exceptions really look likeOverall frequency if the sample is small
Event log analysisPaths, volumes and waiting timeWork 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?
Ask about the exceptions

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:

AttributeWhy it matters for an agent
Input and its formFree text and documents favor a model; structured fields favor rules
Decision and its ruleWritten rules can be coded; judgment needs evaluation and oversight
Systems touchedSets integration effort and permissions
Volume and timeSets potential value
Error and its costSets risk and approval points
How success is verifiedWithout this, evaluation is guesswork
Intermediate Choosing the right solution

Try simpler answers first

Before proposing an agent, walk down this list. Stop at the first answer that works.

OptionFits when
Remove the stepNobody uses its output
Fix the inputA better form or interface prevents missing data
Rules or workflow automationInputs are structured and the logic is stable
One model callClassify, extract, summarize or draft in a single step
Fixed workflow with model stepsSteps are known but some need language understanding
AgentThe 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.

CriterionHigh score looks like
ValueFrequent work with a cost or delay the owner cares about
CheckabilityA record, rule or quick review shows whether the result is right
Data readinessNeeded information is accessible, current and permitted
IntegrationSupported interfaces exist with suitable permissions
SafetyErrors are caught early and can be reversed
OwnershipAn engaged owner and supervisors with time
LearningBuilds 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

QuadrantAction
Higher value, lower risk and effortStart here and build shared capability
Higher value, higher risk or effortPlan, de-risk with assistance mode, stage carefully
Lower value, lower effortAllow self-service within rules
Lower value, higher effort or riskDecline 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.

Expert Value, baselines and decisions

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.

BenefitHow to evidence it
Faster outcomeEnd-to-end time for comparable cases
Fewer errorsVerified error rate before and after
More capacityAdditional cases completed to standard
Cost avoidedSpecific spend that stops, agreed with finance
RevenueControlled comparison, not coincidence
ExperienceComplaints, 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.

Illustrative calculation

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

HeadingAnswer in a sentence or two
Problem and ownerWhat hurts, for whom, owned by whom
ScopeWhere it starts and ends; what is excluded
Why an agentWhich simpler options were rejected and why
Actions and limitsRead, draft, change; amounts and approvals
Data and systemsSources, permissions, personal data
Success and guardrailsTarget measure plus measures that must not get worse
Failure handlingHandoff, reversal, stop
Cost rangeBuild and monthly running, with assumptions
Stop criteriaWhat 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

MistakeConsequenceInstead
Starting from a model demonstrationSolution without a problemStart from observed work
Mapping only the official procedureExceptions break the designSample real cases
Automating a broken processFaster confusionSimplify first
Counting all time saved as moneyBusiness case collapses laterSay what happens to the time
No baselineValue cannot be shownMeasure first
Letting scores override legal limitsUnacceptable project proceedsApply 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

Where to go next