AI agent development: agents that act within limits you set

A demo agent is quick to build. An agent you can trust with your CRM or ERP takes tool permissions, approval steps, an evaluation set and spend limits. This page shows how each of those gets built and what to ask any vendor.

In short

AI agent development is building software in which a language model plans steps and calls your systems' tools (CRM, ERP, email) to finish a task, with set permissions and human approval for risky actions. Keyhole Software's 2026 review puts a basic single agent at $8,000 to $50,000 over 4 to 8 weeks and most mid-market multi-agent builds at $80,000 to $250,000. It cites $3,200 to $13,000 a month to run a production agent.

Basic single agent (market range)
$8,000 to $50,000, 4 to 8 weeks Source: Keyhole Software
Mid-market multi-agent build (market range)
Typically $80,000 to $250,000 Source: Keyhole Software
Monthly run cost, production agent (market range)
$3,200 to $13,000 Source: Keyhole Software
Code and IP ownership
Client owns the code and IP, assigned in the contract

What an AI agent does that other AI software does not

Agents are the riskiest part of our AI and generative AI development work, because an agent does things. The language model reads a task, decides which tool to call next, looks at the result and repeats until the task is done or it hands off to a person. A tool is a defined action in one of your systems: look up a customer in Salesforce, read an invoice from the ERP, rebook a delivery slot.

In the agents we build, the model never touches your systems directly. It returns a structured request, a tool call, with a tool name and arguments. Our code checks that request against the tool's schema and your rules, then runs it with credentials the model never sees. The model proposes, the code decides what is allowed.

A retrieval (RAG) system answers questions from your documents and does not act. A chatbot is the conversation layer, and it may sit in front of either one.

When an AI agent is the right build

Many requests for "an agent" are better served by something simpler. If you only need answers from your policies or manuals, LLM integration and RAG fits better. The table below maps common situations to the build that usually suits them.

Situation Agent? Better option
Fixed, rule-based steps with no judgment, such as copying form fields into the CRM No Workflow automation or RPA
Staff need answers from policies or product documents No RAG system
A multi-step task that needs judgment across two or more systems, such as triaging tickets and updating the CRM Yes Agent with approval on risky steps
Reconciling invoices against purchase orders, with exceptions that need reading Yes Agent that matches and flags, person resolves
High-stakes, irreversible actions where a mistake cannot be caught or undone Not alone Agent drafts, a person executes

RPA follows a script and breaks when the input changes shape. An agent can read a messy email, work out which order it refers to and pick the next step, which is exactly why it needs limits.

One agent or several

Start with one agent and a small set of clearly described tools. Split the work across several agents only when one agent's tools no longer fit cleanly in its context, or when independent subtasks can run in parallel. Each extra agent adds token cost, latency and another handoff that can fail, which is why multi-agent builds sit in a higher price band.

Four signals you are ready to build one

  • The workflow is written down. Someone can describe the steps, the systems touched and what a correct outcome looks like.
  • You have real past cases. Historical examples with known outcomes become the evaluation set. Without them nobody can prove the agent works.
  • Someone owns the outcome. One person decides what the agent may do alone and signs off on releases.
  • Your systems can be reached safely. They have an API the agent can use and a test or sandbox environment, so tools can be built without touching live data.

What an agent build includes

Every engagement starts from a written scope that both sides agree before build work begins. For an agent, that scope usually lists these deliverables:

  • Workflow and tool specification: every tool call the agent may make, its inputs, its risk level and whether it needs approval.
  • Tool layer: typed tool definitions with input validation, and scoped API credentials per tool, read-only unless writing is required. Where the agent acts for a named user, each call runs with that user's own permissions, not a shared admin account.
  • Orchestration and state: the loop that runs the model, saves state after each step so a task can wait for approval and resume after a restart, retries failed calls safely, queues work during a provider outage, and stops at a step limit.
  • Human approval steps for sensitive actions, with a reviewer screen to approve, edit or reject.
  • Evaluation set and scoring scripts you can run yourself.
  • Tracing and audit log of every model call, tool call, result and approval, with who approved it. Traces hold the same personal data the agent reads, so the scope sets who can view them, what is redacted and how long they are kept.
  • Spend and rate limits per task, per day and per month.
  • Deployment to your cloud account, with repositories in your name, handover documentation and a runbook.

