← All posts
18 November 2026Claire Tan

How to build an AI agent for your business: the steps we follow

How to build an AI agent that holds up in real work: choosing the job, defining correct, tools, approvals and testing, with Singapore IMDA and PDPC notes.

Top-down view of a small robot arm assembling a chain of connected blocks on a workbench, one block highlighted in yellow as a checkpoint

To build an AI agent for a business, pick one narrow job and write down what a correct result looks like before you write any code. Then decide whether the job needs an agent at all or just a fixed workflow, and give a language model a small set of well-described tools with the least access that works. Test it against real past cases, put a person in front of anything that is hard to undo, and widen its permissions only as the evidence comes in. The model is the easy part. Most of the work is in the job definition, the tools and the checks.

This is the order we follow when we build agents for clients, and the order we would suggest even if you build one yourself.

Step 1: Pick one job, not "AI for the business"

The commonest failure starts with a brief like "use AI to run operations". An agent needs a job with a clear trigger, a clear finish and someone who currently does it. Good first jobs share a few traits:

  • They happen often. That gives you lots of past examples to test against.
  • The inputs are already digital. Emails, PDFs, spreadsheet rows, tickets.
  • A mistake can be caught before it reaches a customer. Drafting, sorting, matching and chasing all qualify. Paying, deleting and promising do not.
  • One person can say whether the output is right. If two managers would disagree about the correct answer, settle that first.

Here is a made-up example to keep in mind for the rest of this post. A trading company receives supplier invoices by email. Someone in finance opens each one, matches it to a purchase order in the accounting system, flags any mismatch and files it. That job has a trigger (an invoice arrives), a finish (matched and filed, or flagged), and a person who knows what "right" looks like. It is a good candidate.

We wrote more about choosing the first job in the four things an agent should own before anything else.

Step 2: Define "correct" before you build

Before touching a model, collect real past cases and write down what the right outcome was for each one. For the invoice example, that means pulling a few weeks of real invoices along with what finance actually did: matched to which PO, which ones were flagged, and why.

This set of cases becomes your eval set, the test you will rerun every time you change a prompt, a tool or a model. Without it you only have impressions, and impressions of AI output are unreliable because the fluent answers look right. Make sure the set includes the awkward cases: credit notes, partial deliveries, invoices in a different currency, scanned PDFs at an angle. Those cases are what break an agent in production.

If nobody has ever written the process down, that is normal. Our method for drawing it out of people's heads is in how we write an eval set for a workflow nobody documented.

Step 3: Decide whether you need an agent or a workflow

Not every AI system should be an agent. Anthropic's engineering guide, Building effective agents, draws a useful line. Workflows run language models and tools through predefined code paths. Agents let the model direct its own process and decide which tools to use. Their advice is to find the simplest solution that works and add complexity only when it clearly improves results.

