Guide · 8 min read · Updated Sep 2026

What are AI agents? In plain English.

A founder’s guide to AI agents: what they actually are, when they’re worth building, and how LangChain, LangGraph and multi-agent systems fit together. Written by an architect who ships them to production.

The short version
What it is
An LLM that plans, calls tools and checks results in a loop until a goal is met.
When to build one
When the workflow branches and a single prompt or fixed script can’t handle it.
Default stack
LangGraph for stateful production agents, RAG before fine-tuning.
Time to build
2–4 weeks for an MVP, 6–10 for a multi-agent production system.

What is an AI agent?

An AI agent is software that uses a large language model (LLM) as its decision-making engine to reach a goal on its own: it plans a step, calls a tool, looks at the result, and repeats until the job is done.

Unlike hard-coded pipelines that follow rigid rules, or chatbots that only generate text, an agent works inside a continuous reasoning loop. It reads natural-language instructions, plans a sequence of actions, and picks and runs external tools — database queries, APIs, web-browsing scripts — to change real systems. After each tool call it observes the feedback, updates its memory and decides the next best action. That self-correcting loop lets it handle edge cases and messy data without constant human intervention.

The agent loop
  1. GoalYour instruction plus the current context
  2. ThinkThe LLM decides the next step
  3. ActIt calls a tool: database, API, search
  4. ObserveIt reads the result and updates its memory
Repeats until the goal is met or a limit is hit Risky actions wait for human approval

The simplest useful mental model: an agent is an intern with access to tools and a manager (you) who reviews the risky decisions.

When is an agent actually worth building?

When the workflow has unpredictable paths and variable inputs. Agents add API cost, latency and new failure modes, so skip them when a single structured prompt or a fixed script solves the problem reliably.

Use an agent when

the workflow has branching logic, multiple tools, and can’t be expressed as a single prompt or a fixed pipeline.

Don’t use an agent when

a structured prompt and a single LLM call solve the problem. Agents add cost, latency and failure modes.

Especially consider one for

customer support, lead qualification, internal ops workflows, research, and code generation with execution feedback.

Which AI agent framework should you use?

The three main options in 2026 are LangChain, LangGraph and CrewAI. They target different patterns, from simple linear chains to multi-agent state machines that need strict state management. For production agents, I default to LangGraph.

LangChain, LangGraph and CrewAI compared
CriteriaLangChainLangGraphDefaultCrewAI
Best forLinear pipelines, standard RAG, one-shot tool callsStateful, cyclic agents with human approval stepsRole-based multi-agent teams, research, fast prototypes
State & loopsNot built for looping agents that keep state across cyclesExplicit state machine with checkpoints and recoveryHandled for you behind a high-level abstraction
DebuggingStraightforward for linear chainsPredictable: every node and transition is explicitHarder to trace when agents drift from instructions
VerdictGood toolkit of building blocksMy default for productionGreat for prototypes and content pipelines

LangChain

A modular kit of building blocks: prompt templates, vector retrievers, output parsers and tool wrappers you chain together. Strong for linear pipelines, standard RAG and one-shot tool calling; not designed for looping agents that keep state across cycles.

LangGraph

Compiles agent workflows as stateful, cyclic graphs. Modelling the agent as a state machine with explicit nodes and transitions gives you checkpoints, error recovery and human-in-the-loop validation, which is what you want before an agent touches a database or money.

CrewAI

Coordinates role-based multi-agent teams: you define personas with scoped tasks and CrewAI handles how they collaborate. Excellent for research workflows, content pipelines and quick proofs of concept; the high-level abstraction is harder to trace when agents drift.

Should you build a single-agent or multi-agent system?

Start with a single agent: it uses fewer tokens and has less coordination latency. Add more agents only when one agent needs separate prompts, separate tool permissions, or separate RAG namespaces to stop its context from overloading.

DefaultStart with one agent

One prompt, one set of tools, one place to debug. Most workflows never need more.

Go multi-agent when
  • the system prompt passes a few hundred tokens
  • one agent juggles tools from very different domains
  • you want specialists, like a “researcher” and a “writer”

