AI Glossary / Agents and automation / Intermediate

Process mining

Process Mining (Agents and automation)

Definition

Process mining is a family of techniques that reconstruct how a business process actually runs by analyzing the timestamped event logs that software systems record. It produces process maps, delay measurements and rule-breaking cases from real data rather than from interviews or flowcharts. It is not the same as data mining in general, and the name is also used for vendor products that bundle these techniques.

What it means

Most companies have a picture of how work should flow: an order is received, checked, approved, shipped and paid. The real flow is usually messier. Some orders skip a step, some loop back for corrections, and some wait for days in a queue nobody owns. Process mining gives you the real picture, built from records your systems already keep.

For a manager, the value is evidence. Instead of arguing about where the delays are, you can count them. You can see which path most cases follow, how long each step takes, and how many cases take an unusual route. That makes it a natural first step before automating anything, because you learn what you would be automating.

How it works

The starting point is an event log. Each row records three basic things: a case identifier (for example an invoice number), an activity name (for example approved) and a timestamp. Extra columns, such as the user, the amount or the department, add detail. The data usually comes from an ERP, CRM or ticketing system, and getting it into this shape is often the hardest part of a project.

A discovery algorithm then links the activities in each case in time order and merges all cases into one process map. Frequent paths show up as thick lines and rare ones as thin lines. Conformance checking compares the discovered map with a reference model or a set of rules and flags cases that deviate. Performance analysis adds the waiting and working times between steps.

The results are only as good as the log. Missing timestamps, manual work that leaves no record and activity names that differ between systems can all distort the map. Practice varies on how much cleaning is done before analysis, so it is worth asking how a vendor or team handles it. Some tools now add machine learning or language models to suggest causes or fixes, but the core method is still counting and ordering recorded events.

Three practical examples

  • Finance team: A shared services group mines its purchase-to-pay log. The map shows that many invoices are approved after payment is already scheduled, which a written policy forbids. The team uses the list of affected cases to tighten the approval workflow.
  • Retailer: An online store mines its order-fulfillment events. It finds that orders containing items from two warehouses wait far longer before shipping than single-warehouse orders. That points the team to a consolidation step as the bottleneck.
  • Support desk: A help desk mines its ticket history. Tickets that are reassigned more than twice take several times longer to close. The manager revises the routing rules so tickets reach the right group the first time.

Think of it this way

Think of it as a traffic camera study of your office. Instead of asking drivers which route they take, you film the intersections and see where cars actually go and where they stop. The analogy stops working because a camera sees everything on the road, while process mining sees only what systems recorded, so offline work, phone calls and hallway decisions stay invisible.

Worked example

A fictional company, Larkfield Supplies, mines 1,000 invoice cases from last quarter. The log shows three paths. Path A (receive, match, approve, pay) covers 700 cases. Path B (receive, match, correction, match again, approve, pay) covers 250 cases. Path C (receive, pay, approve) covers 50 cases.

First, share of cases: 700 / 1,000 = 70 percent follow the standard path, 250 / 1,000 = 25 percent need a correction loop, and 50 / 1,000 = 5 percent pay before approval.

Next, timing. Path A averages 4 days, Path B averages 10 days, Path C averages 3 days. The overall average is (700 x 4 + 250 x 10 + 50 x 3) / 1,000 = (2,800 + 2,500 + 150) / 1,000 = 5,450 / 1,000 = 5.45 days.

If the team removes half of the correction loops, 125 cases move from 10 days to 4 days. That saves 125 x 6 = 750 case-days, so the new average is (5,450 - 750) / 1,000 = 4.7 days. The 50 pay-before-approval cases are a control issue, not a speed issue, and go to internal audit.

Illustrative case study

Fictional case: Brindle & Rowe, a made-up regional equipment distributor, wanted to automate its customer returns process because staff complained it was slow. Before buying any automation, an analyst exported six months of returns events from the order system. The map showed that the official five-step process described only about half of the cases. A large group looped between inspection and credit approval because inspectors recorded condition codes that the credit team did not accept.

The first attempt hit a data problem. Two warehouses used different names for the same activity, so the early map showed phantom steps. The analyst agreed one naming list with both warehouse leads and re-ran the analysis. The cleaner map confirmed the loop. Brindle & Rowe aligned the condition codes and added a single check at inspection, then automated only the approval step that remained. Average return time fell, and the team could show the change by re-running the same analysis on the next quarter of data.