In practice:

  • If the steps are always the same (read invoice, extract fields, look up PO, compare), build a workflow and use the model only for the steps that need judgement, like reading a messy PDF.
  • If the steps change from case to case (some invoices need a call to the supplier portal, some need checking against a contract, some need a colleague's input), you may need an agent that plans its next move.

Many "agents" that work well in production are mostly workflows with one or two agentic steps. That is a strength, not a compromise: fixed steps are easier to test, cheaper to run and easier to explain to an auditor.

Step 4: Build the tools with the least access that works

An agent acts through tools: functions it can call, such as "search purchase orders", "read attachment" or "create draft email". The quality of these tools matters as much as the prompt. Anthropic's guide calls this the agent-computer interface and recommends documenting and testing tools as carefully as you would a prompt.

What that looks like when building:

  • Give each tool one clear purpose and a plain description of when to use it and what it returns.
  • Make mistakes hard to make. Require exact IDs rather than free-text names, and return clear errors the model can act on.
  • Separate reading from writing. A tool that looks up a PO should not be able to change it.
  • Start read-only. In the first version, the invoice agent can read invoices and POs and write a suggested match to a review queue. It cannot post anything to the ledger.

This is also where Singapore's guidance points. IMDA's Model AI Governance Framework for Agentic AI, launched at the World Economic Forum on 22 January 2026, starts with assessing and bounding risks upfront: choosing suitable use cases and limiting an agent's autonomy and the tools and data it can reach. Its technical controls include baseline testing and restricting agents to whitelisted services.

Step 5: Write the instructions and assemble the loop

Now you write the system instructions: what the job is, what a good result looks like (taken from your eval set), what to do when unsure, and when to stop and hand over. Keep them short and specific. Every time you're tempted to add another "never do X" line, ask whether a tool change or a check in code would prevent X more reliably.

The basic loop is simple: the model reads the task, decides on a tool call, gets the result, and repeats until it reaches a finish condition or a limit. Add the limits now, not later:

  • a maximum number of steps per task
  • a spending cap per task and per day
  • a timeout
  • a clear "I can't do this, routing to a person" exit

Run the eval set. Read the failures one by one. Most fixes will come from better tool descriptions, clearer data and tighter finish conditions rather than a bigger model.

Step 6: Put people where mistakes are expensive

IMDA's framework says organisations should define checkpoints where a human must approve before an agent goes on, and it stresses that humans remain ultimately accountable. For a business, that means deciding action by action:

  • Agent does it alone: reading, sorting, extracting, drafting into a queue.
  • Agent proposes, person approves: anything that leaves the company, moves money, or changes a record of truth.
  • Agent never does it: anything you could not explain or reverse.

The approval step needs to be fast, or people will either skip it or stop using the agent. Show the reviewer the agent's suggestion, the evidence behind it and a one-click approve or edit. We go deeper on this in the approval queue is the interface.

Step 7: Run it in shadow, then widen

Before the agent touches live work, run it alongside the person who does the job today. The agent makes its suggestions, the person works as usual, and you compare the two. This catches the cases your eval set missed, and it builds trust with the team who will live with the system.

Once it is live, log every run: inputs, tool calls, outputs, approvals and overrides. Watch what reviewers change, because their edits show you where the agent is weak. Add new failure cases to the eval set as they appear. Give the agent more autonomy one action at a time, and only when the logs support it.

What to check if you are building in Singapore

  • Personal data. If the agent reads customer or staff information, the PDPA still applies. PDPC published Advisory Guidelines on Use of Personal Data in Generative AI on 20 July 2026, on how personal data can be used in generative AI models and systems. Read them before you send personal data to a model provider.
  • Where the data goes. Know which model provider processes your data, under what terms, and in which region. Put that in writing for your data protection officer.
  • Governance. The IMDA agentic framework is guidance for organisations deploying agents, whether built in-house or bought from a third party, and its four areas (bounding risk upfront, human accountability, technical controls, and end-user responsibility) make a sound checklist for any build. IMDA has also said it is developing guidelines for testing agentic AI applications.

Build it yourself or have it built?

A capable developer can get a working prototype running in days with a model API and a few tools. The prototype is rarely the hard part. The hard part is the eval set, the edge cases in your real data, the permissions, and the monitoring that let you leave it running unattended. If you have someone in-house who can own those over time, build it yourself. If not, the steps above are still the right questions to ask any vendor: what is the job, how will you measure correct, what can it access, where are the approvals, and what happens when it fails?

Frequently asked questions

Do I need an agent framework to build an AI agent?

No. Anthropic's guide on building effective agents suggests starting by calling model APIs directly, because frameworks can hide prompts and responses and make debugging harder. Use a framework later if it clearly saves work.

What is the difference between an AI agent and an AI workflow?

A workflow runs a model and tools through fixed, predefined steps; an agent lets the model decide its own next steps and which tools to use. Many reliable business systems are mostly workflows with one or two agentic steps.

Are there Singapore rules for building AI agents?

IMDA's Model AI Governance Framework for Agentic AI, launched in January 2026, gives guidance on bounding risks, human checkpoints and technical controls. If the agent handles personal data, the PDPA applies, and PDPC has published advisory guidelines on personal data in generative AI.

Got a workflow worth automating?

Tell us about it in a 30-minute call. If there's a fit, you'll get a scoped agent plan within 48 hours.

Book a call →