Skip to content

One Task, Your Data, Your Call: Launching an AI Agent Step by Step

How we ship · 16 min read
By Dapton Technologies·Updated

How Dapton delivers an AI agent: one task, a pilot on your data, narrow tools, approvals, evals, a small launch and a handover into your own repositories.

Many AI agent projects stall at the same point. The demo works on five friendly examples. Then real requests arrive, with typos, missing order numbers and the odd angry email. Nobody can say how often the agent is right, or what it costs to run. This article is how we avoid that.

Here is our delivery flow for an AI agent, from the first conversation to the day your team owns it. For each phase we cover what we do, what we check, what you receive and where a person makes the call. One definition first: an AI agent is a program where a language model decides the next step and uses tools, such as your CRM or order system, to finish a task.

Our delivery path for an AI agent. Yellow marks the points where you make the call: after the pilot, before launch and before the agent gets more freedom.

Phase 1: Discovery, where we find the one task worth automating

We start by finding one task worth handing to an agent, and we check that your data, systems and people are ready for it. Discovery ends with a pilot plan, or an honest answer that you do not need AI for this yet.

We sit down with the people who do the work today. Together we list the tasks, mark the steps that repeat and note where someone makes a judgment call. Then we pick one task. A good first task passes most of these checks:

  • It happens often, so time saved on it adds up.
  • It has a clear finish you can describe in one sentence.
  • A person can check the result quickly.
  • A mistake can be caught and undone before it reaches a customer.
  • The information it needs lives in a system with an API or in documents we can reach.
  • Someone on your team owns the task and will judge the results.

Next comes our AI readiness check. It covers five areas for the chosen task:

  • Your data: where the records live, how clean they are and who may see them.
  • Your tools and systems: what the agent must read or change, and whether those systems offer an API, a documented way for software to talk to them.
  • Your people: who runs the task now, who will check the agent and who owns it after launch.
  • Your process: whether the steps are written down and steady enough to build on.
  • Governance: which data may reach a model, who approves what and what must be logged.

You receive an opportunity map, a readiness summary, a ranked shortlist and a pilot plan. The plan names the task, its owner, the approvers and the success measures, written against how the task runs today. That written baseline matters later, when we judge the pilot.

AI helps us sort a long list of candidate tasks and draft first notes from your documents. People choose. Your team and our lead engineer pick the task together, because a model does not know which mistakes your business can live with.

The mistake we avoid is a goal like “automate support”. That is dozens of tasks with different rules and different risks. We start with one, such as drafting replies to order-status emails, and earn the next one.

Phase 2: Prompt, workflow or AI agent? Picking the simplest shape

We choose the simplest shape that does the job: a single model call, a fixed workflow, one agent with tools, or several agents. Most tasks fit one of the first three, so that is where we start.

Each step up the ladder adds flexibility. It also adds cost, delay and new ways to fail. Anthropic’s guide to building agents makes the same point: find the simplest solution and add complexity only when it clearly helps. Google Cloud’s guide to agent design patterns also recommends starting with one agent before reaching for many. Here is how we decide:

  • A single prompt fits when the input comes in one piece and the answer is one piece. Summarize this call. Pull these fields from this invoice.
  • A fixed workflow fits when the steps are known in advance. Read the invoice, match it to the order, file it, tell finance. Code sets the order of steps, and the model handles the messy reading.
  • One agent with tools fits when the next step depends on what the agent finds. A ticket might need an order lookup, a policy check or a handoff to a person.
  • Several agents fit when one agent gets confused by too many tools. They also fit work that splits into parts that run side by side, such as reading hundreds of contracts.

We test the choice before we commit to it. A few real examples go through the simplest shape first. If a fixed workflow handles them, we stop there and save you the cost of an agent.

You receive a short solution outline: the shape, the models we will compare, the systems it touches and the reasons. The tools we reach for are Claude, Gemini and OpenAI models, and agent frameworks such as the OpenAI Agents SDK, the Claude Agent SDK, Google ADK, CrewAI, AutoGen and Pydantic AI. We pick the framework per project. We use n8n when a workflow mostly passes data between business apps.

The mistake we avoid is a multi-agent design chosen because it sounds advanced. Every extra agent is one more thing to test, trace and pay for.

