Skip to content
Ilayer

Comparison

Build vs buy AI agents, and the fourth option nobody sells you

Four routes to an AI agent, what each one costs you in speed, control and lock-in, and the five-step rule that picks between them.

Published Updated 8 min read

A machinist's bench under a violet work lamp: on the left a device partly assembled with its gear train exposed and tools beside it, on the right the same device finished in a sealed dark housing.

The short answer

Four routes, and one line decides between them.

  • Buy off the shelf when your workflow looks like everyone else's and a vendor has already solved it.
  • Build in-house when AI is part of what you sell and you can keep an engineering team pointed at it for years.
  • Hire an engineering firm when the workflow is specific to you, it matters commercially, and you need it running this quarter.
  • Build nothing when you cannot say which document a correct answer would come from.

Most teams argue price first. Price is the least useful axis. The three paid options fail in different ways, and the cheapest on paper often costs the most later.

One large study measured build against buy directly. MIT's Project NANDA published The GenAI Divide: State of AI in Business 2025 in July 2025. In its sample, external partnerships using customized tools reached deployment about 67 percent of the time, against about 33 percent for tools built entirely in-house. The authors publish their own limits, which is why the figure is worth quoting rather than trusting: 52 organizations, self-reported outcomes, and a note that "the correlation between external partnerships and success does not necessarily prove causation". Firms that hire well may just be firms that do everything well.

A translucent violet glass tower cabinet at a three-quarter angle, packed with stacked slot modules each glowing from inside, one lit cable leaving each side of its base and running off the frame.
The infrastructure the decision actually rests on, whichever way it goes. Every figure here is rendered to shape, not to scale.

The four options side by side

Build in-houseBuy off the shelfHire a firmBuild nothing
Time to first working versionMonths; hiring is most of itDays to weeks, if you fit the templateWeeks for a scoped piece; put it in the contractImmediate
Cost shapeSalaries. Recurring, owed whether or not it shipsPer seat or per call. Recurring, rises with useOne-off build, then a rate to operate itZero, minus what the manual work costs now
Who owns the codeYou do, completelyNone changes hands. Config and an export, at bestWhatever the contract says. Ask firstNot applicable
When it breaks at 2amYour on-call rota, if you built oneA ticket and the vendor's response timeWhoever the contract names; build-only leaves you holding itNothing breaks
A workflow nobody else hasBest fit, if the team staysPoor. You bend the workflow to the toolGood fit. The only real reason to payIt runs as it runs today
Lock-in riskKey-person risk instead. Two leave, it rotsHighest. Data, prompts, history sit in their systemLow if the code is in your repos, high if on their platformNone
What has to be trueAI is core to what you sell, and you keep the teamYour workflow resembles other people's, and good enough really isThe workflow is specific, it matters, you want it live this quarterNobody can name the document a right answer comes from

The row that decides it is usually the last one.

Build it with your own team

Hire two or three engineers, or redeploy them, and own the thing. The cost people model is salary. The cost that bites is attention.

An agent answering questions over your data is one part model work and four parts the things nobody demos: retrieval that finds the right document, an eval suite that catches a regression, monitoring, a citation trail, and an abstain path for questions the data cannot answer. A strong general backend team builds the impressive version in three weeks, then stalls for six months on the part that makes it safe to show a customer.

A closed rounded-rectangle loop of violet light lying at a shallow angle, a brighter pulse on its near edge, and two small clear glass blocks threaded onto the path like stations.
A closed loop with checkpoints on it: what you are buying or building is the loop, not the model.

Almost right is the expensive failure mode, and every option has to answer for it. In Stack Overflow's 2025 developer survey, 66 percent of the 25,332 developers who answered named "AI solutions that are almost right, but not quite" as their biggest frustration with AI tools, and 45 percent said debugging AI-generated code takes longer than expected. They were describing coding assistants, not agents in a business process, but the shape carries: what an AI system costs you is the nearly-right answers nobody catches, which is the subject of stopping AI from making things up.

Build in-house when AI is part of what you sell and people on staff have already shipped and operated a retrieval or agent system. Not when this is your first and you are hiring for it. Your own production workflow is the most expensive classroom there is.

Buy an off-the-shelf platform

This option gets written off too quickly, usually by people who benefit from writing it off. Most of what a mid-size firm wants from an AI agent is not unusual: support triage, meeting notes, search over a tidy document set, a sales assistant on a CRM. A vendor with five hundred customers doing that has already hit edge cases you have not thought of, on someone else's budget.

The ten-minute test: name three things your version must do that the product page does not mention. Cannot reach three, buy the product. Reach three, and two usually turn out not to matter.

It breaks when the workflow that sent you looking is the one nobody else has. You bend the process to fit the tool, and the people doing the work feel it. The MIT report tracked the drop: 60 percent of organizations evaluated large-scale AI systems, 20 percent reached a pilot, 5 percent reached production. One interview describes a firm that spent 50,000 dollars on a contract analysis tool; the lawyer it was bought for went back to a general chatbot because "our purchased AI tool provided rigid summaries with limited customization options".

A violet glass beam balance seen head on, its arm engraved with a fine ruler scale and a bright needle at the centre pivot. One pan is empty; the other holds a single calibration weight, and the beam is level.
The number that decides it is the one you have to measure yourself.

Price the lock-in before you sign. The same report interviewed seventeen procurement and sourcing leaders and put the window at about eighteen months before switching costs get hard to unwind. One CIO put it plainly: "Once we've invested time in training a system to understand our workflows, the switching costs become prohibitive." Ask in writing what you get on the way out: documents, but also prompts, feedback history, and the labelled examples your team spent a year on.

Hire an engineering firm

