Duck
AI Tools5 min read

Understanding ai agent types

Samet Turan— Editor··5 min read

Learn the main ai agent types, see a real n8n lead‑qualifier example, and discover which blueprint saves you time as a solo operator.

You keep hearing about ai agent types but none of the guides tell you which one actually works for a solo operator juggling client work, invoices, and outreach. After reading this, you’ll be able to pick a type, sketch a simple prompt, and know where it breaks.

What most guides get wrong about ai agent types

Most articles list dozens of agent types and then leave you guessing which one fits a real workflow. They treat the choice like a menu instead of a decision based on constraints like cost, latency, and data privacy. In practice you only need three categories: reactive agents, planning agents, and learning agents. Anything else is a variation that adds complexity without clear benefit for a solo operator.

Reactive agents respond to a single input with a fixed rule or a simple LLM call. Planning agents break a goal into steps, often using a chain‑of‑thought prompt. Learning agents update their behavior over time, usually with fine‑tuning or retrieval‑augmented generation. If you try to sell a learning agent to a client who just wants a quick email responder you’ll waste money and time.

I’ve seen guides push the latest “multi‑modal reasoning” agent as the answer for everything. That’s overkill for a freelancer who only needs to parse form submissions and send a follow‑up.

A concrete named example: building a lead‑qualifier agent with n8n workflows and GPT-4

Let’s walk through a real setup I use for qualifying inbound leads from a website form. The agent checks the form data, asks a clarification question if needed, and then scores the lead on a scale of 0‑100.

  1. Create a new workflow in n8n and add a Webhook trigger that captures the form POST.
  2. Add a Function node that extracts the fields you need: name, email, company, and message.
  3. Add an LLM node (choose OpenAI) with the following prompt:

You are a lead qualification assistant. Given the following lead details:
Name: {{ $json["name"] }}
Email: {{ $json["email"] }}
Company: {{ $json["company"] }}
Message: {{ $json["message"] }}

First, decide if the message is spam. If yes, return {"spam": true}. If not, ask one clarification question that would help you score the lead better. Return {"spam": false, "question": "your question"}.

If the LLM returns a question, send it back to the lead via email and wait for a reply. When the reply arrives, run a second LLM call with a scoring prompt:

Based on the lead details and the answer to your clarification question, produce a score from 0 to 100 where 0 is unlikely to buy and 100 is ready to talk now. Return only the number.

Finally, use an IF node to route the lead: scores above 70 go to your CRM, scores 40‑70 go to a nurture sequence, and below 40 go to a cold‑email list.

This example shows how a planning agent (the two‑step LLM chain) works in practice. The whole flow runs in under two seconds and costs roughly $0.006 per execution at GPT-4‑turbo pricing.

I love that n8n’s UI lets you see each step’s output in real time, which makes debugging a breeze. The built‑in error handling also retries failed HTTP calls automatically.

My gripe is that the OpenAI node in n8n hides the token usage unless you open the execution log, which is annoying when you’re trying to keep an eye on costs.

Price opinion: the n8n starter plan at $29/mo is fair for a solo operator who runs a few workflows a day; the $99/mo team plan feels steep unless you need collaborative editing.

How to debug when this breaks

When the agent returns unexpected output, start by checking the webhook payload. A missing field will cause the Function node to pass undefined to the LLM, leading to vague answers. Add a quick IF node that validates required fields and stops the workflow with a clear error message.

If the LLM returns malformed JSON, wrap the prompt in a instruction to output only valid JSON and then use a JSON parse node. I’ve seen the model add extra text like “Here is the result:” before the JSON, which breaks the parse.

When scores seem off, look at the clarification question. A poorly phrased question can lead to irrelevant answers that confuse the scoring step. Rewrite the question to be specific and binary if possible.

Finally, monitor token usage. A sudden spike often means the prompt grew unintentionally—maybe you added a long example that the model keeps repeating. Trim the prompt and watch the cost drop.

Why do some ai agent types fail at scale?

Reactive agents scale well because they are stateless and cheap to run. Planning agents start to choke when the chain gets longer than three or four steps; each extra LLM call adds latency and cost. Learning agents need storage for embeddings or fine‑tuning weights, which can become a bottleneck if you don’t use a managed vector database.

I once tried to run a planning agent that pulled data from five different APIs, then synthesized a report. At ten concurrent runs the workflow queue backed up and the response time went from two seconds to over thirty seconds. The fix was to split the workflow into two: a fast reactive agent that gathers the data, and a separate planning agent that runs on a schedule.

If you expect more than twenty executions per hour, consider moving the heavy LLM steps to a background job and keep the front‑end reactive agent lightweight.

My gripe and love with current agent builders

Gripe: Most low‑code agent builders lock you into their proprietary runtime, making it hard to move a workflow to another platform without rebuilding.

Love: The ability to version control n8n workflows as JSON files lets me track changes in Git and roll back a bad deploy in seconds.

One‑sentence paragraph: I still think the free tier of n8n is enough for experimentation but not for production.

We cover this in more depth elsewhere — deeper coverage of AI agent platforms.

If you’d rather skip the build and deploy a working version in an afternoon, we’ve packaged this workflow as a blueprint at deepusecase.com/vault/ai-agent-builder-kit.

— The Colophon

One AI tool. Tested. Reviewed.
In your inbox every Sunday.

~3 minute read. Real outcomes from operators, not marketers.

Free. One email per Sunday. Unsubscribe in one click.