Phase 3: The pilot, where your own data gets the first vote

The pilot is a working version of the agent, run on your real cases. Before you commit to a full build, it tells you three things: how often the agent is right, what each run costs and how much time it saves your team.

We build the narrow core of the agent and the tools it needs. During the pilot it reads and drafts only. Nothing it produces reaches a customer. Then we measure it.

The evaluation set

An evaluation set, or eval set, is a saved list of real cases with the answer your team agrees is right. We build it from your own history: past tickets, past invoices, past requests. It holds the easy cases, the messy ones and the ones that went wrong before. It also checks both sides of a behavior. The agent should escalate the refund dispute, and it should not escalate the simple tracking question.

A person on your team signs off on the expected answers, because the agent will be judged against them. Anthropic’s guidance on agent evals suggests a useful test for each case: two experts should reach the same pass or fail verdict. When they would not, we rewrite the case.

Grading uses three methods. Code checks the facts it can check, such as whether the right order number was found. A model grades a draft against written rules, such as tone or policy. A person grades a sample and checks that the model grader agrees with them. We tell you which method scored which result.

What we measure

  • How often the agent gets a case right, and which kinds of case it gets wrong.
  • How often it makes a serious mistake, the kind your team said is never acceptable.
  • What one run costs in model and tool fees, and what that adds up to each month at your volume.
  • How long a person spends on the task with the agent’s help, compared with the baseline from discovery.
  • How often it hands a case to a person, and whether those were the right cases to hand over.
Illustrative sample data, not a client result. A pilot scoreboard compares each measure with the target agreed in the pilot plan.

Then we decide together. We compare the results with the targets in the pilot plan. If the agent meets them, we recommend building it. If it falls short, we say what would close the gap: better data, a narrower task or a different model. If it is far off, we recommend stopping. You find out before you commit to a full build.

You receive the pilot code in your repository, the eval set, the test results and an estimate of the monthly running cost. The go or stop decision is yours.

The mistake we avoid is measuring accuracy and forgetting cost. An agent that is right every time but costs too much per case is still the wrong build.

Phase 4: Tools and access, or what the agent may touch

An agent can only do what its tools allow. So we give it a few narrow tools with the least access that works, and a person approves anything costly or hard to undo.

A tool is one action the agent can call, such as “find order” or “draft reply”. Each one gets one job, clear inputs and a plain description the model reads. We write those descriptions with the same care as the main instructions, because they are how the model decides which tool to use.

We connect your systems through APIs or through MCP servers. MCP, the Model Context Protocol, is an open standard that lets AI assistants use tools and data in a consistent way. Our MCP servers come with sign-in, scoped permissions and a log of every call. The MCP security guidance warns against broad, catch-all permissions, so we start each connection with the smallest set and add rights one at a time.

These are the access rules we follow on every agent:

  • Read before write. The first version reads and drafts. Write access arrives later, one action at a time.
  • Narrow over general. We build “update the shipping address on this order”, never a tool that can run any database query.
  • Separate credentials. The agent gets its own account with limited rights, never a shared admin login. When it acts for a user, it acts with that user’s rights.
  • Checks live in your system. Your API decides what is allowed, so a request outside the agent’s rights fails even if the model asks for it.
  • Approval for costly or hard-to-undo actions. Refunds, deletions, customer emails and payments pause until a named person approves, edits or rejects them.

OWASP, the open security project, lists “excessive agency” among the top risks for apps built on language models. It means too many tools, too many rights or too little oversight. Each rule above answers one of those three.

A tool and permission map (illustrative). Reads are open, drafts go to a queue, a refund waits for a named person, and some actions are never given.

AI drafts tool descriptions and test calls for us. People own the permissions: an engineer and your system owner agree the access for every tool, in writing. You receive a tool and permission map that says what the agent may read, change and never touch, and who owns each tool.

The mistake we avoid is a powerful general tool added “just for the pilot” and never taken away.

Phase 5: Guardrails we build in code around the agent

