Every enterprise AI project reaches the same meeting: should we build this ourselves or buy it? The question looks like one decision but contains five. It depends on how much the capability differentiates the business, how sensitive the data is, how fast the technology underneath changes, how much engineering capacity the company really has, and how hard it would be to leave. This article gives a way to score those five, to cost the options over three years, and to test whether the answer survives disagreement about the weights.
1. Decide per layer, not per project
Build versus buy is rarely all or nothing. An AI capability is a stack: a model, an orchestration layer that calls the model with tools and prompts, a data layer that retrieves your documents, an interface where people work, and an evaluation and monitoring layer that tells you whether it still works. Companies commonly buy the model access and the interface, and build the data layer and the evaluation set, because those two encode knowledge that exists nowhere else. The third option is therefore a hybrid: buy a platform, build the thin layer on top that carries your rules, your data connections and your tests.
Frame the decision for one use case at a time. A meeting summariser and a pricing-recommendation engine live in the same company and belong in different quadrants. The first is a commodity capability, where every competitor can get the same product and none gains from a custom version. The second encodes how you price, and building it keeps that knowledge inside the company.
2. The five axes and how to rate them
Score each option from 1 (poor fit) to 5 (strong fit) on each axis. The score describes the option, not the criterion: "build scores 5 on differentiation" means building suits a differentiating capability.
- Differentiation. Would a competitor gain the same advantage by buying the same product? If yes, building spends scarce engineering time on something that does not set you apart. If the capability is how you win, buying hands your edge to everyone with the same contract.
- Data sensitivity. Which data classes must the system touch, and under what contractual and regulatory conditions can they leave your environment? Rules differ by country and sector and they change, so check the current text with counsel. The practical question is whether a vendor's terms on retention, training use and location satisfy that review.
- Change rate. How quickly does the underlying technology move? Model capability and prices have shifted repeatedly, so a custom system tied to one model generation can age within a year. A fast change rate favours buying, because the vendor absorbs the churn, or a hybrid with a replaceable model layer.
- Team capacity. Count people, not ambitions. Building and running an AI system needs engineering, evaluation, security review, on-call and someone who reads failure logs every week. If those are not already staffed, the build option is scored on the team you have.
- Switching cost. How expensive is it to leave each option later? Building has its own switching cost: the people who wrote it leave, and the system becomes a legacy asset. Buying has contractual and data-format costs. Rate the cost of reversing the decision, not the cost of making it; a high score means leaving is cheap.
3. Three-year cost and the exit plan
Compare options over three years because the cost shapes differ. Building is front-loaded: a large first-year cost, then a steady run cost for hosting, maintenance, evaluation and the people on call. Buying is spread: a licence each year, an integration cost at the start, a smaller internal run cost for administration and prompt upkeep, and an exit cost that should be estimated even though nobody wants to.
Illustrative numbers — replace with your own, in thousands of a currency unit. Build: 300 up front and 120 per year to run for three years, so 300 + 3 × 120 = 660. Buy: 60 integration, 90 estimated exit cost, and 3 × (40 internal run + 180 licence) = 660, so 60 + 90 + 660 = 810. On these inputs building is cheaper by 150. Now apply a 50% overrun to the build cost: 300 × 1.5 = 450, and 450 + 360 = 810. The two options tie at a 50% overrun. That break-even tells you how wrong the build estimate can be before the answer reverses, and you can ask whether your team's track record on estimates sits above or below it.
Lock-in has three forms. Data lock-in means your documents, embeddings, logs and feedback are held in a format you cannot export. Workflow lock-in means your processes are built from the vendor's proprietary components, so leaving means rebuilding them. Commercial lock-in means price terms and minimum commitments that make leaving costly even when it is technically easy. For each, write the exit plan before signing: what you can export, in what format, how quickly, and who tests the export once a year.
| Option | Where it fits | Cost shape over 3 years | Main risk | Exit plan |
|---|---|---|---|---|
| Build | Differentiating capability, sensitive data, a team that already runs production systems | High first year, steady run cost, overrun risk | Underestimated run cost; key people leave | Documentation, tests and a named second maintainer |
| Buy | Commodity capability, fast-changing area, small engineering team | Even licence cost, small integration cost, exit cost at the end | Data and workflow lock-in; terms change at renewal | Export of data, prompts and configuration; tested yearly |
| Hybrid | Mixed: a commodity platform with company-specific data and rules | Licence plus a modest build and maintenance cost | Boundary creep; the custom layer grows into a second platform | Keep the custom layer behind an interface so the platform can be swapped |
Consider an enterprise indexing 50,000 confidential engineering documents into an internal semantic search and synthesis tool across 1,000 employees:
- Option 1 (Custom Internal Build): Requires 2 software engineers and 1 ML engineer for 4 months ($180,000 fully loaded) plus open-source vector infrastructure and embedding pipeline setup ($25,000), totalling $205,000 upfront. Annual ongoing maintenance requires vector database hosting ($48,000/year) and 0.5 FTE maintenance/on-call staffing ($60,000/year), totalling $108,000/year. Three-year TCO: $205,000 + (3 × $108,000) = $529,000.
- Option 2 (Commercial AI Knowledge SaaS): Upfront enterprise SSO and connector integration costs $30,000. Annual SaaS seat licences cost $120,000/year ($10/seat/month across 1,000 seats). Internal admin and prompt curation (0.2 FTE) costs $25,000/year. Contractual exit data export and transition escrow is budgeted at $40,000. Three-year TCO: $30,000 + $40,000 + 3 × ($120,000 + $25,000) = $505,000.
While the commercial option appears $24,000 cheaper over three years ($505,000 vs. $529,000), a 25% overrun on the upfront build cost ($205,000 × 1.25 = $256,250) raises the build TCO to $580,250 ($256,250 + 3 × $108,000), widening the buy advantage to $75,250. Conversely, if the SaaS vendor raises seat licences by 15% at the Year 2 renewal ($138,000/year for years 2 and 3), commercial TCO rises by 2 × $18,000 to $541,000, which is $12,000 above the on-schedule build. Price caps in the contract and a buffer in the build estimate belong in the same comparison.
4. A weighted score, and testing the weights
A weighted score makes the reasoning visible and forces disagreement into the open. Its main weakness is false precision: a result of 3.70 against 3.65 does not mean the first option is better. The remedy is sensitivity analysis. Change each weight by half and by one and a half, renormalise, and see whether the winner changes. If the winner changes only when one weight moves a long way, the decision is stable. If it flips easily, the real task is to settle the weight in dispute, which is usually a business question that the data does not answer.
Illustrative numbers — replace with your own. The weights and scores below are placeholders.
WEIGHTS = {"differentiation": 0.30, "data_sensitivity": 0.25, "change_rate": 0.15,
"team_capacity": 0.20, "switching_cost": 0.10}
# fit of each option to the criterion, 1 (poor) to 5 (strong)
SCORES = {
"build": {"differentiation": 5, "data_sensitivity": 5, "change_rate": 2, "team_capacity": 1, "switching_cost": 4},
"buy": {"differentiation": 1, "data_sensitivity": 2, "change_rate": 5, "team_capacity": 5, "switching_cost": 2},
"hybrid": {"differentiation": 4, "data_sensitivity": 4, "change_rate": 4, "team_capacity": 3, "switching_cost": 3},
}
def total(weights):
s = sum(weights.values())
return {o: sum(weights[c] / s * v for c, v in sc.items()) for o, sc in SCORES.items()}
base = total(WEIGHTS)
winner = max(base, key=base.get)
print("base", {o: round(v, 2) for o, v in base.items()}, "->", winner)
for crit in WEIGHTS:
for factor in (0.5, 1.5):
w = dict(WEIGHTS); w[crit] *= factor
t = total(w); top = max(t, key=t.get)
flag = " <-- flips" if top != winner else ""
print(f"{crit:17s} x{factor}: {top}{flag}")
def tco(build, run_per_year, license_per_year, integration, exit_cost, years=3):
return build + integration + exit_cost + years * (run_per_year + license_per_year)
print("build", tco(300, 120, 0, 0, 0)) # 660
print("buy ", tco(0, 40, 180, 60, 90)) # 810
print("build, 50% overrun", tco(300 * 1.5, 120, 0, 0, 0)) # 810
With these placeholders the hybrid scores 3.70, build 3.65 and buy 2.75. The margin between the first two is 0.05, which is noise. The sensitivity loop shows the answer flipping to build whenever differentiation, data sensitivity or switching cost weighs more, and flipping to build when change rate or team capacity weighs less. The result depends on how much the company values control over speed and capacity, and that is the decision to settle. Settle it explicitly, in a meeting, then rerun the script.
Three example gate rules. The thresholds are starting points for a committee to set, not standards:
- Core differentiation gate: If build scores 4 or 5 on both differentiation and data sensitivity, build or hybrid is the default, and buying needs a written reason.
- Commodity gate: If build scores 2 or lower on differentiation, do not build unless the committee records an exception, so scarce engineering time goes to capabilities that set the company apart.
- Team capacity floor: If the team cannot commit at least 0.5 dedicated FTE a year (the figure used in the second example) to evaluation and on-call maintenance, set the build option aside until it can.
Two objections come up often in architecture reviews:
- "Isn't building in-house always safer for enterprise data privacy?" Not automatically. A build means your team must implement data masking, access control, encryption in transit and at rest, and audit logging. A vendor with independent security audits, contractual limits on retention and training use, and a private deployment option may meet the requirement with less operational work. Verify with your security review and counsel.
- "Doesn't buying SaaS make our core workflows hostage to third-party price increases?" A hybrid design reduces that risk. Placing commercial model APIs and SaaS platforms behind an internal interface, and keeping ownership of your evaluation datasets, prompts and source documents, shortens a migration if renewal pricing changes. Embeddings must be regenerated if the embedding model changes. Test a migration once to learn how long yours would take.
5. Failure modes and a checklist
- Building out of pride. A team wants to build because building is interesting. The test is differentiation: if a competitor could buy the same thing tomorrow, the build needs another justification.
- Buying, then building around it. The purchased product almost fits, so teams bolt on custom code until the company runs a second platform with the vendor's licence cost on top. Fix the boundary in writing before the contract.
- Costing the build and not the run. The first-year cost is visible. Evaluation sets, monitoring, security patches and the person who is on call at night arrive later and persist.
- An exit plan nobody tested. An export that has never been restored may not work. Schedule a yearly restore into a test environment.
- Ignoring the change rate. A decision made for today's model capabilities should say what happens when they change. A replaceable model layer is cheap insurance.
A checklist for the next decision meeting:
- Split the use case into layers and decide each layer separately.
- Rate each option 1 to 5 on the five axes, with one sentence of evidence per score.
- Cost both options over three years, including an exit cost and a build overrun, and compute the break-even overrun.
- Run the weight sensitivity and identify which weight carries the decision.
- Write the exit plan, including who restores the export each year, and attach it to the decision record.
- Set a review date, because the change rate axis guarantees the inputs will move.