How to Build a Sales Ontology for AI Agents
A sales ontology is a shared model of your pipeline: the deals, accounts, people, meetings, calls and objections your team talks about, and how they link across the tools where they live. It is worth building for one kind of question, the kind no single tool can answer: which stalled deals raised a pricing objection, or which lost deals never had a second meeting booked.
Your CRM knows the deal stage. Your calendar knows what was booked. Your call notes know what the buyer actually said. Ask an AI agent to combine them without a model of how they connect, and it fills the gaps with plausible reasons. "Pricing was the blocker" reads well and may be invented. This guide shows how to define the types, settle the join keys that break, keep objections tied to quotes, and build the whole thing in Helix Foundry from sources like Attio and Granola.
The payoff for a sales leader is practical: less time reconciling pipeline by hand, and fewer deals lost because a next step lived in one rep's notes. If you already read our guide on customer identity across CRM and billing, this one is the pipeline-and-conversation half.
What a sales ontology is and the questions it should answer
A sales ontology is a map of the things in your sales process, their properties and the links between them, written down once so people and agents read the pipeline the same way. In simple terms, an ontology is an agreed list of the kinds of things in a domain and how they relate. Other words for it: a domain model, a schema with meaning, or a knowledge graph's blueprint. A business ontology is the same idea applied to a company: customers, orders, approvals, and the rules between them. A model ontology, in the sense people search for it, is just the model of a domain that software reasons over.
You do not need one to ask "how many deals are in negotiation?" Your CRM does that. Build one for questions that cross tools:
Which stalled deals raised a pricing objection on a call?
Which lost deals had no second meeting booked?
Which open deals have a decision-maker we have never met?
What did the buyer say the last time budget came up, and who was on that call?
Which deals have a next step promised on a call but no meeting on the calendar?
Each of these needs a CRM record, a calendar event and a call note joined correctly. That join is the product. Plain search over call notes can find the paragraph about pricing, but it cannot tell you which of those calls belong to stalled deals. Foundry's own comparison of the two approaches makes the same point: an ontology starts from the records and follows links, where search ranks passages by closeness.
A note on the other terms buyers ask about. A semantic layer defines metrics and dimensions so everyone computes revenue the same way; an ontology defines the entities and their relationships, including things metrics never touch, like what a buyer said. Palantir's ontology is the best-known commercial version: a model of an organisation's objects, links and actions that applications and AI sit on. Helix Foundry is an open-source take on the same idea, under Apache 2.0.
The types and links: account, person, deal, meeting, call, objection
Start with six types and resist adding more until a real question needs one. Define each in a sentence a rep would agree with.
Account. A company you sell to or might. Properties: name, domain, owner. The domain matters later, because it is your most reliable join key.
Person. An individual at an account: a buyer, champion, blocker or attendee. Properties: name, email, role.
Deal. One attempt to win one account's business. Properties: stage, value, owner, created and closed dates, outcome. An account can have many deals over time.
Meeting. A scheduled event with attendees: a booking in Cal.com or an event on a Google Calendar. Properties: start time, attendees, source.
Call. A conversation that was held, with notes: a Granola note with its summary and attendees. A meeting is what was planned; a call is what happened. Keep them separate, because "booked but no-show" and "held but never booked" are both real.
Objection. A specific concern a person raised, such as price, timing, security or a competing tool. Properties: category, the exact quote, the call it came from, the person who said it.
The links carry the questions:
Person belongs to Account
Deal belongs to Account
Person is involved in Deal
Meeting is attended by Person, and relates to Deal
Call is attended by Person, and relates to Deal
Objection is raised by Person, in Call, against Deal
Write a next step as its own small fact too: what was promised, by whom, and whether a Meeting now exists for it. That one link, next step to meeting, is how you find deals lost to a forgotten follow-up.
Foundry's sample company shows the same pattern at small scale: a Conversation type built from call notes with its date, summary and risks, plus a Commitment type for what documents say was promised. Your Call and next-step types follow that shape.
Join keys that break and which source wins
The ontology is only as good as its joins, and four of them break in nearly every sales stack. Decide each in advance, because an agent will not decide it well for you.
A meeting booked under a personal email. The buyer books through Cal.com with a Gmail address, while Attio holds their work address. Matching on email fails. Fall back to the account domain plus name, and treat the match as one a person can confirm, not one the system silently trusts.
A call note titled with a first name. Granola notes are titled by whoever or whatever named them: "Sam intro", "Pricing chat". The title tells you nothing reliable. Join through attendees instead, and use the note's attendee list against the Person records, not the title against the Deal name.
A deal renamed after a merger or rebrand. The account changed its name, so the deal title no longer matches the old calendar invites. Join on account domain and attendee, never on deal name.
Two calendars, one meeting. A meeting can show as a Cal.com booking and as a Google Calendar event. Without a rule you count it twice, and your "meetings per deal" figure is inflated.
Settle a source-of-truth order per property, and write it down:
| Property | Source that wins | Why |
|---|---|---|
| Deal stage, value, owner | Attio | The CRM is where reps maintain it |
| Account domain | Attio | Most stable join key |
| Meeting time and attendees | Google Calendar, then Cal.com | The calendar reflects what was changed after booking |
| What was said | Granola | Only source for the conversation |
| Person identity | Work email in Attio | Personal addresses are aliases |
When two sources disagree and the rule cannot settle it, a person should decide, not the model. Foundry sends what a load could not settle, such as a name it could not link to one record or a value documents state differently, to a Review page, with the quote and document shown first. That is the right place for the merged-company and personal-email cases. For the same identity problem across CRM and billing, see Build a Customer Ontology From Attio, Granola and Stripe.
Objections and next steps as facts with quotes
An objection is only useful if it carries the words that justify it. Store every objection and next step as a fact with its quote, its call and its speaker, never as a free-floating label.
Compare two records. The first: Deal 42, objection: pricing. The second: Deal 42, objection: pricing, raised by the finance lead on the 14 March call, quote: "We can't take this to procurement at that per-seat number." The first invites an agent to generalise. The second can be checked. If a sales leader asks "why did we lose this deal?" and the answer cites a quote and a call, they can open the note and see it. If the answer cites nothing, they should not trust it.
Three rules keep this honest:
No quote, no objection. If a call summary hints at a concern but nobody said it, record nothing. Silence is a valid result.
Separate what was said from what was inferred. "Price was too high" is a claim a buyer made. "Price was the real reason we lost" is a conclusion. Keep the first as a fact and let the second be an answer an agent builds from several facts, with the sources shown.
Settle uncertain extractions with a person. A concern the extraction was unsure about should land in review, not in the graph.
This is how Foundry treats facts generally: each value and link a load writes keeps where it came from, a table row or a quote in a document, and when documents state a value differently, Foundry does not pick one silently. Applied to sales, that means an agent can say "two of the five stalled deals raised pricing, here are the quotes" and show you the rest were not about price, rather than telling a tidy story.
Build it in Helix Foundry from Attio and Granola
Helix Foundry connects your tools, has an ontology agent draft one ontology over them, and loads it as a connected graph you can explore and question. Foundry connects to data sources such as Attio and Granola. It only reads from them; it never writes back to your sources. There are no Salesforce or HubSpot connectors, so if your CRM is one of those, export the data to CSV or Postgres, both of which Foundry reads.
1. Start Foundry. Use the hosted version at foundry.helix-db.com, or run it on your computer with Docker 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 for one person on their own computer, with no sign-in and a listener on 127.0.0.1 only, so do not expose it.
2. Connect your sources.
Attio for accounts, people and deals.
Granola with an API key from the Granola desktop app (Business and Enterprise plans). It syncs notes with their summary and attendees.
3. Generate a draft. Give the agent the goal in plain words: link accounts, people, deals, meetings and calls, and extract objections and next steps with the quotes they came from. It drafts types, links, mappings from your tables and the questions the ontology should answer. Paste your six types and your join-key table into the goal so the draft starts from your decisions.
4. Review the version. Versions never change once drafted; you edit a new one and choose which is current. Check that Call and Meeting are separate types, that joins go through attendees and domain rather than titles, and that Objection carries a quote field.
5. Load and settle review. Make the version current and load. Work through the Review cards for personal-email matches and renamed accounts.
For the same build pattern applied to investors and founders, see How to Build a Knowledge Graph for VC Deal Flow.
Ask pipeline questions and set a weekly check
Once loaded, ask the questions that started this guide, in plain language, through Analyst, Foundry's assistant. Try:
"Which open deals stalled for more than 30 days and had a pricing objection on a call? Quote the objection."
"Which lost deals had no second meeting booked?"
"Which deals have a promised next step with no meeting on the calendar?"
Every answer cites the records, rows and quotes it used, so you can open the call note behind a claim. If Analyst cannot find support, it says so instead of guessing, which is the behaviour you want from an agent talking about pipeline.
Your own agents can ask the same questions. Claude Code, Codex or any MCP client connects to the Helix MCP and queries the loaded ontology, reading only what the signed-in person can read.
Then make it a habit. Create a workflow that runs weekly: sync the sources, load, run an Analyst check for the questions above, and email you what it found. Workflows can run on a schedule or when a sync or load ends, and nothing runs until you approve its steps. A Monday email titled "stalled deals with a pricing objection" and "promised next steps with no meeting" replaces the spreadsheet reconciliation your ops person does by hand, and catches the deal that died because nobody booked the follow-up.
Start with one cross-tool question and build backwards
Do not model your whole sales process. Pick the one question your pipeline reviews keep getting wrong, probably "why did these deals stall?", define only the types it needs, write down which source wins each join, and keep every objection tied to its quote. Then run Helix Foundry locally with Docker, connect your sources such as Attio and Granola, and ask that question. If the answer cites quotes you can open, you have a sales ontology worth extending. Start at foundry.helix-db.com or clone github.com/helixdb/helix-foundry.