Common misconceptions and mistakes

Process mining shows how people should work. It shows only how work happened, as recorded; deciding whether a path is a problem or a sensible workaround takes human judgment.

It needs no preparation because the data already exists. Extracting and cleaning event logs from several systems is usually the largest share of the effort, and poor logs produce misleading maps.

It is the same as robotic process automation. Process mining analyzes and diagnoses a process, while automation tools execute tasks; the first is often used to choose what the second should do.

It watches individual employees. It can be set up that way, but the useful work is at the case and process level, and using it for personal monitoring raises privacy and trust issues that need a clear policy.

Business use

To start, pick one process that has a clear case identifier, such as invoices, orders or tickets, and one question, such as where cases wait longest. Pull a few months of event data, confirm with the process owner that the activity names mean what you think, and build the first map. Measure case duration, the share of cases on the standard path, the number of rework loops and the count of rule violations. Repeat the analysis after any change so you can compare results.

Costs include software licenses, the time of someone who knows both the process and the data, and the effort to connect source systems. Risks include acting on incomplete logs, exposing personal data about staff or customers, and treating every deviation as an error. Involve your data protection lead early, limit the data fields to what the question needs, and review findings with the people who do the work.

People also ask

What data do I need for process mining?

At minimum, an event log with a case identifier, an activity name and a timestamp for each event. Extra fields such as the user, department or amount allow deeper analysis.

Is process mining the same as process automation?

No. Process mining measures how a process really runs, while automation changes how work gets done. Teams often mine first to decide what is worth automating.

Does process mining use AI?

The core methods are statistical and algorithmic rather than AI in the modern sense. Many vendors add machine learning or language models for prediction and suggestions on top.

Check your understanding

What three pieces of information make up the minimum event log?

Answer: A case identifier, an activity name and a timestamp.

In the Larkfield Supplies example, what share of the 1,000 invoices needed a correction loop?

Answer: 250 of 1,000, which is 25 percent.

Why did the overall average there come out at 5.45 days?

Answer: It is the weighted average: (700 x 4 + 250 x 10 + 50 x 3) / 1,000 = 5,450 / 1,000 = 5.45 days.

Why can a process map be wrong even when the algorithm works correctly?

Answer: Because the log may have missing timestamps, unrecorded manual work or inconsistent activity names, and the map can only reflect what was recorded.

Related terms

  • Robotic process automation
  • Intelligent automation
  • Business process management
  • AI agent
  • Data Quality
  • Human-in-the-loop
  • Workflow automation
  • Task mining

Learn next

Pick one process in your own organization and sketch the event log you would need: the case identifier, the activities and where the timestamps live. Then read about workflow automation and robotic process automation to see how findings from a process map turn into automated steps, and about data quality to understand why the log is usually the hardest part.

  • Robotic process automation
  • Data Quality

More in Agents and automation

  • Plan monitoring - Plan monitoring is checking whether the remaining part of an agent's current plan can still achieve its intended goal given the latest relevant information.
  • Problem-solving agent - A problem-solving agent is an agent that works toward a goal by searching: it imagines sequences of actions, evaluates where they lead, and chooses a...
  • Procedural memory - Procedural memory, in an AI agent, is the stored knowledge of how to do things: reusable routines, skills and rules for carrying out tasks, as distinct from...
  • Proto-agent - A proto-agent is one of two semantic proto-roles from linguistics: the participant in an event who acts, causes, moves or experiences, as opposed to the...
  • Rational agent - A rational agent is an agent that, given what it has perceived, chooses the action expected to achieve the best outcome according to its performance measure.
  • ReAct - ReAct is a prompting and agent design pattern in which a language model alternates between reasoning steps and actions.

Sources

Gartner, Information Technology Glossary: https://www.gartner.com/en/information-technology/glossary IBM, Think topics: https://www.ibm.com/think/topics UK Information Commissioner's Office, Guidance on AI and data protection: https://ico.org.uk/ The sources were consulted for general terminology and for data protection considerations; the examples, analogy, worked example and case study are original educational illustrations. Checked 10 Nov 2026.

Previous: Procedural reasoning system Next: Processing Bias

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer