How to train an AI agent for your business.
You do not "train" an AI agent in the model-retraining sense. You customize four components across seven phases. Here is the methodology we use to take an agent from discovery to production in 14–30 days, with the timeline, the costs, and the mistakes that cause most deployments to underperform.
What does "training an AI agent" actually mean?
Training an AI agent for a business does not mean retraining the underlying model. It means customizing four components, system prompt (instructions and voice), knowledge base (documents the agent retrieves from), tools (APIs the agent can call), and eval cases (test inputs with expected outputs). Production-grade training runs through seven phases over 14–30 working days, costs €5,500–€15,000 depending on workflow complexity, and produces a deployed agent that operates on real inputs with measured accuracy. The model itself (Claude, GPT, Gemini) stays untouched.
Christos Papadimitriou, theagency47 · Updated May 20261. What "training" actually means in 2026
The word "training" is the most overloaded term in AI right now. In academic and research contexts, it means running gradient descent over billions of parameters on a GPU cluster. In business contexts, it almost never means that. When a vendor tells you they will "train your AI agent," they mean four specific things:
- System-prompt customization. The agent's instructions (role, voice, scope, escalation rules) are written specifically for your business.
- Knowledge-base curation. The agent is given access to your documents (policies, FAQs, product specs) and retrieves from them at decision time.
- Tool integration. The agent is wired to the APIs and systems it needs (Gmail, Shopify, CRM, internal DB) so it can actually do work.
- Eval-case construction. The agent is tested against 20–40 representative inputs, with expected outputs, before it goes live and after every meaningful change.
That is it. No fine-tuning, no retraining the base model, no millions of training examples. The base model (we standardize on Claude) already knows how to read, reason, and write. The "training" is teaching it the specifics of your business so it produces correct work on your specific inputs.
True model fine-tuning is still rare in 2026. The combination of strong base models plus prompt-level customization plus retrieval covers ~95% of business workflows at a small fraction of the cost. Reserve fine-tuning for edge cases where a base model genuinely cannot acquire a skill from instructions, and even then, validate with the four components above first.
2. The four components you customize
| Component | What it is | Owned by | Effort |
|---|---|---|---|
| System prompt | The instructions: role, voice, scope, decision rules, escalation triggers. | Business operator drafts; agency refines | 2–3 days iteration |
| Knowledge base | Documents the agent reads from at runtime: policies, FAQs, product info. | Business operator curates | 1–3 days curation |
| Tools / integrations | The APIs the agent can call: email, CRM, Shopify, payments, Slack, etc. | Developer / agency | 2–5 days per integration |
| Eval cases | 20–40 test inputs with expected outputs. The agent's report card. | Business operator + agency together | 2 days initial; ongoing additions |
All four are non-negotiable. An agent built with three out of four is the kind of agent that looks good in a demo and fails in week two. The eval suite in particular is what separates "we shipped an agent" from "we shipped an agent we trust."
3. The 7-phase training methodology
The sequence we run for every agent build. Each phase has a deliverable, an owner, and a duration. We do not move to the next phase until the deliverable is signed off.
Phase 1, Workflow discovery (1–2 days)
Capture the workflow on paper before anyone touches a model. The deliverable is a 1–2 page document covering: what triggers the workflow, what the decision rules are, what the most common exceptions look like, what "correct output" actually means, and what volume looks like (per day, per week).
Most teams skip this. Most teams regret it. Discovery is the cheapest phase by hours and the most expensive phase by leverage, every hour spent here saves three in phase 5.
Phase 2, System prompt design (2–3 days)
Translate the discovery doc into a system prompt. A well-formed system prompt for a production agent is typically 800–2,000 words, structured into: role and goal · voice and tone · scope (what the agent does) · anti-scope (what it never does) · decision rules · escalation triggers · output format.
Iterate the prompt against a handful of sample inputs until the agent produces the right shape of output ~80% of the time. Do not chase 95% in this phase, that comes from the eval suite in phase 5.
Phase 3, Knowledge base curation (1–3 days)
Decide what the agent needs to read at decision time. For small scopes (under ~10 pages of reference material), put it directly in the system prompt, simpler, faster, no retrieval failure modes. For larger scopes (FAQs with hundreds of entries, product catalogs, policy libraries), set up retrieval-augmented generation (RAG) or use a tool function that fetches the right doc on demand.
The most common knowledge-base mistake is throwing 200 PDFs at a vector store and assuming retrieval will sort it out. It will not. Curate. When knowledge is your real bottleneck across several agents, build it as a shared foundation first, a Second Brain with Obsidian that every agent reads from and writes back to.
Phase 4, Tool integration (2–5 days)
Wire up the APIs the agent needs to call to actually do work: send email, look up an order in Shopify, write to a CRM, post to Slack, generate a shipping label, issue a refund. Each tool is a small, well-typed function with a clear name, parameters, and return value. Six to ten tools is typical for an operational agent; two to four for a task agent.
Two principles: every tool has read-only siblings (the agent can look up an order before deciding to refund it), and high-impact tools (refunds, sending mail to customers) gate behind a confirmation step in early production. For more on tooling and frameworks, see Custom AI Agent vs ChatGPT Team vs Claude Projects.
Phase 5, Eval suite (2 days)
Build 20–40 test cases. Each case is an input the agent will face in production plus the expected output (or the expected kind of output, when exact match does not make sense). The suite covers three buckets: routine inputs (the agent should breeze through these), edge cases (where the rules are ambiguous), and red-flag inputs (where the agent should escalate, not act).
Run the suite after every system-prompt change. Track the pass rate as a single number. We deploy when the eval pass rate is ≥90% across the suite, with no failures in the red-flag bucket. The full methodology is in our eval guide.
Phase 6, Human-in-the-loop production (5–10 days)
Run the agent against real inputs with progressively less human oversight:
- Shadow mode (2–3 days). Agent drafts outputs, a human reviews every one, the agent does not act. Goal: catch failure modes that the eval suite missed.
- 100% human approval (3–5 days). Agent acts but a human approves before each send. Goal: build team trust and catch tone/judgment issues.
- Sampled review (ongoing). Agent acts autonomously on routine inputs. Human reviews 10–20% of outputs and 100% of escalations. Goal: keep quality stable while reducing oversight cost.
Skipping this phase to "go live" faster is the single most common deployment mistake we see. A one-week patient handover beats a one-day enthusiastic launch followed by a six-week post-mortem.
Phase 7, Continuous improvement (ongoing)
Once a week, review the logs. Three buckets to inspect: escalations (what got bumped to humans, and why), anomalies (inputs the agent had not seen before), and disagreements (where the human overrode the agent's decision). Each is a signal to update either the system prompt, the knowledge base, the eval suite, or all three.
A well-tuned operational agent climbs from a ~65% auto-resolution rate in week 1 to 80%+ by month 2 through this loop. Skip the loop and the agent silently regresses against drifting business conditions.
4. How long each phase takes (and what it costs)
| Phase | Duration | Owner | Cost contribution |
|---|---|---|---|
| 1, Discovery | 1–2 days | Business + agency | €500–€1,000 |
| 2, System prompt | 2–3 days | Agency | €800–€1,500 |
| 3, Knowledge base | 1–3 days | Business + agency | €400–€1,200 |
| 4, Tool integration | 2–5 days | Developer | €1,200–€3,000 |
| 5, Eval suite | 2 days | Business + agency | €800–€1,200 |
| 6, Human-in-the-loop | 5–10 days | Business team | €500–€1,500 (mostly team time) |
| 7, Continuous improvement | ~2 hrs/week | Agency retainer | €200–€800/month |
| Total build | 14–25 working days | — | €5,500–€15,000 |
These ranges match what we charge in our Spark and Workforce Starter engagements. The lower end is a single-workflow task agent (think email triage, return handling); the higher end is an operational-tier agent spanning multiple systems and roles. For the full pricing math, see how much does an AI agent cost.
5. What to do yourself vs. what to hire for
An honest split for an operator deciding whether to in-source or bring in help:
| Phase | Hire? | Reasoning |
|---|---|---|
| 1, Discovery | Do yourself | Nobody knows your workflow better than your team. |
| 2, System prompt | Hire if first agent; in-house after 3rd | The prompt-engineering pattern library matters early. After three builds, your team has it. |
| 3, Knowledge base | Do yourself | Curation is editorial work, not technical. Your team is better at it than any outsider. |
| 4, Tool integration | Hire (or have a developer) | This is software. Skip the pretence of no-code on production-grade work. |
| 5, Eval suite | Mixed: cases yourself, framework hired | You know what "correct" looks like. The eval harness is a one-time build. |
| 6, Human-in-the-loop | Do yourself | The team that will use the agent has to approve it. Outsourcing this defeats the point. |
| 7, Continuous improvement | Hire (retainer) or in-house once mature | The first 90 days produce the biggest learning gains. Retainer pays back at this stage; later it depends on volume. |
If you want a faster scoping conversation about which phases you should run in-house vs. hand to us, the €297 AI Audit covers exactly that question in 30 minutes.
6. The four mistakes that produce unreliable agents
In rough order of frequency across the agents we have audited or rescued:
- Skipping the eval suite. "It looked good in three test conversations" is not validation. A 20-case suite costs two days and saves the project. Teams that ship without one routinely discover production failures in week one that the suite would have caught in day one.
- Over-broad scope. An agent asked to "handle customer support" will fail. An agent asked to "resolve tier-1 order-status tickets and escalate everything else with full context" will work. Narrow scope is not a limitation, it is a design choice that produces reliable agents.
- No human-in-the-loop period. Brands that go from build to fully autonomous in one day take 2–3× longer to reach stable production because every early-week failure is a customer-facing incident instead of a logged review item.
- Tribal knowledge that never makes it into the system prompt. The senior rep "just knows" that German B2B customers do not get the same return policy as French B2C ones. The agent does not. Discovery (phase 1) exists to extract this. Skip it at your cost.
7. The minimum viable training plan
If you wanted to ship one agent in the next 30 days using this methodology (without overthinking it) this is the irreducible plan:
- Week 1. Pick one workflow (the noisiest one in your team's day). Write the discovery doc, 1–2 pages, in plain language.
- Week 1–2. Draft a system prompt against the doc. Iterate against 5 sample inputs until output shape looks right.
- Week 2. Curate the knowledge base. Resist the urge to upload everything.
- Week 2–3. Wire up the 4–6 tools the agent needs. Use a developer for this step or accept that it will take longer.
- Week 3. Write 20 eval cases. Run them. Iterate until ≥90% pass.
- Week 4. Shadow mode for 2 days. Human-approval mode for 3 days. Sampled review thereafter.
- Ongoing. Two hours a week reviewing logs. Update prompt / KB / evals based on what you see.
That is the entire methodology in seven bullets. It works for fashion brands, accounting firms, B2B SaaS support teams, and law firm intake processes, we have shipped it across all four in 2025–2026. The technology is not the hard part. The discipline of running the seven phases instead of cutting corners is.
Questions about training AI agents.
Do you actually retrain the underlying model when training an AI agent?
No. "Training" in the business sense means customization, system prompt, knowledge base, tools, and eval cases. The underlying model (Claude, GPT, Gemini) is used as-is. True model fine-tuning is rare in 2026 because prompt-level customization plus retrieval covers most production needs at a fraction of the cost.
How long does it take to train an AI agent end-to-end?
14–30 working days for a single-workflow production agent. Discovery: 1–2 days. Build (prompt + KB + tools + evals): 7–10 days. Shadow mode and human-in-the-loop production: 5–10 days. Anything faster usually skips the eval suite or shadow-mode safety net, both of which we consider non-negotiable.
Can I train an AI agent myself without a developer?
Phases 1, 2, 3, and 5 (discovery, system prompt, knowledge base, eval cases) are accessible to a competent business operator with no coding. Phases 4 and 6 (tool integration and production wiring) typically need software development skill or a no-code platform like n8n with custom-function support. The mistake is to skip the developer phases and run an agent without real tool integration.
What does training an AI agent cost?
A single-workflow agent trained end-to-end costs €5,500–€8,500 for a Spark-tier build. Operational tier (multi-step departmental work) costs €8,500–€15,000 under our Workforce Starter engagement. Running cost after deployment is €20–€500/month depending on volume. See our pricing guide for the full breakdown.
What is the single biggest mistake in training an AI agent?
Skipping the eval suite. Teams that ship an agent based on "it looked good in three test conversations" routinely discover production failures in week one that an eval suite would have caught in day one. A 20-case suite is the cheapest insurance against a public production embarrassment.
Related guides
What is an AI Agent?
The definition, the four characteristics, and how agents differ from chatbots and automation.
AI Agent vs Chatbot
Side-by-side comparison and decision framework, which to buy and why.
How Much Does an AI Agent Cost?
Honest 2026 pricing, build cost, monthly operations, total cost of ownership.
What Does an AI Agent Agency Do?
The category definition, what AI agent agencies deliver, and how to pick one.