Skip to content

RESOURCES · BLOG

Building your own AI agent got cheap. Owning it didn't.

Rui Luis · Published · 7 min read

On a dark dotted background, a short off-white stroke climbs steeply to a small glowing ember-orange dot; from there a long line runs to the right edge, fading from off-white to grey, marked with small grey ticks and three ember-orange dips where it drops and recovers

Short answer: With today's coding tools, someone in your company can build an AI agent that reads supplier invoices and matches them to purchase orders in a weekend. That is the cheap part. The expensive part starts the day it goes live and runs for as long as anyone depends on it: the model behind it changes, a supplier changes their layout, the person who built it leaves, and nobody can say what it posted last Tuesday. Before you decide whether to build it, buy it or have it built, add up the second bill, not the first. And whichever route you take, the agent needs the same four things: a test on your own past cases, a named owner for every exception, a log, and a way to switch it off.

Why is "we'll build it ourselves" on the table now?

Because the first version has become cheap. Not long ago, an agent that reads an invoice, finds the purchase order and flags the difference needed a developer and weeks. Now a controller with a coding tool and a free afternoon can get it working on the ten invoices on their desk. If someone in your company has done this, that is good news: they have shown you exactly where the work gets stuck, and they know the process better than any requirements document.

The trouble is that the price that drew them in is the smaller of the two bills.

What does it cost to own an agent?

Software has two costs: making it and owning it. For an agent inside a business, the second one has a shape of its own.

  • The model changes. The company behind it updates it, retires a version or changes a price. An agent that read every invoice correctly last month can start missing some this month with nobody on your side touching anything. Someone has to notice, and the way to notice is to re-run the same test on the same past cases, on a schedule (rule 05).
  • Your suppliers change. A new invoice layout, a credit note filed as an invoice, a scanned page instead of a PDF. Each is a small fix, and each lands on whoever owns the agent, on a day they had other work.
  • The person leaves. A weekend build lives in one person's head. When they move on, the agent keeps running until it doesn't, and nobody can say why it does what it does.
  • Nobody can see what it did. If it posts, which record did it change, from which reading, at what time? Without a log, a wrong posting is found at month-end and reversed by hand (rule 08).
  • It keeps its own records. The quiet cost. A tool built on company data that keeps a spreadsheet or a database of its own is a second system of record, outside your ERP, that nobody reconciles.

None of these is a reason not to build. They are the line to add to the spreadsheet before you compare a weekend of someone's time with a licence. A fair comparison counts three years of owning it.

Build it, buy it, or have it built inside your systems?

The three routes, side by side.

Build it yourselves Buy a tool Have it built inside your systems
What you pay first Someone's time, usually unbudgeted A licence, per user or per document A fixed fee for one piece of work, quoted after a 20-minute call; the work starts by measuring it (rule 01)
What you pay to own it Every fix, every re-test and every model change, in your people's time The licence, every year, at prices you don't set Nothing you have to keep paying; staying on is your choice (rule 13)
Where the work lives Wherever the builder put it: a script, a spreadsheet, a laptop In the vendor's system; your people log into something new In the ERP, accounting system and inbox you already run (rule 09)
Who handles the cases it gets wrong Whoever built it, if they notice The vendor's defaults; exceptions arrive on the vendor's screen A named person in your company, in the channel they already use, at your thresholds (rule 07)
What you keep if you stop The code, if anyone can read it Nothing; your data comes back as an export Everything: the rules, the test set, the log and the runbook, in your systems (rule 13)
When it is the right answer Small, low-risk, inside one team, with a written end date A common job done the same way everywhere, where the vendor's process fits yours Work that passes between people, touches your books and runs on your own policies

Does it matter who builds it?

The one figure we have found on this comes from MIT NANDA's 2025 report on AI in business. Among the 52 organisations its authors interviewed, AI tools bought from outside and customised to the company reached deployment about 67% of the time; tools built in-house, about 33%. Three things to know before you lean on it: the figures are what the organisations said about themselves, the authors say their definitions of success varied, and the report does not claim that who built the tool is the cause. It also counts bought tools and tools co-developed with an outside partner together; it does not separate the two. A third group, an in-house team building with an outside vendor, which is the closest to how we work, had too little data to count. The source is on our evidence page.

