Service

AI Agent Development

AI agents that connect to your business systems, use tools and wait for human approval at critical steps. We deliver the agent together with the permission, logging and measurement layer around it, not just the model.

What is an AI agent?

An AI agent is a language model system that decides for itself which step to take towards a goal and carries out those steps through tools. A classic chatbot only writes answers; an agent looks up a record, reads a document, calls an API, evaluates the result and keeps looping until the task is done. The approach of combining reasoning and acting in one loop was popularised by the ReAct paper, and most enterprise agents today build on it.

What makes an agent valuable is not the model itself but the tools it connects to and the controls around it. If you do not design up front which system it can reach with which permissions, which actions wait for human approval, when it must stop and how every step is logged, the agent will not be reliable in production. From Ankara, Hatson Tech provides AI agent development with these layers built in for companies across Türkiye and abroad. We cover the fundamentals in our article on AI agents.

Agent or fixed workflow?

Not every automation needs an agent. A process whose steps are known in advance runs cheaper, faster and more predictably with rules or a fixed workflow. Anthropic's guide to building agents makes the same distinction: start with the simplest solution and use an agent only where real flexibility is needed. We decide with these criteria:

SituationSuitable approach
The steps are the same every time and the input is structuredRule-based automation or a fixed workflow
The steps are fixed but one step needs to understand text (classification, field extraction)Workflow plus a single LLM step
Answers must cite documents and no action is takenRAG assistant
The next step depends on the situation and several systems are involvedAI agent
The task has irreversible effects (payments, deletions, messages to customers)Agent plus mandatory human approval

We walk through the decision step by step in agent or fixed workflow, and discuss when several cooperating agents are justified in our article on multi-agent systems.

Enterprise AI agent use cases

Agents add the most value to repetitive tasks that move between several systems, where the decision depends on context and where an employee does the work by hand today:

  • Email and ticket triage: reads the incoming request, classifies it, finds the related record, drafts a reply and routes it to the right team; sending happens after human approval.
  • Document processing: extracts fields from invoices, orders and contracts, compares them with ERP records and flags mismatches.
  • Customer support agent: goes beyond answering from documents and, within its permissions, checks order status, books appointments or starts returns.
  • Data and reporting agent: turns a question in plain language into a query against authorised data sources, explains the result and shows the query.
  • Internal operations and engineering agents: summarise incident logs, prepare recurring maintenance work and submit it for approval.

When the agent must ground its work in knowledge, we build RAG and semantic search as one of its tools (agentic RAG). When it needs domain-specific behaviour, LLM fine-tuning comes in.

How we build AI agents

  1. Discovery: we define the task with real examples. Who does this work today, with which systems and how long does it take? Which mistakes are expensive?
  2. Tool catalogue and permissions: we define the agent's tools narrowly and explicitly; each tool runs with only the permissions it needs. More in our article on choosing agent tools. Where it fits, we connect tools through the Model Context Protocol (MCP).
  3. Evaluation set: before writing code we build a test set from real cases. The agent's success is measured on it, and every change is re-tested against the same set.
  4. Prototype and safety layer: human approval steps, cost and step limits, action logs and rollback paths are built with the prototype, not added later.
  5. Pilot: the agent first runs with a small group of users and low-risk tasks, often in a suggest-only mode.
  6. Production and monitoring: success rate, human intervention rate, cost per task and error types are tracked on a dashboard, and the agent takes on more work gradually.

Security, control and data protection

The biggest risk with agents is that they carry out the wrong action with more permissions than they need. OWASP's risk list for LLM applications calls this "excessive agency". We build our agents on these principles:

  • Least privilege: each tool can reach only the data and operations its task requires, and permission checks run on the server, not in the model.
  • Human approval: actions involving money, customer communication or permanent changes do not run without approval. We describe how we design approval screens in human approval before agent actions.
  • Prompt injection defence: text that arrives from documents, emails or web pages is treated as data, not as instructions. See our article on prompt injection.
  • Audit trail: every step of the agent, the tool it called, its input and its result are logged, so any error can be traced afterwards.
  • Data residency: if needed, the agent runs entirely on your own servers with open-weight models; see on-premise enterprise AI. If a cloud model is used, which data goes where is decided up front under KVKK and GDPR.

How we measure success

"The agent works well" is not enough. In every project we agree on the metrics and target values before the pilot:

MetricWhat it shows
Task success rateHow often the agent completes tasks correctly on the evaluation set and on real work
Human intervention rateHow many tasks had their approval rejected or needed correction
Cost per taskModel, tool and infrastructure cost, and staying within the budget limit
Completion timeHow much faster the task is than the manual process
Error typesThe spread of failures such as wrong tool choice, missing information or loops

Why Hatson Tech?

Most of an agent project is software engineering rather than model work: integrations, permissions, queues, logging and monitoring. Our team combines data analysis, AI engineering and full-stack development, so the people who design the model also deliver the product around it. We share practical lessons in our article on AI agents in production.

Frequently asked questions

What is an AI agent?

An AI agent is a language model system that decides for itself which step to take towards a goal and carries out those steps through tools. It looks up records, reads documents, calls APIs and keeps evaluating the result until the task is done.

How is an AI agent different from a chatbot?

A chatbot only writes answers. An agent takes actions through tools connected to your business systems: it creates records, processes documents and routes requests. That is why permissions, human approval and audit trails are mandatory for agents.

Does every task need an AI agent?

No. Processes whose steps are known in advance run cheaper and more predictably with rule-based automation or a fixed workflow. We recommend an agent only where the steps change with the situation and several systems are involved.

What happens if the agent takes a wrong action?

Risky actions do not run without human approval, every tool is limited to the least privilege it needs and every step is logged. Compensating actions are designed up front for reversible operations, so mistakes stay contained and traceable.

Does our data leave the organisation?

That depends on the architecture. If you prefer, the agent runs entirely on your own servers with open-weight models. If a cloud model is used, which data goes where and the transfer rules under KVKK and GDPR are decided at the start of the project.

How long does an AI agent project take?

It depends on the number of systems to connect, the permission structure and the risk of the task. We set the timeline after discovery, around a narrow pilot with a measurable success criterion.

Articles on this topic

Tell us about the work you want to hand to an agent. We will first check whether it needs an agent at all and, if it does, scope the first pilot and its success criteria with you.

Get in touch
All solutions