Ask whether a quote includes the model provider's usage bill, and whether you will pay the provider directly or have it passed through.

How to judge an AI agent quote

Prices for agent work vary by more than an order of magnitude, so the number alone tells you little. Keyhole Software's 2026 review puts a basic single agent at $8,000 to $50,000 over 4 to 8 weeks, multi-agent workflows at $50,000 to $400,000 over 16 to 36 weeks, with most mid-market multi-agent builds between $80,000 and $250,000 (Keyhole Software, 2026). Those are published list ranges from firms that sell development services, not audited project figures. Our guide to what an AI agent costs to build and run breaks those ranges down, and our page on engagement models and how pricing works explains fixed scope against time and materials. We price agent work from the agreed written scope, as a fixed-scope project or on time and materials.

When two quotes differ, check whether each one names:

  • the number of tools and systems, and which ones write data rather than read it;
  • the evaluation set: who builds it, how many cases, and what score counts as ready;
  • the approval steps, logging, spend caps and step limit;
  • a pilot with real users, and what happens if it misses the agreed score;
  • a monthly run-cost estimate built from your task volume;
  • whether the model provider's usage bill is included, and who holds the provider account.

A low quote that leaves out evaluation and approvals is quoting a demo, not a production agent.

What drives the monthly run cost

Run cost is tokens per task (the context resent at each step, which grows as tool results pile up, plus output tokens, which are priced higher than input) times tasks per month times the model's price per token, plus hosting, logging and monitoring. Anthropic's engineers report that in their data agents typically use about four times the tokens of a chat interaction and multi-agent systems about fifteen times (Anthropic, 2025). Your multiple depends on how many steps a task takes and how much each tool returns. Caching repeated context, routing simple steps to a smaller model and keeping tool results short all bring it down.

Who should be on an AI agent build team

The roles below cover an agent build. On a small agent one person may hold two of them.

Role Responsible for
AI engineer Orchestration loop, prompts, model comparison, evaluation scoring
Backend engineer Tool layer, integrations with your CRM, ERP and APIs, deployment
QA engineer Scenario tests, prompt-injection tests, regression runs
Delivery lead Scope, approval rules, regular demos, your point of contact

Ask any vendor who owns the evaluation set. If the answer is nobody in particular, nobody can tell you whether release five beats release four.

How we build an AI agent, step by step

We build the parts that can be tested without a model first, so later failures can be traced to the model and not to the plumbing.

  1. Scope one workflow. List every tool call and its risk level, agree the success metric in writing, and collect real past cases for the evaluation set.
  2. Build the tool layer first. Each tool is tested on its own, with no model involved, against your test or sandbox systems.
  3. Add the model loop. Compare at least two models on the evaluation set, then set the step limit and timeout.
  4. Add approvals, guardrails and spend caps. Sensitive tools route to the reviewer screen; budgets stop a task before it overruns.
  5. Run in shadow mode. The agent proposes, people act as they do today, and we compare the two on live cases. Write tools run in dry-run, so nothing changes in your systems.
  6. Pilot with approval switched on. Approval is removed only for actions the pilot data shows are safe and reversible.
  7. Operate and re-test. The evaluation set is re-run on every prompt, tool or model change before it ships. Alerts track task success, escalation rate, tool errors and cost per task, live traces are sampled on a schedule, and a switch can pause the agent or a single tool without a deploy.

Shadow mode and the pilot run on live cases, so their length depends on how many cases arrive. The scope sets how many cases each phase needs before the next one starts, rather than a fixed number of weeks.