An outside team builds it alongside your people, in your stack, then keeps it running: the shape of an in-house team without the hiring cycle, plus someone who has already done the unglamorous parts elsewhere. That is the case for it. The case against matters more.

When an engineering firm is the wrong answer

Your workflow is standard. Do not pay build prices for what a product already does. A firm taking that brief sells a slower, dearer version of a tool you could have running on Thursday.

You already have the people. If your engineers have shipped and operated a retrieval system, an outside team buys you a longer feedback loop and a second set of opinions. Give them the quarter.

Nobody on your side can be freed up. Embedded work only works if one person who owns the workflow answers questions the same week they are asked. Otherwise the outside team guesses, at full rate.

The contract stops at handover. A build-only deal drops a system your team cannot debug into production and leaves. If nobody who wrote it is on the hook for the 2am page, you bought a demo with a longer lead time.

A sealed hexagonal vessel of dark violet glass with machined caps top and bottom, a bright crystalline core blazing at its center, light tracing the seams between its panels.
Where it runs, and who can reach it, is part of the decision.

You need a guarantee. If the process must be right every time, no engineering firm can sell you that, and any that implies otherwise is lying. Grounding and citations make mistakes visible and traceable instead of silent. They do not make mistakes impossible.

The budget covers the build but not the year after. Left alone, an AI system decays: the document set drifts, a model version is retired, the eval suite rots, and March's accuracy is not November's. If you can only fund the build, fund something else, and read what an AI agent costs to build and run first.

Build nothing

The right answer more often than the other three, and the one nobody is paid to recommend. Six signals, any one enough to stop.

  1. No ground truth. Nobody can point at the document, row or table where the correct answer lives. If a careful person with a week and full access could not produce it, an agent has nothing to retrieve and will fill the gap with something plausible.
  2. No owner. No named person whose week gets better or worse depending on whether this ships. Projects without an owner do not fail loudly; they get deprioritised at week nine.
  3. The workflow needs a guarantee. Payroll, a regulatory filing, anything where "usually right" is a legal problem rather than an inconvenience. An AI system can cite its source and abstain. It cannot be made certain.
  4. A rule already solves it. If the logic can be written as if-then conditions, write it that way: cheaper, faster, testable, and it will not drift when a model version changes.
  5. A report already solves it. A surprising share of "we need an AI assistant" requests are one person asking a question a saved query would answer every morning, for free.
  6. Nobody can define good. If the team cannot write down five real questions and their correct answers before work starts, there is no eval, and no way to tell whether a change made things better or quietly worse.

Build nothing is rarely permanent. Usually it means not yet: fix the data, name the owner, or narrow the workflow until a right answer exists somewhere a machine can reach.

Five glass rings in a row, receding and shrinking to the right, one violet beam passing through every center, flaring brighter at each ring and ending in a small point of light.
Bought or built, the checks are yours to specify.

The decision rule

Run it in order. Stop at the first line that answers.

  1. Write down five real questions, their correct answers, and the document each comes from. Cannot do it? Option four. Go fix the data.
  2. Could a written rule or a saved report answer all five? Option four.
  3. Search for a product that already does it. If you cannot name three things your version must do that it does not, option two.
  4. Do your engineers have shipped-and-operated retrieval or agent experience, and can you keep them on it after launch? Option one.
  5. Otherwise option three, and the job changes from picking a shape to picking a team: the twelve questions to ask an AI development company separate a real engineering team from a reseller.

Where we sit, said plainly

Ilayer sells option three. We embed with your team, build inside your stack, and stay on the hook for what runs. A scoped first piece takes four to six weeks at a price agreed before we start, and the code lives in your repositories under your license so your team can run it without us.

We turn work away on the criteria above. If your workflow is standard, a product will serve you better. If nobody can name the document a right answer comes from, we will say so before you spend anything. For a second opinion on which of the four fits, tell us the workflow that hurts.

Three open wireframe cubes nested one inside the next at slight angles, with a small bright violet core burning inside the innermost one and its light escaping between the rods.
Boundaries inside boundaries. What you are really choosing is who owns which layer.

Questions people ask

Should we build AI in-house or hire someone?

Build in-house when AI is part of what the company sells and there are already engineers on staff who have shipped and operated a retrieval or agent system, not just used one. Hire an outside team when the workflow is specific to the firm, it matters commercially, and it needs to run in weeks rather than after a hiring cycle. The deciding question is not price. It is whether the people who build the thing will still be pointed at it a year later.

Is an off-the-shelf AI platform good enough for us?

An off-the-shelf platform is good enough more often than buyers expect, because most workflows are less unusual than the people inside them believe. A quick test: name three things your version has to do that the product page does not mention. If you cannot reach three, buy the product and stop shopping. If you can, expect to bend either the tool or the workflow, and price that bending before you sign.

When is the right answer to build nothing at all?

Build nothing when nobody can point to the document a correct answer would come from, when no named person owns the workflow, when the process needs a guarantee no AI system can give, or when a written rule or a saved report would do the same job cheaper and be testable. The check that catches most of these is to write down five real questions, their correct answers, and the source of each answer. A team that cannot do that has no way to tell whether the system works, and building anyway is how a pilot dies quietly.

  1. 4 August 2026How to stop AI hallucinationsFour mechanisms that cut invented answers, the number to demand for each, and the eight questions that expose a vendor who has never measured one.
  2. 4 August 2026What AI agent development costs, to build and to runThe eight things that move a build quote, the seven lines on a monthly run bill, and a worked example priced from live provider pages.
  3. 4 August 2026Twelve questions to ask before you hire an AI development companyTwelve questions a team that has shipped and operated AI can answer with a number, a mechanism or a name, and the weak answers to listen for.

Start a project

Apply this to your own stack

If a guide left you with a question about your own setup, ask it. No pitch if the answer is no.