AI Agent Development

AI Agents That Take Real Actions Without Taking Over

A chatbot answers questions. An agent looks things up, decides on a next step and does something in another system. That extra capability is what makes agents useful and also what makes them risky, so the design work is mostly about deciding what an agent may do, when it must ask, and how you find out when it gets something wrong.

What is AI Agent development?

AI agent development is building software in which a language model works toward a goal by calling defined tools, such as APIs, database queries or search, inspecting the results and choosing the next step. Unlike a chatbot, an agent can change state in other systems, so it needs explicit permissions, approval points and monitoring.

Who it's for

  • Support teams that want an assistant to look up orders, accounts or tickets and draft resolutions
  • Operations teams with multi-step tasks spread across a CRM, email and internal tools
  • SaaS products adding an in-app assistant that can act on the user's own data
  • Teams that tried a prompt-only chatbot and found it could not do anything useful

Problems it solves

  • Staff spend their day copying information between systems to answer routine requests
  • A chatbot gives plausible answers but cannot check live data or complete a task
  • Leadership wants automation but is uneasy about a model acting without oversight
  • An existing agent prototype works in demos but fails unpredictably on real requests
Scope

What can be delivered

  • Tool layer

    Typed, validated functions the agent can call, wrapping your APIs and database queries with their own permission checks.

  • Retrieval over business data

    Indexing of documents, knowledge-base articles or records so the agent answers from your sources, filtered by what the user is allowed to see.

  • Agent workflow

    A defined loop or graph of steps with limits on iterations, cost and which actions require approval.

  • Approval and handoff UI

    Screens or notifications where a person reviews proposed actions, edits them or takes over the conversation.

  • Evaluation suite

    Realistic test scenarios with expected tool calls and outcomes, run before each change to prompts, tools or models.

  • Tracing and monitoring

    Logs of every step, tool call, token count and outcome so failures can be investigated and costs watched.

Technical approach

Designing the tool surface

An agent is only as capable, and only as dangerous, as the tools it is given. Each tool gets a narrow purpose, a strict input schema and its own authorisation check that runs in your code, not in the prompt. A tool called getOrder should look up one order for the current customer, not run arbitrary queries. Read-only tools are cheap to grant. Tools that send messages, issue refunds or modify records are where approval steps go.

Typical autonomy levels by action type
ActionExampleDefault handling
ReadLook up account status, search docsAutomatic, scoped to the user's permissions
DraftWrite a reply, prepare a ticket updateAutomatic, shown to a person before it is sent
Reversible writeTag a ticket, update a CRM fieldAutomatic with logging, or approval at first
Irreversible or financialRefund, delete, send external emailAlways requires human approval

Keeping the loop bounded

Open-ended agents that plan freely are hard to test. For business workflows a constrained structure usually works better: a defined sequence or state graph where the model makes decisions at specific points. Frameworks such as LangGraph model this explicitly, though a plain loop in Node.js or Python with a step limit is often enough. Every run gets a maximum number of steps, a token budget and a timeout, and the agent hands off to a person when it hits one of them or when its confidence is low.

Evaluating behaviour, not just answers

Testing an agent means checking the path as well as the final reply: did it call the right tools, with the right arguments, in a sensible order, and stop when it should. I build a scenario set from real requests, including awkward ones, and run it on every change. In production, traces of each run show where agents loop, stall or escalate, which is where the next round of fixes comes from. The AI features that ship article covers the evaluation setup in more depth.

Technology

Technologies for AI Agent Development

Models with tool calling

  • OpenAI API
  • Anthropic API
  • Google Gemini

Agent orchestration

  • LangGraph
  • LangChain
  • Node.js
  • NestJS
  • Python

Retrieval & vector search

  • PostgreSQL + pgvector
  • Qdrant

Integration and runtime

  • REST
  • GraphQL
  • WebSockets
  • Bull Queues
  • OAuth 2.0
  • RBAC
Process

How the work runs

  1. 01

    Map the task and the systems

    Walk through how a person does the task today, which systems they touch and which decisions need judgement.

  2. 02

    Define tools and permissions

    Write the tool list with input schemas, scopes and an autonomy level for each action before any prompting.

  3. 03

    Build a narrow first agent

    Ship one workflow end to end with approval on every write, so real behaviour can be observed safely.

  4. 04

    Evaluate and loosen carefully

    Use traces and the scenario set to decide which actions can move from approval to automatic.

  5. 05

    Monitor and extend

    Watch cost, escalation rate and failure patterns, then add tools or workflows one at a time.

Trade-offs

Decisions worth making early

  • Agents are not always the answer

    If the steps never change, a fixed workflow automation is cheaper and more reliable than letting a model decide the order.

  • Latency adds up

    Each tool call is another model round trip. Multi-step agents can take many seconds, so the UI needs progress feedback or the work belongs in a background job.

  • Model changes alter behaviour

    Provider model updates can change which tools get called. Pin model versions where possible and rerun the scenario set before switching.

  • Integration quality limits the agent

    An agent cannot be better than the APIs underneath it. Missing endpoints or inconsistent data often need API integration work first.

Further reading

Related articles

Related services
  • AI & Data

    AI Automation

    Automation for document- and message-heavy processes, combining fixed workflow steps with model steps, confidence thresholds and human review.

  • AI & Data

    NLP Development

    Text classification, extraction, summarisation, search and sentiment, including multilingual text, using LLMs or smaller fine-tuned models as the task requires.

  • Custom Software

    API Development & Integration

    Well-documented REST and GraphQL APIs and dependable third-party integrations, with proper auth, versioning, rate limits, webhooks and idempotency.

  • Consulting

    AI Strategy Consulting

    Work out which AI use cases are worth building, whether your data is ready, what it will cost to run, and where conventional software is the better answer.

FAQs

A chatbot generates replies; an agent can also take actions. An agent calls tools such as APIs or database lookups, reads the results and decides what to do next, which means it can complete tasks like updating a ticket or checking an order. That ability is why agents need permissions and approval steps that chatbots do not.