How we measure whether the agent works

We report task success rate on the evaluation set; tool-call correctness, meaning the right tool with valid arguments; steps and cost per completed task; and the escalation rate to people. Open-text outputs, such as a drafted reply, are graded by a model and checked against a person-labeled sample, because model graders can be biased or inconsistent, and their scores shift when the grading model changes. Because the same input can take a different path each run, each case is run several times and we report how consistently it passes.

Models, frameworks and protocols an agent can use

Agents can run on models from OpenAI, Anthropic or Google, or on open-weight models hosted in your own cloud. Many models are also offered through Amazon Bedrock, Microsoft Azure or Google Cloud, which can keep processing inside a chosen cloud region. Availability by region changes often, so we check it for your region during scoping. Orchestration can use a framework such as LangGraph or plain code when the workflow is simple. Model Context Protocol (MCP) is an open standard for connecting AI applications to external systems such as data sources and tools, useful when several agents need the same tools. Third-party MCP servers are code you are trusting, so each one is reviewed and version-pinned and gets the same per-tool permissions as our own tools. Model calls sit behind one interface, so the provider can be changed and re-evaluated without a rewrite. Prompts usually need tuning for a new model, and the evaluation set shows how much, which keeps vendor lock-in low.

What can go wrong with an AI agent, and the controls we build

Three risks in the OWASP Top 10 for LLM Applications 2026 bear most directly on agents: prompt injection (LLM01:2026), excessive agency (LLM03:2026) and unbounded consumption (LLM06:2026) (OWASP, 2026). OWASP notes that models make no architectural distinction between instructions and data, so prompt injection has no clean equivalent to parameterized queries (OWASP, 2026). We design on the assumption that an injection will eventually get through and limit what it could do. The table below pairs each risk with its controls.

Risk What it looks like Control
Prompt injection, including indirect An email or document the agent reads contains instructions that redirect it Retrieved content treated as untrusted data, least privilege, approval for sensitive actions, output checks, and no open outbound channel: an agent that reads untrusted content and sees private data sends email or web requests only to allowlisted recipients and domains
Excessive agency A tool can do far more than the task needs, such as delete as well as read Each tool scoped to the minimum action, read-only by default
Wrong or duplicate actions The agent files the same refund twice or picks the wrong record Idempotent tool calls, confirmation step, undo path where the system allows one
Runaway loops and bills The agent repeats a step and burns tokens Step limit, timeout, per-task and monthly spend caps
Sensitive data exposure Personal data sent to a model provider without need Redaction before model calls where possible, provider data terms checked
Untrusted third-party tools A third-party MCP server or plugin hides instructions in its tool descriptions, or changes after approval Servers reviewed and version-pinned, tool descriptions treated as untrusted input, same least-privilege scoping
Provider changes the model Behavior shifts after an update Pinned model versions where offered, evaluation re-run before switching

OWASP traces excessive agency to three causes: excessive functionality, excessive permissions and excessive autonomy (OWASP, 2026). The tool specification, written during scoping, is where all three get settled. OWASP also publishes a separate Top 10 for Agentic Applications 2026 for risks specific to agents; ask any vendor how their controls map to it. If the agent will process personal data of people in the UK or EU, ask any vendor for a data processing agreement and confirm the model provider's terms with your counsel.

Where agents earn their keep in fintech and logistics

In payments and finance operations, the useful agent work is exception handling: reading a failed reconciliation, finding the matching transaction and preparing the fix for a person to approve. Our page on fintech software development covers the audit and approval needs. In logistics, agents handle dispatch exceptions and slot rebooking; see logistics software development. We build agents for businesses in the United States, the United Kingdom, Europe, the United Arab Emirates and Saudi Arabia; see software development in the USA, the UK, the UAE and Saudi Arabia. If your agent mainly needs new connections into older systems, our API development and integration service builds the tool layer it will call.