The safe way to structure a multi-agent system is the supervisor pattern: one agent owns the plan and delegates; workers are specialists that return and never call each other. I break it down here: the supervisor pattern.

What makes an AI agent production-ready?

Five engineering pillars move an agent from a local sandbox to production: evals, observability, human approval on risky actions, cost and latency controls, and bounded loops.

  1. 01EvalsA golden dataset of 50+ test cases and an LLM-as-judge scoring loop, so a model update can’t silently make answers worse.
  2. 02ObservabilityEvery decision and tool call is logged with inputs, outputs and token cost, using tools like LangSmith or Langfuse.
  3. 03Human-in-the-loop on risky actionsManual approval for write operations, refunds, or database changes above a set financial threshold.
  4. 04Cost & latency controlsSemantic caching (pgvector), prompt compression and smart model routing. Cost optimization case study.
  5. 05Bounded loopsStrict iteration caps so a runaway loop can’t burn through your API budget.

RAG or fine-tuning — which do I need?

Almost always RAG first. Retrieval-augmented generation grounds answers in your own, current data. Fine-tuning is for narrow, high-volume tasks where you’ve already exhausted prompt engineering.

Start with RAG

Dynamic, verifiable answers from your documents and data. Easy to update, easy to cite.

Fine-tune for

a specific tone, strict proprietary formats, or cutting latency on narrow, high-volume classification.

The full decision tree: RAG vs fine-tuning.

How long does it take to build a production agent?

Two to ten weeks, depending on complexity. The time goes into integrations, golden test datasets, evals and edge-case handling, not into writing the agent logic.

MVP / prototype2–4 weeks
Production-ready single agent4–6 weeks
Multi-agent system with HITL and full observability6–10 weeks

What does a production agent cost to run?

It depends on token throughput and request volume. A support agent handling about 1,000 tickets a day typically costs $500–$3,000 a month in LLM API fees without cost engineering, and $200–$900 after semantic caching and model routing.

$500–3,000per month, support agent at ~1,000 tickets a day, unoptimized
$200–900per month for the same agent after caching and routing
<$100per month, typical for an internal ops agent at a few hundred calls a day

Cost engineering matters more than most founders expect.

Real production builds

Case studies that show these patterns running for paying clients:

Need a hand? I offer custom AI agent development services, LangChain and LangGraph engineering, LLM cost optimization, and a production AI audit and rescue for agents that are already live.

Go deeper

The supporting guides, grouped by what you’re trying to do:

Frequently asked questions about AI agents

Agentic AI is software that uses a large language model to pursue a goal on its own — planning steps, calling tools, checking the results, and adjusting — instead of just answering a single prompt. An AI agent is one such system; "agentic AI" is the broader category. The shift from chatbots to agentic AI is the shift from systems that talk to systems that act.

An AI agent runs a loop: it reads the goal and current context, the LLM decides the next step, it calls a tool — a database query, an API call, a search — observes the result, and repeats until the goal is met or a limit is hit. The LLM is the reasoning engine; the tools are how it affects the real world.

A chatbot answers questions; an agent takes actions. An agent can query your database, send an email, update a CRM, or issue a refund. A chatbot's output is text — an agent's output is a changed system. Most failed "AI agent" projects are really chatbots asked to act without the tools or guardrails to do it safely.

A workflow follows a fixed path — step A, then B, then C. An agent decides the path at runtime based on what it observes. Workflows are cheaper and more predictable when the steps are known up front; an agent is worth its extra cost and failure modes only when the path genuinely cannot be fixed in advance.

To use one, no — a well-built agent runs quietly inside tools you already have. To build and maintain one safely you need engineering capability, in-house or contracted, because the hard parts are evaluation, observability, and failure handling, not the prompt.

Want one built for your business? Start with one call.

I build production AI agents for startups and SMBs, usually in 2–10 weeks. Curious how a build runs? Read the 6-week agentic product playbook.

Book a free scoping call
What happens after you book
  1. A free 30-minute call, no pitch
  2. A straight read on whether an agent is the right tool
  3. If it is, a one-page scope with price and timeline