Blog

Your AI agents need something to be right about

An LLM will tell you which customers are about to leave, but not with a probability you can check. Why agents need predictive models underneath them, and how to wire the two together.

Ask a large language model which of your 40,000 customers will cancel next month and it will give you an answer. The answer will be well written and delivered with confidence. It may even be right about a few of them.

What it will not come with is the thing you need before you spend retention budget on it: a probability you can check against history. A churn model that says 0.81 is making a claim you can audit. Pull every customer it scored near 0.81 last year, and about four in five of them should have left. If they did, you can build a budget on that number. An LLM's "this customer seems at risk" has no such record behind it.

This matters more now than it did two years ago, because companies are handing real work to agents. An agent can read the account history, draft the outreach, book the call and update the CRM. It still has to know which accounts deserve the effort, how sure to be, and what an offer is likely to change. Those are prediction questions. Prediction is a different kind of AI from the kind that has had all the attention, and most companies already own some of it.

Most of the value is still in prediction

When McKinsey sized generative AI in 2023, the headline was $2.6 trillion to $4.4 trillion a year. The same report put non-generative AI and analytics at $11 trillion to $17.7 trillion. Generative AI was a 15 to 40 percent addition to something about four times its size1.

McKinsey's 2023 estimates: non-generative AI and analytics at $11.0T to $17.7T a year, generative AI at $2.6T to $4.4T

The figures are three years old and you can argue with them. The proportions match what we see inside companies. The models that approve credit lines, price freight, flag card fraud, forecast demand by store and schedule maintenance are regressions, gradient-boosted trees and time-series models. Many were built before 2022. Nobody demos them at the all-hands. They decide where a large share of the money goes every day.

The generative wave has not made them obsolete at their own job either. In a test published in July, a frontier LLM was shown rows from 49 public datasets and asked to predict the missing column. A small purpose-built tabular model beat it on 43 of them. The LLM's median error was 57 percent higher, and its predictions cost about $1.50 per thousand2 (the author notes the protocol was reduced, so read the aggregate and not any single dataset). A fraud model has to score a payment in milliseconds, for a fraction of a cent, and give the same answer tomorrow. That job belongs to a model trained on your data.

Still hard, and now easier to do badly

Predictive modeling has a reputation as a solved problem: load a table, call fit, read off the score. Fitting is the easy step. The work that decides whether a model makes money sits on either side of it.

Defining the target. "Churn" has to become a date, a window and a rule. Does a downgrade count? A customer who pauses for a month? Does the prediction arrive early enough for anyone to act on it? Two reasonable definitions give you two different models and two different retention programs.

Keeping the future out of the past. A feature like "visits to the cancellation page" will make any churn model look brilliant in testing, because it is nearly the outcome itself. Leakage is rarely that obvious. It hides in fields that are back-filled after the event, in a status column updated by the very process you are predicting, and in a random train/test split on data that has a time order.

Testing the way the model will be used. A forecast should be backtested across many past cutoff dates, at the horizon the planner works at, against the naive baseline the planner already has. A single holdout number tells you little.

Turning scores into decisions. A fraud model that is 99.9 percent accurate can be useless when one payment in a thousand is fraud. What matters is the threshold, and that depends on what a missed fraud costs, what a false alarm costs, and how many alerts your analysts can clear in a day. Whether the probabilities are calibrated matters more than the ranking metric on the slide.

Staying right. Prices change, a competitor launches, a sensor gets replaced. Models decay quietly, and the true outcomes often arrive weeks after the prediction, so you find out late unless you are watching the inputs.

Practitioners have known this list for years. Two things have changed around it.

The field is moving again. On the July 2026 snapshot of TabArena, the main public benchmark for tabular models, every single model ranked above the best tuned gradient-boosted trees is a tabular foundation model: a transformer pretrained on millions of synthetic tables that predicts on yours with no training run2,3. That ends a decade of "just use XGBoost." The same analysis shows trees still ahead on wide tables with more than 100 features and on high-cardinality categories, with the foundation models' edge shrinking as row counts grow, and those models want a GPU. Choosing well now takes more judgment than it used to.

The people are harder to find. The attention of the field moved to LLMs, and hiring followed. One analysis of 3,849 machine learning engineer postings in June 2026 found that 52 percent now ask for classical ML and generative AI skills together4. Engineers who have shipped both are scarce. In our experience the classical half is the scarcer one, because it is learned mostly by being burned: by a leak you missed, or a model that decayed in production while its dashboard stayed green.

Meanwhile, a coding agent will write a complete training pipeline in minutes. It will also write one with a random split on time-ordered data and report an AUC of 0.97 without complaint. The cost of building a model has collapsed. The cost of knowing whether to trust it has not, and that is where experience earns its keep.

Three places an LLM makes a model worth more

The best use we have found for LLMs in this work is to leave the predicting to the predictive model and put the LLM to work before it, around it and after it.

Before the model: better inputs. Much of what predicts churn, claim severity or equipment failure is written down in text nobody could use: support tickets, call notes, adjuster comments, technician logs. An LLM can read each one and return structured fields (issue type, urgency, sentiment, whether a competitor was named) that go into the table as ordinary features. LLMs can also propose new features from a plain description of the columns, which improved results as far back as CAAFE5 in 2023, and agents can run the experiment grid that tests them. Two rules keep this honest. Every proposed feature has to earn its place in a time-aware backtest, and features drawn from text may only use text that existed at the moment of prediction.

Around the model: an interface people will use. Most predictive models fail at the last step. The score lands in a dashboard column, and the account manager, planner or adjuster has no way to ask it anything. Put the model behind an agent and they can. "Why is this account high risk?" becomes a call to the model's explanation method, translated into two sentences. "What if we move them to annual billing?" becomes a second call with one input changed. The uncertainty comes along in plain words: likely, a coin flip, or we have not seen an account like this before.

