---
title: Your AI agent can read your data. It can't read your business rules.
description: We gave an AI agent a sample bank's data and asked which customers qualify for Premier. It got it wrong until we connected the ontology.
image: https://graph.build/hubfs/Screen%20Recording%202026-12-03%20at%2011.01.55.gif
---

[Skip to content](https://graph.build/blog/ai-agent-needs-your-ontology#main)

[![graph.build](https://graph.build/hubfs/raw_assets/public/graphbuild-theme/images/logo-secondary-reverse.svg)](https://graph.build/)

Menu

- Platform
- AI context
  
  [Context for AI](https://graph.build/ai-context) [Semantic layer](https://graph.build/semantic-layer) [GraphRAG](https://graph.build/graphrag) [MCP & agent access](https://graph.build/mcp) [Ontologies explained](https://graph.build/resources/ontology)
- Resources
  
  [Blog](https://graph.build/blog) [Graph fundamentals](https://graph.build/resources) [Documentation](https://graph.build/documentation)
- Company
  
  [About us](https://graph.build/about) [Consulting](https://graph.build/consulting-services) [Contact](https://graph.build/contact)

[Book a demo](https://graph.build/enquire/book-a-demo)

Model

[Studio](https://graph.build/graph-build-studio) [Visual graph modelling](https://graph.build/graph-modelling-tool) [Ontologies & vocabularies](https://graph.build/platform-architecture#ontology)

Transform

[Transformers](https://graph.build/graph-build-transformers) [Knowledge graph ETL](https://graph.build/knowledge-graph-etl) [Change data capture](https://graph.build/graph-build-transformers#cdc)

Write

[Writers](https://graph.build/graph-build-writer) [Database compatibility](https://graph.build/graph-databases) [Deployment](https://graph.build/platform-architecture#deployment)

You are here

[The graph engineering lifecycle](https://graph.build/knowledge-graph-building)

Design, configure, engineer, iterate and automate graph model production: the whole lifecycle, without writing bespoke ingest code for each project.

Model

[Studio](https://graph.build/graph-build-studio) [Visual graph modelling](https://graph.build/graph-modelling-tool) [Ontologies & vocabularies](https://graph.build/platform-architecture#ontology)

Transform

[Transformers](https://graph.build/graph-build-transformers) [Knowledge graph ETL](https://graph.build/knowledge-graph-etl) [Change data capture](https://graph.build/graph-build-transformers#cdc)

Write

[Writers](https://graph.build/graph-build-writer) [Database compatibility](https://graph.build/graph-databases) [Deployment](https://graph.build/platform-architecture#deployment)

AI context

[Context for AI](https://graph.build/ai-context) [Semantic layer](https://graph.build/semantic-layer) [GraphRAG](https://graph.build/graphrag) [MCP & agent access](https://graph.build/mcp) [Ontologies explained](https://graph.build/resources/ontology)

Resources

[Blog](https://graph.build/blog) [Graph fundamentals](https://graph.build/resources) [Documentation](https://graph.build/documentation)

Company

[About us](https://graph.build/about) [Consulting](https://graph.build/consulting-services) [Contact](https://graph.build/contact) 

[Book a demo](https://graph.build/enquire/book-a-demo)

[← All posts](https://graph.build/blog)

# Your AI agent can read your data. It can't read your business rules.

We gave an AI agent a sample bank's data and asked which customers qualify for Premier. It got it wrong until we connected the ontology.

![](https://graph.build/hubfs/1726666857728.jpeg) Russ Waterson · Dec 3, 2026

![](https://graph.build/hubfs/Screen%20Recording%202026-12-03%20at%2011.01.55.gif)

We expected an AI agent to struggle with messy banking data. It didn't. Where it got stuck was somewhere else, and that turned out to be the more useful result.

### The setup

We built a small sample retail bank: eight customers, ten accounts, twelve cards, three months of balances and around fifty transactions. Everyone in it is fictional. We laid it out the way a real core banking export looks, with coded columns and ISO-style transaction codes rather than tidy names.

Here's part of the cards table. Each card records two customers: the account's first-named customer, and the person the card was actually issued to.

```
crd_no,acct_no,acct_cust_no,emb_cust_no,crd_prod,crd_seqK02,10000002,C1002,C1001,D,00K03,10000002,C1002,C1002,D,00K05,10000004,C1003,C1001,D,01
```

We gave the agent read access to the database and ran every question twice. The first time it had the database alone. The second time it also had Studio v4.0's MCP server, which gives it the ontology we'd designed in Studio. Nothing else changed between the two runs.

### What surprised us

We started with a data question: how much did one customer spend on her cards in October? The data was full of traps: cards on joint accounts, an additional card on a parent's account, a refund, a declined payment and payments posted the day after they were made.

The agent got it right without the ontology, even after we made the data harder. Given enough columns and codes, a good agent can work out what most of them mean.

So we asked it something the data can't answer.

### The question

> Which customers were eligible for a Premier account upgrade as of 31 October 2026?

Nothing in the tables says what "eligible" means. That's a business rule. In most organisations it lives in a policy document or in someone's head.

In our ontology, it lives on a class called PremierEligibleCustomer:

> A customer is eligible when all of these are true: they hold a current account, as primary or joint holder; either the accounts they hold have a combined balance of at least £50,000, or they received at least £5,000 in salary in each of the last three months; and no card issued to them had a declined payment in the last 90 days. Joint accounts count in full for each holder. Credit card accounts don't count towards the balance, and only salary counts towards the salary test.

Each part of that rule matters. Here's one customer's incoming payments:

```
txn_ref,acct_no,proc_cd,amt_mnr,txn_dt,cr_catT0106,10000005,CRTRF0,560000,2026-08-29,ST0107,10000005,CRTRF0,560000,2026-09-29,ST0112,10000005,CRTRF0,40000,2026-10-05,OT0108,10000005,CRTRF0,490000,2026-10-29,S
```

She averages over £5,000 a month, and adding the £400 transfer takes October over £5,000 too. But the rule needs £5,000 of salary every month, and the transfer isn't salary. She doesn't qualify.

### The outcome

**Without the ontology:** to its credit, the agent didn't pretend. It said the data didn't include the rule and checked three likely ones instead. A salary test of £5,000 a month for three months gave Tom Smith alone. A balance test of £50,000 at each of the last three month-ends gave Margaret Hale, Owen Price, Sophie Turner and Liam Murphy. A typical high-street test of £100,000 income or savings gave Owen Price alone. Three reasonable rules, three different answers, and none of them right. None of its guesses checked for declined payments, and two of them let in Owen, who has no current account.

**With the ontology:** the agent read the rule from Studio over MCP, queried the data and returned the right four customers.

| Customer | Eligible? | Why |
| --- | --- | --- |
| Tom Smith | Yes | £5,200 salary every month |
| Margaret Hale | Yes | £61,500 balance. A declined payment on her account was on someone else's card |
| Sophie Turner | Yes | £54,000 joint balance, counted in full |
| Liam Murphy | Yes | The same joint balance. His declined payment was more than 90 days ago |
| Jane Smith | No | A declined card payment in October |
| Daniel Okafor | No | Balance over £50,000, but a declined payment in September |
| Priya Patel | No | Salary fell below £5,000 in October |
| Owen Price | No | £120,000 in savings, but no current account |

### ![Screen Recording 2026-12-03 at 11.01.55](https://graph.build/hs-fs/hubfs/Screen%20Recording%202026-12-03%20at%2011.01.55.gif?width=3024&height=1964&name=Screen%20Recording%202026-12-03%20at%2011.01.55.gif)

### Why this matters

An agent with database access can tell you what's in your systems. It can't tell you what your business means by a word like "eligible", "active" or "high risk". Those definitions are what decide whether an answer is right.

Put them in the ontology and every agent that connects to it uses the same definition. When the rule changes, you change it once in Studio and every agent picks it up. Model the business once, and every agent gives the same answer.

### Try it on your own data

The ontology was built in Studio v4.0 and shared with the agent through Studio's MCP server. The agent queried the data through its own database connection, so Studio didn't need to sit in the data path.

If there's a business rule your teams keep getting asked about, [book a demo](https://graph.build/enquire/book-a-demo) and we'll show you this working on your data.

Written by Russ Waterson · Dec 3, 2026 

[All posts](https://graph.build/blog)

More from the blog

## Recently

### [![](https://graph.build/hubfs/Screenshot%202026-11-23%20at%2014.24.37.png) Studio AI edits you can review and undo Nov 24, 2026](https://graph.build/blog/ai-edits-you-can-review-and-undo)

### [![](https://graph.build/hubfs/Screenshot%202026-11-17%20at%2012.12.16.png) Studio Introducing Graph.Build Studio v4.0 Nov 17, 2026](https://graph.build/blog/introducing-graph.build-studio-v4.0)

Platform

[Studio](https://graph.build/graph-build-studio) [Transformers](https://graph.build/graph-build-transformers) [Writers](https://graph.build/graph-build-writer) [Database compatibility](https://graph.build/graph-databases) [Platform architecture](https://graph.build/platform-architecture)

AI context

[Context for AI](https://graph.build/ai-context) [Semantic layer](https://graph.build/semantic-layer) [GraphRAG](https://graph.build/graphrag) [MCP & agent access](https://graph.build/mcp) [Ontologies explained](https://graph.build/resources/ontology)

Resources

[Blog](https://graph.build/blog) [Graph fundamentals](https://graph.build/resources) [Choosing a graph database](https://graph.build/graph-databases) [How to build a knowledge graph](https://graph.build/knowledge-graph-building) [Documentation](https://graph.build/documentation)

Company

[About us](https://graph.build/about) [Consulting](https://graph.build/consulting-services) [Contact](https://graph.build/contact)

Legal

[Privacy policy](https://graph.build/privacy-policy)

Get in touch

No newsletter. If you want to talk about a model, or want to be kept posted, the contact form is the way in.

[Contact us](https://graph.build/contact)

- <https://www.linkedin.com/company/graphbuild>

 © 2026 Graph.Build · A trading name of Data Lens Labs Ltd, registered in England & Wales, company number 12483318 

[![graph.build](https://graph.build/hubfs/raw_assets/public/graphbuild-theme/images/logo-secondary-reverse.svg)](https://graph.build/)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Russ Waterson",
    "url" : "https://graph.build/blog/author/russ-waterson"
  },
  "dateModified" : "2026-12-03T11:25:10.434Z",
  "datePublished" : "2026-12-03T11:24:28.000Z",
  "headline" : "Your AI agent can read your data. It can't read your business rules.",
  "image" : [ "https://graph.build/hubfs/Screen%20Recording%202026-12-03%20at%2011.01.55.gif" ],
  "mainEntityOfPage" : {
    "@id" : "https://graph.build/blog/ai-agent-needs-your-ontology",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://graph.build/hubfs/graph-build-logo-primary-1.svg"
    },
    "name" : "Graph.Build"
  }
}
```