

AI agents will soon run on your margin model. Should you really build it yourself?
A margin data model sets the terms on which your business takes risk, earns its margin and ties up cash, while AI agents could soon be acting on those terms thousands of times a day. The decision to build or buy, therefore, is as much a question of business leadership as it is of technology.
Ask your commercial, trading and finance teams to report the margin on the same contract and you may well receive three different answers; a familiar problem across the industry. According to our Energy Margin Intelligence Index 2026, only 34 per cent of the executives surveyed claim that they consistently reconcile sales margin with financial margin to a high degree of accuracy. As our CEO, Ruben Van den Bossche, has argued, everyone owns a piece of margin, and nobody owns the whole thing. But visibility and accuracy are vital.
Most leaders already know they have this problem. What is less straightforward is deciding how to resolve it, particularly when considering whether to build a solution internally or buy one. Central to that decision is the margin data model itself, which underpins a unified view of profitability. Every retailer already operates with such a model, although its constituent parts are often dispersed across different teams, systems and spreadsheets. Its influence also extends well beyond reporting.
Your data model turns strategy into instructions your agents can follow
A margin data model is, in many respects, an expression of commercial policy, determining which costs are recognised and when, how an imbalanced bill is attributed to the contract responsible and which forecast takes precedence when different projections emerge. It can even determine whether a customer whose consumption profile helps balance the portfolio will receive more favourable pricing than one whose demand introduces additional risk.
Together, these decisions establish where a retailer is prepared to take risk, which customers it wants to attract and how it prioritises competing commercial frameworks. Yet in most retailers, they remain distributed across functions and financial records, each reflecting a different but potentially valid perspective on margin.
Agents will act on whatever you define
The importance of these decisions is increasing as AI becomes more closely integrated into commercial operations. Pricing decisions can already be made in minutes, while AI agents are beginning to support activities such as preparing quotes and explaining margin movements. As our VP of Product, Joris Van Genechten, argued earlier this month, AI is only as trustworthy as the foundations beneath it.
An agent’s ability to operate effectively depends on the definitions and parameters established within the underlying model. People remain responsible for setting those boundaries, even as agents begin to execute decisions within them at considerable scale. As Ruben puts it, ‘retailers still decide what the logic should be.’
Consequently, defining margin can no longer be treated primarily as a reporting exercise. The decisions embedded in the model will ultimately determine what AI automates, including any compromises that have been made along the way.
Why a build drifts to the average
Building a margin model internally requires retailers to resolve those questions across the functions they affect. That presents an organisational challenge, particularly when responsibility for margin is distributed across commercial, trading and finance teams, each with legitimate requirements and perspectives.
The risk is that developing the model becomes an exercise in negotiation, with competing priorities accommodated through compromises rather than clear commercial decisions. This is not necessarily a reflection of the capabilities of the teams involved but a consequence of seeking consensus across functions with different objectives. Moreover, those compromises rarely remain settled for long. Each new product or change to settlement requirements can reopen earlier decisions, drawing the business back into discussions it has already had.
Buy the model, own the configuration
Buying an established margin model offers a different starting point, with its underlying approach already developed and tested across multiple portfolios, incorporating relevant national legislation, compliance requirements and industry costs. Rather than resolving every foundational question internally, leadership teams can concentrate on configuring the model to reflect their own commercial strategy.
That includes determining how much risk the business is prepared to carry, which customers it wants to serve and where its requirements genuinely differ from established standards. In this approach, the emphasis shifts towards justifying exceptions rather than negotiating every definition from the outset, reducing the organisational effort required to reach agreement
Importantly, those strategic choices must remain with the retailer rather than the technology provider. At Gorilla, this distinction is fundamental to our approach. We provide the underlying model and the AI agents that operate on it, while retailers retain control over the configuration and commercial decisions that distinguish their businesses.
Ultimately, every retailer needs a consistent definition of margin. The question is whether that definition emerges from deliberate commercial decisions or from the compromises required to reach agreement.


.png)