After the model: action. A score can do more than wait to be read. It can start the work, which is the second of the two connections below.

Two ways to wire them together

There are two connections worth building, and they run in opposite directions.

The agent asks the model through a tool call; the model wakes the agent when a score crosses a threshold

The agent calls the model. Expose each model as a tool the agent can call. The Model Context Protocol (MCP) is now the standard way to do that, and since its July 2026 revision moved to a stateless core, an MCP server can be deployed like any other HTTP service6. A useful tool returns more than a number:

@mcp.tool()
def churn_risk(account_id: str) -> dict:
    """Probability this account cancels within 60 days, with drivers."""
    row = features.as_of_now(account_id)
    p = model.predict_proba(row)[0, 1]
    return {
        "probability": round(float(p), 3),
        "calibrated_on": "2026-Q3 holdout",
        "top_drivers": explain(row, k=5),
        "in_training_range": coverage.check(row),
        "model_version": MODEL_VERSION,
    }

The docstring is what the agent reads when deciding whether to call the tool, so it states the horizon and the definition. The response carries what a careful analyst would ask for: where the probability was validated, what is driving it, whether this row resembles anything the model was trained on, and which version answered. Add a companion what_if tool that accepts changes only to inputs someone can really change (plan, billing term, discount) and you have a model people can question.

The model calls the agent. The second connection needs nobody to ask. Your models already score every payment, account, ticket and sensor reading. When a score crosses a threshold, that event wakes an agent with the context attached.

  • A fraud score above the review line opens a case, and the agent assembles the transaction history and writes the summary an analyst approves or rejects.
  • A jump in churn risk on a large account produces a drafted save plan for the account owner.
  • A forecast of a network fault proposes a maintenance window and the customer notice that goes with it.
  • A low-sentiment survey response or a high-severity ticket gets a prepared reply and an escalation path within minutes.

The model decides when and where attention is needed, cheaply, across millions of rows. The agent spends expensive reasoning only on the few cases that warrant it. Each one covers the other's weakness.

What goes wrong when you connect them

Three failure modes are common in hybrid builds, and none of them announces itself.

A what-if gets mistaken for an experiment. Suppose the agent changes the discount input from 0 to 10 percent and the churn score drops. You have learned what the model associates with discounted accounts. You have not learned what a discount will do to this account. Perhaps discounts historically went to customers who were already loyal. An agent that optimizes over a correlational model will confidently recommend whatever the history confounded. The fixes are known. Restrict what-ifs to inputs with real variation behind them, label the answers as model estimates, and where the decision is worth it, run a holdout test or build an uplift model that estimates the effect of the action itself.

The agent erases its own training data. Suppose the system works: the model flags an account, the agent intervenes, the customer stays. Next quarter that account sits in the training set as a high-risk profile that did not churn, and the retrained model learns that such accounts are safe. Success teaches the model to stop flagging the customers it was right about. Keep a small random control group that gets no intervention, and log every action the agent takes so the next model can account for it.

Alerts outrun the people or the budget. A threshold chosen on a validation chart can produce 40 alerts on a quiet day and 4,000 during an outage. Triggers need an alert budget, deduplication so that one incident wakes one agent, and a clear line between what the agent may do alone and what waits for a person. We put human approval on anything that moves money, contacts a customer or changes a production system. We also test the agent against recorded cases before every change, the same way the model underneath it is backtested.

Where to start

You probably own most of the parts already.

  1. List the models you have in production. For each, write down who acts on its output and how often. The ones with a healthy backtest and no regular user are your cheapest wins.
  2. Pick one and put it behind a tool with an explanation and a guarded what-if. Give it to five of the people it was built for and read every question they ask it.
  3. Pick one event where minutes matter (a fraud alert, a severity-one ticket, a risk jump on a top account) and let it wake an agent that prepares the work for a person to approve.
  4. Before either goes live, set aside the control group and write down how you will know it worked.

Then check the foundations honestly. If the model underneath has leakage, a stale training window or probabilities nobody has calibrated, the agent will make its mistakes faster and more persuasively. That check is the part that takes people who have done it before.

This is the work we do at ES Consulting. Our senior engineers have built forecasting and risk models at enterprise scale and production agents on top of them. They work inside your systems, alongside your team, and leave you with something you own. If you have a model nobody uses, or an agent with nothing solid to stand on, we would be glad to compare notes: talk to our team.

Sources

  1. The economic potential of generative AI, McKinsey, June 2023↩
  2. Tabular LLMs: an introduction to the foundation models that predict your spreadsheet, Towards Data Science, July 2026↩↩
  3. TabArena: a living benchmark for machine learning on tabular data↩
  4. AI is rewriting the machine learning engineer job in 2026, InterviewStack, June 2026↩
  5. CAAFE: context-aware automated feature engineering, 2023↩
  6. MCP 2026-07-28: what's changing and how to migrate, Agentic AI Foundation↩

More from the blog

All posts

Agents3 min read

What makes an AI-found bug report worth reading?

When an AI agent reports a bug, the report is part of the job. What a useful one contains, so a developer can see the problem again, judge its impact and decide what to do next.

Shane Z.

Part 1 of 3 · AI-native engineering

AI SDLC14 min read

Designing for AI-scale throughput

Most teams bought the same AI coding tools, and only some of them ship faster. What a team of three changed around the tools to go from 200 code changes a month to about 10,000.

Tobi O.

Agents5 min read

Give each agent a job it can finish

One agent with access to everything has too many choices. How to split work like a disputed invoice into focused jobs, and what each agent should hand to the next.

Alec J.

Work with us

Ready to get your AI into production?