---
id: 18194
lang: en
title: "An AI Agent for a Bank Analyzed 554K Applications and Found Returns in 12.8% of Them"
published_at: "2026-11-25 14:24:34"
source_name: "TG: @r77_ai (R77 AI / Кейсы в ИИ)"
source_url: "https://t.me/r77_ai/370"
canonical_url: "https://news.hamidun.com/en/news/18194"
categories: ["business", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# An AI Agent for a Bank Analyzed 554K Applications and Found Returns in 12.8% of Them

> **Краткая суть (BLUF):** The bank assumes applications follow the official process, but the event log shows different routes, and manual review takes weeks. R77 AI built an agent on LangGraph that reads the log, generates hypotheses, and checks them against the data. Among 554K applications (5.4M step records), 71K, or 12.8%, showed returns before terminal installation. Metrics are computed by code, not by the LLM, which makes the process cheaper and more accurate.  • 23,976 unique routes and 683 transitions between process stages • Four roles: generator, critic, validator, and refinement agent • Up to three rounds of hypothesis checking, all running inside the bank's perimeter

The bank is confident that a merchant acquiring application (accepting cards in stores) follows the official process. But the event log tells a different story: every step, whether "created," "signed," or "awaiting terminal installation," leaves a record, and across 554K applications those records add up to 5.4M. The R77 AI team built an agent for a major Russian bank on LangGraph (a library that connects several LLM roles into a single process). The agent analyzed this dataset on its own and found that in 71K applications, or 12.8% of the sample, the process went back between document signing and waiting for terminal installation. Previously, this kind of analysis took a process analyst weeks or months.

## What Process Mining Is and Where an LLM Fits

The idea is simple. Corporate systems accumulate events for every application. If you order them by time, you get a graph of the actual process: routes, loops, bottlenecks, and time spent at each stage. It's like a road map built from drivers' GPS tracks rather than from a city scheme.

Classic tools stop there and hand the analyst charts and tables. After that, a person has to figure out why a stage is delayed, test the guesses, and write up the conclusions. The team assigned this part to the agent: it analyzes logs, formulates hypotheses, checks them against the data, and produces a report with justifications and recommendations. The pilot ran on the merchant acquiring onboarding process.

## How the System Works

The key engineering decision is that millions of rows never enter the model's context. Metrics are computed with ordinary code, without the LLM: medians, 90th percentiles of time (the time beyond which only 10% of applications go), transition frequencies, and cycle detection. The model receives the finished aggregates and works with them. This matters for economics. Even a rough estimate of 10 tokens per event (our assumption, not data from the case) puts 5.4M events at tens of millions of tokens per run. Such a volume is expensive, slow, and prone to counting errors. Code counts precisely and nearly for free.

The model is needed where nothing else will do. Event names often differ across systems even when they mean the same thing. The LLM normalizes them using neighboring steps and merges synonyms, after which the process graph is built.

On top of this runs a multi-agent scheme on LangGraph with four roles:
- the generator proposes hypotheses about causes of delays;
- the critic looks for weak points in them;
- the validator tests the hypotheses against the data;
- the refinement agent reworks the wording based on the critic's comments.

The loop repeats up to three times. The cap limits token spending and keeps the system from endlessly refining the same thing.

Stack: Python, LangGraph, LangChain, Pydantic, PM4Py, rustworkx, SciPy, and statsmodels. Everything was deployed inside the bank's perimeter. For a financial institution, this is a precondition, not an option.

## What the Pilot Produced

The agent analyzed 554,203 applications and 5,435,063 events. The data contained 23,976 unique routes and 683 transitions between stages. Nearly 24 thousand ways of moving through a single process explain why manual review is so labor-intensive.

An example of a discovered pattern: in 71K applications, or 12.8% of the sample, there are returns between document signing and waiting for terminal installation. The authors cautiously describe this as an area worth investigating for optimization. The cause of the returns is not disclosed in the case.

## What the Case Does Not Include

This is material from the contractor itself, and it has gaps. There is no comparison with live analysts in terms of time or quality. There is no share of hypotheses that were confirmed and led to real process changes. There is no data on launch costs, token consumption, or the model used. No effect in money or days of acceleration is stated. For now, this is a demonstration of architecture and scale, not a proven business result.

## What to Take Away in Practice

The scheme can be transferred to other tasks where the data is too large for a context window: support logs, transactions, incidents. Compute everything that can be computed with ordinary code. Leave the model with semantic normalization and reasoning. Separate the roles of generation and verification and limit the number of iterations. If hypothesis checking relies on statistics rather than on another model's opinion, the report is considerably more trustworthy.

---
- **Первоисточник:** [TG: @r77_ai (R77 AI / Кейсы в ИИ)](https://t.me/r77_ai/370)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18194
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
