Insights

Ontology

What is an ontology, and why do AI agents need one?

An ontology is a shared model of a business as objects, relations and actions. It is what lets an AI agent act on real records within real permissions.

5 min readMandelbrot Labs

An ontology is a shared, explicit model of a business: the kinds of things in it (objects), how they connect (relations), and what may be done to them (actions). AI agents need one because a language model on its own knows language, and nothing about your customers, your stock or your rules. The ontology gives the agent a precise picture of the business and a fixed list of things it is allowed to do.

In everyday software the same idea hides inside database tables and screens. An ontology makes it explicit and puts it in one place, so that every app, every report and every AI agent reads the business the same way.

The three parts of an ontology

Objects

Objects are the things the business works with. For a distributor these are typically companies, people, deals, products, batches, places, orders and vehicles. Each object has fields: a product has a name, a unit and a price list; a batch has an expiry date and a landed cost; a place has an address and opening hours.

Relations

Relations say how objects connect. This order is for this customer, from this batch, held in this warehouse, to be delivered by this van. Relations are what let a question such as "which customers are waiting on stock from the delayed container?" be answered from the records, without anyone assembling a spreadsheet.

Actions

Actions are the things that may be done to objects: reserve stock, dispatch an order, send a message, approve a change. An action is more than an edit to a field. It has a meaning in the business, it may touch several objects at once, and it has rules about who may take it.

Why each action carries a permission

The most important design decision in an ontology for AI is that each action carries the permission it needs. "Approve a credit note" requires a manager. "Reserve stock" requires someone in sales or the warehouse. "Send a WhatsApp message to a customer" requires someone who handles that customer.

When the permission lives on the action, it applies the same way wherever the action is taken: from a screen, from an automation, or by an AI agent. There is no second set of rules for the AI to slip past. The same is true for reading: who may see each section, money figure and contact detail is decided once, on the server, and applies to every screen, export, search and AI answer.

Why AI agents need an ontology

A language model can write a convincing reply about anything. That is the problem when it is asked to act on a business. Without an ontology, an agent has two poor options. It can be given broad access to databases and tools and trusted to behave, or it can be limited to answering questions and never act at all.

An ontology gives it a third option, with three properties.

  • Grounding. The agent reads real records through the ontology, so its answers refer to actual customers, products and stock levels. When it says a batch expires on Friday, that is the batch's expiry field.
  • A closed set of actions. The agent can only take the actions the ontology defines. If "issue a refund" is not an action, the agent cannot issue one, however the request is worded.
  • Borrowed permissions. The agent acts with the permissions of the person it acts for. An agent working for a warehouse supervisor can see the delivery address and not the price, because the supervisor can see the delivery address and not the price.

Together these turn a general model into something a business can let near its operations. The model supplies language and judgement. The ontology supplies facts, limits and accountability.

How a business's own model grows

No two businesses are alike, and a fixed set of objects will not fit every one. A good ontology lets the business add its own objects, fields, relations and actions without code. A poultry supplier might add farms, egg grades and an "approve batch" action. A distributor with its own fleet might add trucks and the rules for loading them.

These additions are configuration, kept with the client's own workspace. The product underneath stays the same, so every upgrade still applies.

Phanes: the ontology beneath every Mandelbrot app

Phanes is the ontology beneath every Mandelbrot app: one model of your business as objects, relations and actions, so AI agents can act only within your rules. Phanes works as described above:

  • Objects such as companies, people, deals, products, batches, places, orders and vehicles.
  • Relations such as "this order is for this customer, from this batch, in this warehouse".
  • Actions such as reserve stock, dispatch, send a message or approve a change, each carrying the permission it needs.
  • Your own objects and fields, added without code.

Every app reads and acts on the business through Phanes. Argo, the agentic CRM, finds the customer and the product through it when an order arrives on WhatsApp. Mercury keeps stock and orders in it. Talos plans routes from the orders, places and vehicles it holds. Sentinel, our computer vision product in early access, is designed to write what cameras see into Phanes as events. Because the apps share one model and never call each other directly, each can be bought on its own.

Phanes sits on Daedalus, the operating system, which provides sign-in, roles and permissions, and the AI runtime that every agent runs on.

What this means for AI in practice

Two rules follow from building on an ontology.

The assistant prepares, and a person decides. Mandel, the assistant inside Daedalus, can read, suggest and prepare changes. A person's click makes every change to the data. If you ask it to update a customer's delivery address, it prepares the change and you confirm it.

Agents send on their own only where they are allowed to. Argo's WhatsApp agent only sends replies without review in the chats where an admin has turned that on. Elsewhere it writes drafts for staff to check.

In both cases every AI answer is filtered by the asking person's permissions before the model sees the data. The model never holds information the person could not have opened themselves.

Questions to ask about any AI product that acts on your data

  • Does it work from an explicit model of your business, or directly on raw tables and documents?
  • Is there a fixed list of actions the AI may take, and can you read it?
  • Does each action carry a permission, enforced on the server?
  • Does the AI act with the permissions of a specific person?
  • Can you add your own objects and fields without the vendor writing code?

If the answers are yes, the product has an ontology in the sense that matters. If they are vague, the AI's limits are likely to be vague too. For how this fits into a wider approach to ownership and control, see What is sovereign AI?

More insights

All insights
  1. Computer vision on the cameras you already have

    Many warehouses already run cameras that only record. Computer vision at the edge can turn them into counts and events your stock records can use.

    Computer visionOperations5 min read

  2. WhatsApp AI agents for distributors: taking orders safely

    How an order sent on WhatsApp becomes a stock reservation, where an AI agent may reply on its own, and where a person approves a draft first.

    AI agentsWhatsAppDistribution5 min read

Tell us where the work is hardest. We start there.