
This blog is written by AI for SEO
Build a Customer Ontology From Attio, Granola and Stripe
A customer ontology is a shared model of what a customer is across your tools: the types (Customer, Contact, Deal, Call, Subscription, Invoice), the links between them, and the rules that say which source wins when they disagree. This guide walks through defining one by hand, then building the same model from Attio, Granola and Stripe in Helix Foundry, so reports and AI agents treat the CRM record, the call notes and the billing account as one customer.
The payoff for a RevOps or finance ops lead is practical: fewer missed renewals, fewer billing disputes, less time reconciling three systems in a spreadsheet, and no numbers an agent made up because it could not tell two records were the same company.
What a customer ontology is (and what it is not)
A customer ontology is a typed model of your customer data: named entity types, the links between them, and the rules and sources that back every value. It is narrower than a general business ontology and more opinionated than a schema dump.
A quick set of definitions, since people search these separately. Ontology, in the information-science sense, is a formal description of the things in a domain and how they relate. A semantic ontology is the same idea with machine-readable meaning, so software can tell that "account" in the CRM and "customer" in billing refer to the same kind of thing. A business ontology applies that to how a company runs: customers, orders, approvals and the rules between them. A product ontology does it for a catalogue: products, variants, categories and attributes. Ontology management is the work of keeping all of that correct as data and definitions change. Examples you already know: a product taxonomy, a chart of accounts, a CRM object model.
What a customer ontology is not: a data warehouse table, a vector index of call transcripts, or a dashboard. A warehouse holds rows. An ontology says which rows are the same customer and why you believe it. If you want the longer argument against stopping at retrieval, see RAG vs Ontology and Ontology vs Knowledge Graph.
Define the types and links before you touch a tool
Write the types and links on one page before you connect anything, because the tool can only draft what you can describe. Six types cover most B2B customer work.
Customer: the company you sell to. One per real-world company, however many records exist for it.
Contact: a person at a customer. Belongs to exactly one Customer.
Deal: an opportunity in the CRM. Links to one Customer and one or more Contacts.
Call: a recorded conversation. Links to a Customer and the Contacts who attended.
Subscription: a recurring billing agreement. Links to one Customer.
Invoice: a bill under a Subscription, with an amount, due date and status.
The links are where the value sits: Customer has Contacts, Deals, Calls and Subscriptions; Subscription has Invoices. Notice that the question "which customers raised churn risk on a call and have an overdue invoice" crosses four of those types and three tools. No single system can answer it today.
Keep the first version small. Six types and about seven links is enough. Add types when a real question needs them, not before.
Pick join keys, settle conflicts, and capture call facts with evidence
Matching records is the hard part, so decide the join keys and the conflict rules on paper first.
Join keys. Use the strongest identifier each pair of systems shares. Between Attio and Stripe, that is usually the Stripe customer id stored on the CRM record, falling back to the company domain. For Contacts, use the email address. Domains are good but not perfect: personal email domains and subsidiaries break them, so treat a domain-only match as a proposal, not a fact.
Source-wins rules. Per field, name one source of truth. A reasonable default: Attio wins for company name, owner and deal stage; Stripe wins for plan, amount, billing status and invoice dates; Granola is the source for what was said on calls and nothing else. Write the rule down next to the field. When two sources disagree on a field outside the rule, do not guess. Flag it for a person.
Call-note facts with evidence. Calls are where the signal about risk lives, and it is also where invented numbers creep in. Store each extracted fact as a small record: the claim ("customer is evaluating a competitor"), the Call it came from, and the exact quote that supports it. If a fact has no quote, it does not go in. That one rule keeps a summary from turning into a hallucination later.
For a deeper look at matching one customer across systems, see Link the Same Customer Across Stripe, Postgres and Notion. Contracts and PDFs follow the same quote-as-evidence pattern in How to Extract an Ontology From Contracts and PDFs.
Build it in Helix Foundry: connect Attio, Granola and Stripe
Helix Foundry connects your tools and databases, has an ontology agent draft one ontology over them, and loads it into HelixDB as a connected graph. HelixDB is the graph-vector database underneath; Foundry is the app you work in. Helix Foundry connects to SaaS tools and databases like PostgreSQL, MySQL, and S3.
To run it on your own machine you need Docker with Compose v2 and ports 3000 and 8333 free:
git clone https://github.com/helixdb/helix-foundry.git
cd helix-foundry
docker compose up -d --waitThen open http://localhost:3000. The local install is single-user on your own computer, so keep it on localhost. You can also use Helix Cloud at foundry.helix-db.com. For the AI side, Foundry can work with self-hosted models, your own inference, or bring-your-own-model.
Then the steps, following the Foundry docs:
Add Attio, Granola and Stripe as sources, test each connection and sync their tables. Foundry only reads from your sources; it never writes to them.
State the goal in plain language, for example: one customer model joining CRM records, call notes and billing, so we can find renewal risk.
Generate an ontology. The agent reads your synced tables and the newest documents from the document sets it picks, and drafts a version with types, links, mappings and rules, plus the source of each.
Your hand-written page from the earlier sections is the checklist you review that draft against.
Review, make current, load, and keep it in sync
A draft does nothing until you approve it. Foundry does not replace your current ontology version with a new draft; you review it first.
Open the draft and check it against your hand-written model. Are Customer, Contact, Deal, Call, Subscription and Invoice there? Does the Stripe customer id join to the Attio record? Does each rule name the source that wins? Do call facts carry their quote? Edit anything that is off. Values the documents disagree on wait for your review instead of being written silently, which is the behavior you want when two call notes give different renewal dates.
When it looks right, choose Make current, then Load data. The load writes the graph into HelixDB and keeps where every value came from, so each fact stays traceable to a row or a document quote. Earlier versions stay available, so you can compare what changed.
Sources do not stand still. Connectors sync on a schedule or on demand, and Foundry refreshes the current load when source data changes, reading only what changed. When your definitions change, for example you add a Renewal type, generate a new version and review it the same way. The longer story on schema changes is in How to Update an Ontology When Your Data Changes, and on link drift in Self-Healing Ontology.
Ask a cross-source question: churn risk on a call plus an overdue invoice
With the ontology loaded, ask the question that used to take an afternoon of exports: which customers mentioned churn risk on a call and have an overdue invoice?
You put that to the Analyst in plain language. The answer is a list of customers, and each row has to be backed. The churn signal points to a Call and the quote from the Granola notes. The overdue status points to an Invoice and its Stripe record. The identity of the customer points to the Attio record the other two were joined to. If any link in that chain has no source, the claim should not appear.
This is the difference between an ontology and a pile of summaries. A RevOps lead can take that list to a renewal meeting. A finance lead can see that the overdue invoice is real, not a model's guess. An AI agent working off the same graph answers from the same sources instead of inventing a number to sound helpful.
Trade-offs and when you do not need one
You do not need a customer ontology if your customer data lives in one system, or if a single join in a warehouse already answers your questions. A CRM with a clean billing integration may be enough.
You probably do need one when three things are true: the same customer appears under different names in two or more tools, you want agents or reports to answer questions that cross those tools, and someone will act on the answer, so it has to be checkable.
Honest costs: a first version takes real review time, because a person has to approve the draft, and the quality of the result depends on the quality of your join keys. If Stripe customers never carry a CRM id and domains are inconsistent, expect more items waiting for human review at first. That is the system working, not failing. Foundry is also open source under Apache 2.0, so you can run it yourself, but the local install is for one person on their own computer.
Start with one page, then let Foundry draft the rest
Write the six types and their links on one page, decide the join keys and which source wins each field, and require a quote for every call fact. Then clone helix-foundry, run docker compose up -d --wait, connect Attio, Granola and Stripe, and review the first draft against your page. The first cross-source question you can answer with a source behind every value is the proof that it works.