# Agentic AI: When to Build an AI Agent (and When a Workflow Ships)

Agentic AI, explained from production, not the demo. What an AI agent actually is, the types of AI agents, why most agentic AI projects should be workflows, and what it takes to ship an agent that reaches production.

<link rel="stylesheet" href="?v=">

<section class="gs-hero">
  <div class="container">
    <div class="gs-breadcrumb">
      <a href="/">Density Labs</a> <span>/</span> Agentic AI
    </div>
    <h1>Agentic AI, explained from <em>production</em>.</h1>
  </div>
</section>
<style>.cmp-table{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0 28px}.cmp-table th,.cmp-table td{border:1px solid var(--line);padding:12px 14px;text-align:left;vertical-align:top;line-height:1.5}.cmp-table th{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;background:var(--paper-soft)}.cmp-table td:first-child{font-weight:600;color:var(--ink)}@media(max-width:768px){.cmp-table{font-size:13px}.cmp-table th,.cmp-table td{padding:9px 10px}}</style>

<section class="gs-recap">
  <div class="container">
    <div style="max-width: 760px;">
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 24px;">Agentic AI is the fastest growing idea in software and one of the most misused. The honest version, the one you learn from cleaning up agent projects rather than demoing them, is narrower and more useful than the hype. Here it is, from a team that ships these into production for a living.</p>

      <h2 style="font-size: 22px; margin-bottom: 12px;">What is agentic AI?</h2>
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 24px;">Agentic AI is software where a model decides its own path through a task, choosing which tools to call and looping until it judges the work done, rather than following steps a human wrote in advance. That autonomy is the whole definition, and it is also the whole cost: maximum flexibility comes with maximum latency, maximum token spend, and maximum unpredictability. An AI agent is worth that trade only when the task genuinely cannot be specified in advance.</p>

      <h2 style="font-size: 22px; margin-bottom: 12px;">The types of AI agents, as a ladder</h2>
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 16px;">It helps to see agentic AI as rungs on a ladder, from least to most autonomous. Climb only as high as the task demands.</p>
      <table class="cmp-table">
        <tr><th>Rung</th><th>What it is</th><th>When it fits</th></tr>
        <tr><td>Single call</td><td>One model call, one output. No control flow.</td><td>Classification, extraction, a known transformation.</td></tr>
        <tr><td>Chain</td><td>A fixed sequence of calls you wrote.</td><td>Steps are known and stable. Most "AI features" live here.</td></tr>
        <tr><td>Router / branch</td><td>The model picks one of a few predefined branches.</td><td>A handful of knowable paths. Predictable, debuggable.</td></tr>
        <tr><td>Agent</td><td>The model decides its own trajectory, using tools, looping until done.</td><td>Multi-step in a way you genuinely cannot specify in advance.</td></tr>
      </table>
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 24px;">If you can draw the flowchart, you do not have an agent problem. You have a flowchart. Most workflows people call agentic are chains or routers wearing a costume.</p>

      <h2 style="font-size: 22px; margin-bottom: 12px;">When to build an AI agent (the four-question test)</h2>
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 16px;">Before committing to an agent, run the task through four questions. If any one is a no, climb back down the ladder.</p>
      <table class="cmp-table">
        <tr><th>Question</th><th>Why it decides</th></tr>
        <tr><td>Complexity</td><td>Is this multi-step in a way you cannot fully specify in advance? If you can draw it, build the flowchart, not the agent.</td></tr>
        <tr><td>Value</td><td>Does the outcome justify an agent's higher cost and slower response? One that saves four minutes a day is not worth the token bill.</td></tr>
        <tr><td>Viability</td><td>Is the model actually good at this task today, not in the demo? An agentic loop does not fix a capability gap, it fails more elaborately.</td></tr>
        <tr><td>Cost of error</td><td>When it gets it wrong, can you catch and recover? A test, a review step, a rollback? Or does a wrong answer book a truck against a date that does not exist?</td></tr>
      </table>

      <h2 style="font-size: 22px; margin-bottom: 12px;">Why agentic AI projects fail in production</h2>
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 24px;">The agent framing lets teams skip the actual engineering. Because they decided up front that the model would figure out the steps, they never wrote the steps, and never asked what should happen at the hard case: the invalid record, the failed lookup, the moment the system should stop and ask a person. The agent fills that gap the way agents fill gaps, with confident improvisation. Improvisation is wonderful for open-ended problems and catastrophic for closed ones. This is why <a href="/why-ai-pilots-fail/">most AI pilots die between the demo and production</a>: not the model, the missing engineering the agent framing hid.</p>

      <h2 style="font-size: 22px; margin-bottom: 12px;">What it takes to ship one</h2>
      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 24px;">A production system that uses agentic AI is mostly plumbing with a few agentic rooms. That ratio is not a failure of ambition, it is what shipping looks like. The discipline of climbing only as high as the task demands is the difference between a system that ships and a system that loops. Getting there needs an engineer who owns the outcome inside your codebase and data, not a proof of concept: a <a href="/forward-deployed-ai-engineer-vs-hiring/">forward deployed engineer</a> who builds it to production, with the hard cases handled on purpose.</p>

      <p style="color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 28px;">The full method is in <em>Shipping Agents: the engineering discipline behind production AI</em>, and the fastest way to know which of your workflows actually warrant an agent is the <a href="/ai-readiness-assessment/">AI Readiness Assessment</a>: two weeks, $2,500, a ranked plan with the build path for each one.</p>

      <div class="gs-cta-row" style="display:flex;gap:12px;flex-wrap:wrap;">
        <a href="/ai-readiness-assessment/" class="btn-primary">Get your AI Readiness Assessment</a>
        <a href="" class="btn-secondary">Book a 30 min call</a>
      </div>
    </div>
  </div>
</section>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    { "@type": "Question", "name": "What is agentic AI?", "acceptedAnswer": { "@type": "Answer", "text": "Agentic AI is software where a model decides its own path through a task, choosing which tools to call and looping until it judges the work done, rather than following steps a human wrote in advance. That autonomy is the definition and the cost: maximum flexibility with maximum latency, token spend, and unpredictability. An AI agent is worth it only when the task genuinely cannot be specified in advance." } },
    { "@type": "Question", "name": "What are the types of AI agents?", "acceptedAnswer": { "@type": "Answer", "text": "Think of them as a ladder from least to most autonomous: a single model call; a fixed chain of calls; a router where the model picks one of a few predefined branches; and a full agent where the model decides its own trajectory using tools and loops until done. Climb only as high as the task demands. If you can draw the flowchart, you have a flowchart, not an agent." } },
    { "@type": "Question", "name": "When should you build an AI agent instead of a workflow?", "acceptedAnswer": { "@type": "Answer", "text": "Run the task through four questions: is it multi-step in a way you cannot specify in advance; does the outcome justify the higher cost and latency; is the model actually good at it today; and can you catch and recover when it gets it wrong. If any one is a no, use a workflow. Most tasks people call agentic should be workflows." } },
    { "@type": "Question", "name": "Why do agentic AI projects fail in production?", "acceptedAnswer": { "@type": "Answer", "text": "The agent framing lets teams skip the engineering. Deciding up front that the model will figure out the steps means nobody writes the steps or handles the hard cases, the invalid record or the failed lookup where the system should stop and ask a person. The agent fills that gap with confident improvisation, which is catastrophic for closed tasks. The failure is the missing engineering, not the model." } }
  ]
}
</script>
