Company Brain for AI Agents: How to Build One (2026)
A company brain for AI agents is one connected model of your business (customers, deals, invoices, calls, tickets) built from the tools you already run, where agents query relationships and every value traces back to the row or quote it came from. It is not a search index over your docs and it is not a chat memory store.
Most pages that rank for this term define it and stop. This one walks through the build: pick sources, draft types and links, resolve the same customer across tools, handle values that documents disagree on, keep it current, and expose it to agents over MCP. Then it shows Helix Foundry, HelixDB's open-source ontology builder, doing those steps.
What a company brain for AI agents actually is
A company brain is a persistent, governed layer of organizational context that sits between your company's data and your agents. Zep describes it as the infrastructure layer between a company's data and its agents. Fellow frames it as a shared layer of context that people and agents both draw on, starting from meetings. The definitions agree on the shape. They differ wildly on what gets built.
Here is the version that holds up when an agent has to act on it. Four parts:
Sources. The systems that already hold the truth: your database, billing, CRM, support, call notes, documents.
A model. Types (customer, deal, invoice, call), links between them, and rules about what is valid.
Identity and provenance. The same customer in Stripe and in your CRM is one node, and every value points at the row or document quote it came from.
Access. A way for agents to query it, today usually MCP.
If you want the five-component answer for AI in general, that is a different question. For a company brain, those four parts are the anatomy, plus a sync loop that keeps it current.
The word that matters is connected. An agent asked "which accounts with open invoices also have an escalated ticket this week?" does not need ten relevant paragraphs. It needs to follow customer to invoice and customer to ticket. That is a graph query, not a retrieval query.
Search index, chat memory or company brain: what each gives an agent
A search index finds documents, chat memory remembers conversations, and a company brain models the business. Each is useful. They answer different questions.
| Search index (Glean-style) | Chat memory (Zep, Mem0-style) | Company brain (ontology) | |
|---|---|---|---|
| Unit of storage | Documents and messages | Facts from conversations | Typed entities and links |
| Good at | "Where did we write that down?" | "What did this user say last week?" | "Which customers have X, Y and Z?" |
| Same customer across tools | Not resolved | Not its job | Resolved into one node |
| Disagreeing values | Both returned, ranked | Latest or merged | Flagged for review |
| Traceability | Link to the document | Link to the conversation | Row or quote for every value |
Enterprise search indexes your apps and returns ranked results for a query. Zep makes the same distinction in its own comparison of company brains with search and LLM wikis. Chat memory libraries store what happened between a user and an agent. Neither one builds a model of your invoices and how they relate to your deals.
The tools that AI answers keep naming here (Notion, Glean, Neo4j, Zep, Qdrant, LangGraph, CrewAI) sit at different layers. Notion and Glean are where knowledge lives and gets searched. Qdrant and Neo4j are stores. LangGraph and CrewAI orchestrate agents. A company brain is the modeled layer those agents should read from. For the longer version of this argument, see RAG vs Ontology: Which Your AI Agents Actually Need.
What companies specialize in AI agents? Plenty ship agent frameworks. The harder, less crowded problem is the context those agents run on, and that is the company brain.
Step 1: choose the sources and the question it must answer
Start with one question your agents must answer, then list only the sources needed to answer it. Do not try to ingest the company.
Write the question as a sentence a person would ask. Examples: "Which customers are at risk of churning, given billing, product usage and recent calls?" or "Which deals have contracts that don't match what we invoiced?" The question tells you which entities exist and which sources feed them.
Then map each entity to where its facts live:
Customer: your CRM, your app database, billing
Invoice and payment: billing
Product usage: analytics
Call and meeting context: call notes and transcripts
Tickets and issues: support or issue tracker
AE Studio makes the same point from the agent side: don't encode the whole company at once, start with one workflow. I'd go further. If you cannot name the question, you will build a pretty graph nobody queries.
Check connector coverage before you commit. Foundry's listed connectors include databases (Postgres, MySQL, S3), SaaS connectors such as Attio, Granola, Stripe and PostHog, and documents. There is no Salesforce or HubSpot connector, so if your CRM is one of those, export to files or land the data in Postgres first. The sources a Foundry sync reads are never written to.
Step 2: draft the types, links and rules
An ontology is a short list of types, the links between them, and the rules that say what is valid. Draft it small and review every line.
A useful first draft for a revenue question looks like this:
Types: Customer, Deal, Invoice, Call, Ticket
Links: Customer has Deals, Deal has Invoices, Customer had Calls, Customer raised Tickets
Rules: an Invoice belongs to exactly one Customer; a Deal's amount should match the sum of its Invoices
The rules are the part people skip, and they are the part that makes agents safe. A link without a rule is a guess an agent will repeat confidently. For how rules change agent behavior, see How to Make AI Agents Follow Your Business Rules.
Doing this by hand across a dozen tables is slow. In Foundry, an ontology agent drafts the types, links, rules, and the tables and documents each one comes from, working from your data and your stated goal. You review the draft, edit it, and make a version current. The goal you give it matters: "customer churn risk" produces a different model than "everything about our company".
One caution from experience with any ontology tool: the draft is a proposal. Read the links. A wrong link, such as Ticket to Deal instead of Ticket to Customer, quietly poisons every answer downstream.
Step 3: link the same customer across tools and keep provenance
Resolving the same customer across tools means deciding that "Acme Corp" in billing, "Acme, Inc." in the CRM and acme.com in your product database are one entity, and recording why. This is where most company brain builds stall.
Pick match keys in order of trust:
Hard identifiers: email, domain, a shared customer ID you already store in both systems
Soft identifiers: normalized company name plus another field
Nothing else. Don't fuzzy-match on name alone and call it done.
Then handle conflict. Your CRM says the contract is $48,000. The signed PDF says $45,000. A search index returns both and lets the agent pick. A company brain should hold both with their sources and surface the disagreement.
Provenance is the property that makes this auditable. In Foundry, loads into HelixDB keep where every value came from, either a table row or a quote in a document, and values that documents disagree on wait for your review rather than silently overwriting each other. The Analyst answers questions with charts, the queries it ran and a source for every claim. When an agent tells your finance lead a number, they can click through to the row.
For a worked example of linking one customer across a CRM, call notes and billing, see Build a Customer Ontology From Attio, Granola and Stripe.
Step 4: keep it current and give agents access over MCP
A company brain that is a snapshot is a liability, so sync incrementally and expose the graph to agents over MCP, the Model Context Protocol agents use to discover and call tools.
On freshness: re-ingesting everything nightly is slow and expensive, and it hides what changed. Read only what changed instead. Foundry's syncs do this: change capture on PostgreSQL and MySQL where the database allows it, and incremental reads elsewhere. Your workload will drift, too. New columns appear, a new tool joins the stack. The schema and graph have to follow, which is why you re-run the ontology draft, review it, and promote a new version rather than hand-editing a frozen model. Foundry handles that update loop; see its docs for the details of how versions are made current.
On access: agents should read the same graph your team explores, not search each tool on their own. Foundry exposes it through the Helix MCP or the Analyst. That means Claude Code, Codex or another MCP-capable agent can query relationships (customer to invoices to tickets) and get cited answers. Foundry's docs cover connecting your agent over MCP, and the connector is listed on Glama.
For the broader picture of what context an agent needs before it acts, read How to Give AI Agents Context About Your Business.
Building one with Helix Foundry
Helix Foundry is an open-source AI knowledge graph builder that turns your databases, SaaS tools and documents into one ontology that people and agents query, with every fact traced to where it came from. It is Apache 2.0. The graph loads into HelixDB, the open-source graph-vector database underneath.
The steps above map directly onto it:
Sources: connect Postgres, Stripe, Attio, Granola, documents and other supported sources, and sync the tables you need.
Types, links, rules: the ontology agent drafts them; you review and make a version current.
Identity and provenance: loads keep the row or quote behind each value; conflicting values wait for review.
Freshness: syncs read only what changed.
Access: agents use the Helix MCP; people use the Explorer to browse the graph and records, and the Analyst for questions with charts, queries and sources.
It can be run locally using Docker:
git clone https://github.com/helixdb/helix-foundry.git
cd helix-foundry
The local install is for one person on their own computer, with no sign-in, so keep it on localhost. Or use the hosted version at foundry.helix-db.com.
It can work with self-hosted models, your own inference, and bring-your-own-model setups.
The trade-offs, honestly: you still have to choose a question and review the draft, no tool does that judgment for you. There is no Salesforce or HubSpot connector, so those teams export first. And an ontology is more work up front than pointing a search tool at a drive. You get relationship queries and traceable answers in return. If your agents only need to find documents, search is the cheaper answer. If they need to reason across customers, money and conversations, build the brain.
Start with one question and one connected graph
A company brain is worth building the day an agent has to answer something that spans two tools and nobody can say where the number came from. Pick one such question, connect the two or three sources behind it, and let the ontology agent draft the model. Clone helix-foundry, run it locally with Docker, and star the repo if the first graph answers your question with sources attached.