Guardrails are limits we build in code around the agent: caps on steps and spend, checks on every output, defenses against prompt injection, a log of every action and a safe way out to a person.

  • Every run has a step cap, a time limit and a cost ceiling. When it hits one, it stops and hands the case to a person.
  • The model answers in a fixed format, and our code validates it before anything acts on it. A malformed answer is retried once or escalated.
  • Prompt injection is text hidden in an email, page or file that tries to give the agent new orders. We mark outside content as data, keep keys and secrets out of the model’s reach and enforce permissions in code.
  • A retried step never sends the same email or issues the same refund twice.
  • If a model provider is slow or down, the run switches to a backup model we have already tested.
  • Each tool call is recorded with its inputs, its result and the approval, if one was needed.
  • When the agent is unsure, it says so and passes the case to a person with the context attached.

We plan for some injection getting through. OWASP notes that prompt injection may never be fully prevented. Anthropic says the same of its own browser agent: “No browser agent is immune to prompt injection.” So our defenses aim to limit what a fooled agent can do, not only to stop the trick.

Then we try to break it. We feed the agent emails with hidden instructions, odd requests and records with missing fields, and confirm that it stops or escalates. You receive the guardrail settings as configuration in your repository, with a note on what each limit protects.

The mistake we avoid is trusting the prompt to keep the agent safe. Instructions help, but the rules that matter live in code and in your systems.

Phase 6: Testing and evals on every single change

We test an agent in two ways: automated eval runs on every change, and people reading real outputs. We need both, because each one catches what the other misses.

The pilot eval set grows into a regression suite. A regression is something that used to work and now does not. Any change to a prompt, a tool, a model or your data reruns the suite in CI, the automated pipeline that checks each change. If the score drops, the change waits until we know why.

The code around the model gets ordinary software tests too. Tools, permissions, retries and the approval flow have unit and integration tests that must pass every time. These parts behave the same way on every run, so they should be tested like any other code.

Then people read. An engineer reviews a sample of full runs, step by step, to see how the agent reached each answer. Your subject expert reviews samples for what only they can judge, such as tone or policy. AI helps by grading drafts against written rules and flagging odd runs. A person still reads the flagged runs and makes the call.

Reading runs also tests the tests. Sometimes a failing case shows a grader that rejected a valid answer. Sometimes a passing case hides a lucky guess. Scores mean little until someone has looked at the runs behind them.

The mistake we avoid is changing a test so the agent passes. If an eval fails, we fix the agent, or we agree with you that the expected answer was wrong and update it on the record.

Phase 7: A small, quiet launch with an off switch

We launch to a small group first, with the agent in shadow mode or draft-only mode, and with an off switch your team can use at any time.

In shadow mode the agent runs on real cases, but its output goes nowhere. We compare what it would have done with what your team did. In draft-only mode the agent prepares the work, and a person approves every action before it happens. We pick one based on the risk of the task.

The off switch is a single setting your team controls. Turning it off sends cases back to the normal queue, with no new release needed. We test it before launch, and we test the handoff to a person too.

After launch we watch these signals:

  • How often a person accepts the agent’s work as it is, edits it or rejects it.
  • The reasons behind edits and rejections.
  • Cost per run compared with the pilot estimate.
  • How often the agent escalates, and whether those were the right cases.
  • Errors and timeouts, which reach Sentry like any other bug.

Every production release, the agent’s first included, is signed off by a named person on your project. Before that sign-off, we go through this list.

Our go-live checklist for an AI agent

  1. The task, its inputs and its finish are written down and signed off.
  2. Accuracy on the eval set meets the target agreed in the pilot plan.
  3. Serious mistakes on the eval set are within the level your team agreed.
  4. Cost per run is measured, and you have a monthly estimate.
  5. Every tool has one job, a written permission and a named owner.
  6. The agent uses its own credentials with the least access that works.
  7. Costly or hard-to-undo actions pause for a person’s approval.
  8. Step, time and spend limits are set, and each one stops the run safely.
  9. Code validates every output before anything acts on it.
  10. Prompt-injection tests have run, and outside content is treated as data.
  11. Retries are safe: no duplicate emails, refunds or records.
  12. Every run is traced, with inputs, tool calls, output, time and cost.
  13. Alerts are set for errors, cost spikes and drops in quality.
  14. The off switch works, and your team knows who can use it.
  15. A person can take over any case, with the context attached.
  16. The runbook is in your repository, and the release has a named sign-off.
