Back to case studiesCase study · Forward-deployed engineering

From Palantir License to Production AI Workflows

Beghou had already bought Palantir. What it didn't have was a working system: its data was spread across silos, and the platform couldn't understand any of it on its own. Our team was brought in to model the business as an ontology, build and test the workflows on top, install them in production, and leave Beghou's own engineers able to run and extend them.

Client
Beghou (life sciences commercial consulting)
Platform
Palantir Foundry + AIP (client-licensed)
Our scope
Implement, test, and install workflows
Goal
A traditional company's move to AI-driven operations
00 · Overview

Palantir sells the toolbox, not the answer

Foundry and AIP are powerful, but they start empty. Someone has to understand the business, clean and reconnect decades of data, and turn it into objects the platform can reason over. That work happens in four layers, and it is the FDE's job.

Siloed source systems: CRM, third-party data feeds, rosters, spreadsheets
1 · Discovery
Sit with the business before touching the platform
Workflow shadowingSource-system inventoryData-quality profilingDefinition glossary
2 · Data & ontology
Turn messy tables into objects the business recognizes
Read the guide
Foundry pipelinesEntity resolutionObject & link typesLineage
3 · Workflows & AIP
Decisions as actions, with a human approving
Read the guide
Workshop appsAction types + validationAIP LogicApproval steps
4 · Testing, release & handover
Proven before it ships, owned after we leave
Read the guide
Data expectations + health checksGolden cases for AIPBranch-based releasesRunbooks + enablement
One ontology the business agrees on
Tested workflows in production
Client engineers own the system
01 · Context

They bought the platform. The hard part was still ahead.

Palantir isn't installed like Office. It's a software-plus-engineering model: the platform only becomes valuable once someone shapes it around the client's data and decisions. Without that, it's an expensive toolkit nobody knows how to use.

Messier data than anyone expected
No enterprise's data is clean. Years of systems, vendor feeds, and spreadsheets describe the same customer, product, or region in different ways, and sometimes no one inside the company can explain a column.
The platform can't guess
Foundry and AIP don't know which of three IDs is the real customer, or what “active” means to the sales team. That knowledge lives with the people doing the work.
Translator and plumber
Our job was to learn the business logic from the people on the front line, then rebuild their data into an ontology the platform and its AI can actually use.
Not just delivery: ownership
The client needed its own engineers to understand and extend the system, so its data and roadmap never depend on any one vendor's team.
02 · Walkthrough

One question, two setups

A typical commercial-operations question (illustrative):

“Which high-priority physicians in the Northeast haven't been visited in the last 60 days, and who owns them?”
Platform installed, data loaded as-is
Tables, but no shared meaning
  1. 01CRM, data feed, and roster each use a different physician ID
  2. 02The same doctor appears three times; visits are counted against one copy
  3. 03“Northeast” means a sales region in one table and a state list in another
  4. 04AIP answers confidently, from duplicated and mismatched rows
  5. 05Nobody can explain the number, so nobody uses it
Ontology + workflow
One object per real thing
  1. 01Entity resolution merges the three IDs into one Physician object
  2. 02Physician —assignedTo→ Territory —ownedBy→ Rep, with agreed definitions
  3. 03Query the ontology: priority tier, last visit, owner
  4. 04AIP drafts a call plan per rep; the rep's manager approves it
  5. 05Approved plans write back to the CRM through an Action

The AI didn't get smarter between the two columns. The data underneath it became something it could understand.

03 · Layer 1 — Discovery

Start with the people, not the platform

Before building anything, we spent time with the business teams to learn how decisions are actually made and where the data behind them comes from.

  1. 01Shadow the workflow: who makes which decision, with which report, how often, and what they do when the numbers look wrong.
  2. 02Inventory every source: system of record, owner, refresh cadence, and known problems.
  3. 03Profile the data: null rates, duplicate keys, conflicting codes, and IDs that don't join.
  4. 04Write down the definitions (“active account”, “priority”, “region”) and get the business to sign off before modeling.

The definition glossary saved the most time later. Most data disagreements turned out to be two teams using the same word for different things, and no pipeline can resolve that.

04 · Layer 2 — Data & ontology

From tables to objects the business recognizes

Pipelines clean and reconnect the sources; the ontology gives the result names, relationships, and allowed actions. This is what AIP reads, so its quality caps the quality of every AI answer on top.

Object types
Physician, Account, Territory, Rep, Product

One object per real-world thing, backed by a cleaned, deduplicated dataset.

Link types
Physician —assignedTo→ Territory

Relationships are modeled once, so every app and every AIP query traverses them the same way.

Entity resolution
3 source IDs → 1 Physician

Matching rules on stable identifiers first, then name and address, with ambiguous matches sent to review instead of guessed.

Lineage
object → dataset → source system

Every number in an app can be traced back to the system it came from. This is what made people trust the output.

@transform_df(
    Output("/commercial/clean/physicians"),
    crm=Input("/commercial/raw/crm_contacts"),
    feed=Input("/commercial/raw/vendor_physicians"),
    roster=Input("/commercial/raw/territory_roster"),
)
def physicians(crm, feed, roster):
    unified = union_on_schema(standardize(crm), standardize(feed), standardize(roster))
    matched = match_on(unified, keys=["npi"])                        # exact match first
    matched = fuzzy_match(matched, on=["name", "address"], min_score=0.92)
    return flag_ambiguous(matched, route_to="/commercial/review/physician_matches")
Simplified Foundry transform: resolve physician identities before they become objects.
05 · Layer 3 — Workflows & AIP

AI drafts, people decide, the system records

Dashboards show the problem; workflows fix it. Each workflow is a Workshop app on the ontology, where AIP proposes and a person approves through an Action with validation rules.

Workshop app
Built for one role and one decision, e.g. a manager reviewing next week's call plans, instead of a general-purpose dashboard.
AIP Logic
Reads ontology objects, drafts the recommendation, and explains it with the fields it used. It never writes to source systems directly.
Action types
The only way to change data. Each one validates its inputs (a rep can't be assigned outside their territory) and is logged.
Approval step
AI-drafted changes wait for a named person. Low-risk, rule-checked edits can be bulk-approved; anything else is reviewed one by one.
06 · Layer 4 — Testing, release & handover

Tested like software, handed over like a product

Our scope included testing and installation, so “it works in the demo” was never the finish line.

Data expectations
unique npi · no orphan territories

Checks on every pipeline build. A failing check stops bad data from reaching the ontology.

Health checks
freshness, row counts, schema drift

Alerts when a source feed is late or changes shape, before a business user notices.

Golden cases for AIP
known inputs → expected recommendation

Reviewed examples from the business, re-run on every change to an AIP Logic function or its prompt.

Branch-based releases
build on a branch, test, then merge

Changes are validated on a branch with real data before they touch production workflows.

Handover was planned from day one: runbooks for every pipeline, documented ontology definitions, and pairing sessions where the client's engineers built the last workflows themselves. With the plumbing automated, their job shifts from fixing ETL to building new applications on the platform, and the company keeps control of its own data and roadmap.

07 · Trade-offs

Decisions we made, and what they cost

Build fast vs. agree on definitions

Rejected: model the ontology straight from the source tables and fix meaning later.

Chosen: sign-off on core definitions first. Slower start, far fewer rebuilds.

Auto-merge vs. review matches

Rejected: let fuzzy matching merge every likely duplicate.

Chosen: merge only above a high threshold; send the rest to review. A wrong merge corrupts every downstream answer.

AI writes vs. AI proposes

Rejected: let AIP update CRM records directly.

Chosen: AIP drafts; validated Actions with human approval write back.

We run it vs. they run it

Rejected: keep the delivery team as the only people who understand the system.

Chosen: runbooks and pairing so the client's engineers own it. Less recurring work for us, which is the point.

08 · Results & lessons

What changed, and what I'd tell the next client

  1. 01Siloed sources rebuilt into a single ontology with agreed definitions and full lineage to the source systems.
  2. 02Workflows implemented, tested, and installed in production, with AI recommendations that a named person approves.
  3. 03Data checks and golden cases run on every change, so releases are verified rather than hoped for.
  4. 04Lesson: buying the platform is the start. The value comes from the ontology and the people who keep it true.

Bought a platform that isn't paying off yet?

I can help turn your data into an ontology your team trusts, build the first workflows, and hand them over so your engineers own them.

Talk through your use case