Skip to content
Ilayer

Article

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

Four ways to end up with an AI agent, what each one actually costs you, and a rule for telling which one your problem needs.

IlayerPublished 8 min read

Four labelled routes drawn on warm paper, three of them reaching a small running system and the fourth stopping short at a marker.

The short answer

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 a studio when the workflow is specific to your firm, it matters commercially, and you need it running this quarter. Build nothing when you cannot say which record 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 most later.

One large study measured build against buy directly: MIT's Project NANDA published The GenAI Divide: State of AI in Business 20251 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 that 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.

The four options side by side

Build in-houseBuy off the shelfHire a studioBuild 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 record 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 records 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.

Almost right is the expensive failure mode, and every option has to answer for it. In Stack Overflow's 2025 developer survey2, 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 doing so. 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".

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 studio

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 a studio is the wrong answer

Your workflow is standard. Do not pay build prices for what a product already does. A studio 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.

You need a guarantee. If the process must be right every time, no studio 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, record, 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.

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 record 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 record 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.

Sources (2)

  1. 1The GenAI Divide: State of AI in Business 2025artificialintelligence-news.com
  2. 2Stack Overflow's 2025 developer surveysurvey.stackoverflow.co

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 record 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. How to stop AI hallucinationsThe four mechanisms that actually reduce made-up answers, the one promise no vendor can honestly make, and a checklist to take into your next sales call.
  2. What an AI agent costs to build, and what it costs to keep runningThe real cost drivers, the monthly line items, and a worked example built from provider prices we read today.
  3. Twelve questions to ask before you hire an AI development companyThe twelve questions that separate a team that has shipped and operated AI from one that will subcontract it, with what a good answer and a weak answer sound like.

Start a project

Name the workflow that eats your team's week

Name the workflow that eats your team's time. We will tell you honestly whether AI fits, and if it does, scope a first piece with a known price.