The go-live checklist as a board. Launch waits until every check is ticked.

Phase 8: Run it, read the logs, earn more autonomy

After launch we read real runs, track quality and cost, and turn every failure into a new eval case. The agent gets more freedom only when the record shows it has earned it.

Tracing records each run step by step: what the agent saw, which tools it called, what it answered, how long it took and what it cost. Langfuse and LangSmith are examples of tools built for this kind of tracing. We pick one that fits your stack.

Dashboards show quality, speed and cost over time, with alerts when a measure crosses a line you agreed. We also read a sample of real runs on a regular schedule. Numbers tell you that something changed. Reading the runs tells you why.

When a run goes wrong, it joins the eval set. The same failure is then caught before the next release, which is how the agent gets steadier over time.

The autonomy ladder

We widen what the agent may do one rung at a time:

  1. Shadow mode. The agent suggests, and nothing it does reaches anyone.
  2. Draft mode. The agent prepares the work, and a person approves every action.
  3. Low-risk actions. The agent acts alone on routine steps that can be undone. Sensitive steps still wait for approval.
  4. Within limits. The agent handles the whole task inside its caps, and people review samples.
The autonomy ladder. We start at the bottom and climb only with evidence from the logs and your agreement.

We move up a rung only with evidence from the logs and your agreement. Actions that change money or sensitive data keep a person’s approval on every rung. The ladder works both ways: if quality drops, the agent steps back down.

The OpenAI Agents SDK shows how this works in practice. A tool can be marked as needing approval, the run pauses until a person approves or rejects it, and the saved run state lets it continue from the same point later.

Phase 9: Handover, because the agent is yours

Everything we build lives in your repositories and your accounts, so handover means walking your team through what is already theirs.

You receive:

  • The agent code, its tools and any MCP servers.
  • Prompts and model settings, versioned like any other code.
  • The eval set and the scripts that run it.
  • Guardrail settings: limits, permissions and approval rules.
  • Runbooks for turning the agent off, rolling back a change, rerunning the evals and handling a bad run.
  • The tracing and cost dashboards, with access for your team.

We also write down who owns what. Your team owns the task, the business rules, the approvers and the expected answers. Whoever runs the agent day to day owns the alerts, the eval runs and model updates. That can be us, your engineers or both, and we write it down either way.

Seven mistakes we avoid on every agent project

  • Starting with a whole department instead of one task.
  • Judging the agent on a demo instead of an eval set built from real cases.
  • Measuring accuracy without cost, then meeting the monthly bill after launch.
  • Giving the agent broad rights to save time.
  • Counting on the prompt alone to keep the agent safe.
  • Launching to everyone at once with no off switch.
  • Treating launch as the finish. Models, data and your business change, so the evals keep running.

Common questions

How long does an AI agent project take?

We give a timeline after discovery, once we have seen your task, data and systems. The pilot comes first, so you see real results before you commit to a full build.

Which AI models do you use?

We work with Claude, Gemini and OpenAI models. We compare them on your eval set for accuracy, speed, cost and data requirements, then choose. A cheaper model can handle the easy steps, with a stronger one where it counts.

Will the agent act without anyone checking?

Not at first. It starts in shadow or draft mode. It earns more freedom only with evidence and your agreement, and actions that change money or sensitive data keep a person’s approval.

What happens when the agent gets something wrong after launch?

The run is in the trace, so we can see exactly what happened. We fix the cause, add the case to the eval set and rerun the set before the fix ships. Your team can switch the agent off while we work.

Who owns the code and the data?

You do. The code, prompts and eval sets live in your repositories, and the agent runs in your accounts.

Does our data need to be clean before we start?

Not necessarily. Discovery checks your data and tells you what to fix first. Some first tasks work with the data as it is, and others need cleanup before a pilot makes sense.

Your first AI agent starts with one task

If you have a task in mind, tell us about it. We will tell you whether an agent fits, what a pilot would measure and what we would need from your team. If a simpler fix would do the job, we will say so.

Documentation and references

AI agentsDelivery processAI pilotAI evalsHuman in the loopMCP
Need help building this for your product?

Working with AI agents and Delivery process? Tell us what you’re building and our engineers will tell you how they would approach it.

Talk to our team →

More from the blog