Start with one workflow

Bring one workflow, the systems it touches and a handful of real past cases. In a first call we can tell you whether it needs an agent, a RAG system or plain automation, and what the evaluation set should contain. Discuss your project to start.

Questions buyers ask

What is the difference between an AI agent and a chatbot?

A chatbot holds a conversation: it answers, asks follow-up questions and hands off to a person. An agent completes a task: it decides which tool to call next, such as looking up an order or creating a refund, and acts in your systems. The two often work together, with a chatbot as the front end and an agent doing the work behind it.

How long does it take to build an AI agent?

Keyhole Software's 2026 review of published pricing guides puts a basic single agent at 4 to 8 weeks and multi-agent workflows at 16 to 36 weeks. What stretches a timeline is rarely the model work. It is waiting for API access to your systems, a security review by your IT team, and a success metric nobody agreed in writing. Settle those during scoping and the plan is far more likely to hold.

What does an AI agent cost to run each month?

Run cost is tokens per task, times tasks per month, times the model's price per token, plus hosting, logging and monitoring. Agents resend context at every step, so a ten-step task costs far more than one question. Guides compiled in Keyhole Software's 2026 review put a custom production agent at $3,200 to $13,000 a month. Ask for an estimate built from your own task volume before the build starts.

Can the agent take actions without a person approving them?

Only for actions the pilot data shows are safe and reversible, such as tagging a ticket or drafting a reply. Irreversible or high-value actions, such as issuing a payment, deleting records or emailing a customer about money, keep a human approval step. You decide where that line sits, and it can move later as evidence builds up from real usage.

How do you know the agent is working correctly?

We test it against an evaluation set of real past cases with known correct outcomes. Each release is scored on task success rate, whether it called the right tools with valid arguments, steps and cost per task, and how often it escalated to a person. Open-text output is graded by a model and checked against a human-labeled sample. Each case runs several times, because the same input can take a different path. The set is re-run on every change.

Can an AI agent work with our CRM, ERP or internal APIs?

Yes, where the system offers an API or controlled database access. Each system call becomes a typed tool with input validation and its own scoped credentials, so the agent can only do what that tool allows. Screen-scraping a user interface is fragile and breaks when the screen changes, so it is a last resort, not a plan we would build an agent on.

What happens when the model provider updates or retires a model?

Providers retire and change models on their own schedule. We pin a specific model version where the provider offers one, keep model calls behind a single interface in the code, and re-run the evaluation set on any candidate model before switching. That turns a forced change into a measured comparison instead of a surprise in production.

Who owns the agent, the prompts and the evaluation data?

You own the code and intellectual property we write for you, including prompts, tool definitions and evaluation scripts, assigned in the contract. Source repositories and cloud accounts are set up in your name. Your evaluation data is your business data and stays yours. Whoever you hire, check that the contract says this in writing.

Do you sign an NDA before we share our workflows?

Yes. On request we sign a mutual NDA before detailed project discussions, so you can walk us through the workflow, the systems involved and real example cases. For the first call you usually only need to describe the task and the systems at a high level, which rarely requires sharing anything confidential.

Sources

  1. Keyhole Software Agentic AI Development Cost in 2026: Pricing by Complexity, Approach, and Cost Driver Accessed November 24, 2026
  2. Anthropic How we built our multi-agent research system Accessed November 24, 2026
  3. OWASP Gen AI Security Project OWASP Top 10 for LLM Applications 2026 Accessed November 24, 2026
  4. OWASP Gen AI Security Project LLM01:2026 Prompt Injection Accessed November 24, 2026
  5. OWASP Gen AI Security Project LLM03:2026 Excessive Agency Accessed November 24, 2026
  6. OWASP Gen AI Security Project OWASP Top 10 for Agentic Applications for 2026 Accessed November 24, 2026

What do you need built?

Start with the system you have and the change you want to make. We reply with questions, not a pitch.

Discuss your project