What the figure can't tell you is why. Our reading: an in-house build is usually judged on the cases someone tried, not on a test it had to pass, and nobody measured the work before it started (rule 01). So there is never a moment at which it is clearly done, and never a number that says it was worth keeping.

Four questions before anyone writes code

Ruben Dominguez of The VC Corner puts four questions to any company about to build its own software. They are the right four for an agent, and each has an answer you can act on.

  1. How much breaks if it fails or is broken into? An agent that drafts a reply someone reads before sending can fail cheaply. One that posts to your ledger or pays a supplier cannot. The bigger the damage, the more it needs the full sequence: tested on at least fifty of your own past cases, then run beside your people posting nothing, then exceptions only, then live, with the dial in your hands (rule 05, rule 06).
  2. Who, by name, maintains it three years from now? Not a department: a person, with a runbook they have walked through, and the business rules and thresholds kept outside the code so they can change one without an engineer (rule 13). If no name fits, the agent is a demo.
  3. At what point would you switch to a bought tool? Write it down before the build, so a bridge stays a bridge. For an agent there is a second switch to write down, the model: it should be chosen for each step as the cheapest that passes the test, swapped only when the new one passes the full test again, and the build should survive the swap (rule 10).
  4. Who can shut it down? One screen, inside your systems, that shows what is running, pauses it, and rolls a posting back, used by your own people without calling whoever built it (rule 08, rule 13). As he puts it, internal tools rarely die on their own, and owning one includes the right to end it.

When should you build it yourselves?

More often than a vendor would like, and less often than the weekend suggests.

Build it yourselves when the damage from a failure is small, the work stays inside one team, and someone has written down when it ends: a bridge between two systems the vendors left unconnected, an experiment with a date on it. Give it an owner by name and a line in the budget for its upkeep anyway.

Buy a tool when the job is common, done the same way everywhere, and the vendor's process fits how you work.

Have it built inside your systems when the work passes between people, touches your books, and runs on policies of your own: approval thresholds, who signs what, which supplier is handled differently. That build has to carry your rules, so it has to be yours, inside the systems your people already use, with the test, the log, the named owner and the off switch built in from the start.

And before any of the three: sort every step of the work. Delete it, give it to a plain rule, give it to a model, or leave it with a person, in that order (rule 03). Most steps need a rule, not a model, and some should not exist at all. Sometimes the measurement shows the work is not worth automating, and that is a complete answer, whoever would have built it (rule 14).

The weekend was the easy part

The agent your controller built in a weekend is proof that the work is worth looking at. Whether it should stay theirs, be replaced by a tool, or be rebuilt inside your systems depends on what breaks when it fails and who, by name, owns it in three years. Decide that before the second bill arrives, not after.

We wrote down how we build as fourteen rules: The Agent Forge Way. If someone in your company has already built an agent, or is about to, book a free 20-minute call. Bring the piece of work it does; you will hear which of the three routes fits, and if it is not worth building at all, we will say so.

Frequently asked questions

Is it cheaper to build our own AI agent than to buy a tool?

For the first version, usually yes. The cost that decides it starts the day the agent goes live: re-testing it when the model behind it changes, fixing it when a supplier changes a layout, and someone owning every case it gets wrong. Count three years of that before you compare prices.

Our people have already built one. Should we stop them?

No. They have shown you where the work gets stuck, and they know the process. Give the agent an owner by name, a test it has to pass on your own past cases, a log of every change it makes, and a way to pause it. If it keeps its own records outside your accounting system or ERP, that is the first thing to fix.

What should we never build ourselves?

Anything whose failure would reach your books, your bank or your customers before anyone noticed: posting payments, changing prices, sending customer documents. Those need a test before go-live, a named person on every exception and a log, whoever builds them. And some work should not be automated at all: a step that is only slow because of one policy gets the policy fixed.

New posts go out as the LinkedIn newsletter Closing the AI Divide. Subscribe on LinkedIn →

← All posts