Brolly AI Generative AI

Agentic AI vs Generative AI: Differences, Examples and When to Use Each

Generative AI answers a prompt. Agentic AI uses a generative model to pursue a goal over several steps, calling tools and checking results. Here is how they differ and how to build both safely.

Generative AI creates content, such as text, code or images, in response to a prompt: you ask, it answers, and a person decides what happens next. Agentic AI builds on Generative AI. It wraps a model in a loop so the system can work towards a goal over several steps: it plans, calls tools such as search, databases or APIs, reads the results, decides the next step and stops when the goal is met or it needs a person. Generative AI is the engine; an agent is a system that gives that engine tools, memory and permission to act. Use plain Generative AI when one good response is enough, and an agent only when the task genuinely needs several steps and actions that you can limit, log and check.

· By Brolly AI Team · 16 min read

The one-line difference: responding versus acting

The clearest way to separate the two is to look at what the system is allowed to do after it produces text. A Generative AI assistant writes a reply, a summary, some code or an image, and then stops. Whatever happens next, such as sending the email, running the code or updating a record, is done by a person.

An agentic system is given a goal rather than a single question, and the authority to take steps towards it. If you ask it to “find our three oldest unpaid invoices and draft reminders”, it can query the billing system, sort the results, draft three emails and put them in a review queue, deciding the order of those steps itself.

Agentic AI is therefore not a different kind of model. Almost every agent today uses a large language model as its reasoning component. What changes is the software around the model: a loop, a set of tools, some memory of what has already happened, and rules about what it may and may not do.

The one-line difference: responding versus acting
AspectGenerative AIAgentic AI
Starting pointA prompt or questionA goal, plus the tools and permissions to reach it
Typical outputText, code, images, audio or a structured draftCompleted steps: records updated, files created, tickets raised, plus a report
Number of model callsUsually one per requestMany, in a loop, until the goal is met or a limit is reached
Who takes actionA person reads the output and actsThe system acts through tools, within limits set by people
Main componentsModel, prompt, optional retrieved contextModel, tools, memory, planner or loop, guardrails, logs
Typical failureA fluent but wrong or unsupported answerA wrong action, a loop that never ends, or a tool misused after a bad step
How it is judgedQuality and accuracy of one responseWhether the task finished correctly, safely, within cost and time

Beginner: what Generative AI does on its own

A generative model, such as a large language model, is trained on a very large collection of text and code to predict the next small piece of text, called a token. When you send it a prompt, it uses those learned patterns to write a response one token at a time. Image and audio models work on the same idea with different kinds of data.

Used directly, a model like this is a powerful writing and reasoning assistant. It can explain a concept, summarise a document you paste in, translate a message, suggest code or brainstorm ideas. Everything it knows comes from its training data and whatever you put in the prompt. It cannot look up today’s data, open a file on your computer or press a button in another application unless software gives it a way to do so.

That limitation is also a safety feature. Because a person reads the answer before anything happens, a mistake costs time but rarely causes damage. For many everyday tasks, a well-written prompt and a careful reader are all you need.

  • Prompt: the instruction and context you give the model.
  • Response: the content the model generates, one token at a time.
  • Context window: how much text the model can consider in one request.
  • Retrieval: optionally adding relevant documents to the prompt so answers are grounded in your own information.

Sources: Vaswani et al.: Attention Is All You Need; Anthropic: prompt engineering overview. Checked 23 October 2026.

Beginner: what makes a system agentic

An AI agent is software that uses a model to decide what to do next, does it, looks at the result and repeats. A simple analogy: Generative AI is a skilled writer who answers your letter. An agent is an assistant who is given a task, a phone, a computer and a list of rules, and who keeps working on the task until it is done or they need to ask you something.

Four building blocks turn a model into an agent. Tools are functions the model may ask to run, such as “search the knowledge base”, “get order status” or “create a calendar event”. A loop sends each tool result back to the model so it can choose the next step. Memory keeps track of what has already happened, both within the task and, sometimes, across tasks. Guardrails limit which tools can be used, with what inputs, how many times, and when a person must approve.

Importantly, the model never runs a tool itself. It produces a structured request, such as a function name and arguments. Your application code checks that request, runs the tool if it is allowed, and returns the result. This is where safety and control live.

  • Goal: what the agent should achieve, with clear success criteria.
  • Tools: the actions it may request, each with defined inputs and outputs.
  • Observation: the result of a tool call, fed back to the model.
  • Stopping rule: done, out of steps, out of budget, or needs a human.

The same task, two ways

Consider a support team that receives a message: “My order hasn’t arrived and I was charged twice.” Seeing how each approach handles it makes the difference concrete.

With Generative AI, a support agent pastes the message and order details into an assistant and asks for a reply. The model drafts a polite, accurate-sounding response. The person checks the order system, confirms the duplicate charge, issues the refund and edits the draft before sending it. The model saved writing time; the person did every action.

With an agentic system, the message arrives in a ticket queue. The agent looks up the customer’s orders, finds the shipment status from the courier, checks the payment records and confirms two identical charges. It is allowed to raise a refund request but not to approve it, so it creates one, attaches the evidence, drafts a reply explaining what will happen and routes the ticket to a person for one-click approval. The person now reviews a prepared case instead of investigating from scratch.

Both are useful. The agentic version saves more effort, but it needs access to three systems, carefully limited permissions, logging and an approval step. If the volume of such tickets is low, the simpler generative assistant may be the better investment.

Examples of each in real work

Examples of each in real work
AreaGenerative AI exampleAgentic AI example
Software developmentExplain an error message or suggest a functionRead a failing test, edit code, run the tests again and open a pull request for review
Customer supportDraft a reply to a complaintLook up the order, check payments, raise a refund request and route it for approval
Research and analysisSummarise a report you provideSearch approved sources, collect figures, build a comparison table and cite each source
Sales and marketingWrite five subject lines for a campaignPull last quarter’s results, segment the audience, draft variants and schedule an A/B test for sign-off
HR and operationsAnswer a question about leave policyCheck a leave balance, file the request in the HR system and notify the manager
Data workWrite a SQL query from a descriptionRun read-only queries, check the results look sensible, fix errors and produce a chart with notes

Intermediate: how tool calling and the agent loop work

Most model providers now support tool use, also called function calling. You describe each tool to the model with a name, a short description and a schema for its inputs. When the model decides a tool would help, it replies with a structured tool request instead of plain text. Your code runs the tool, sends the result back as a new message, and asks the model to continue.

Repeat that cycle and you have the basic agent loop: think, act, observe, repeat. The loop needs firm limits. Set a maximum number of steps, a time and cost budget, and rules that stop the agent and hand over to a person when something unexpected happens, such as a permission error or two failed attempts at the same step.

Many tasks do not need a fully open loop. A workflow, where the steps and their order are fixed in code and the model only fills in parts of each step, is easier to test and cheaper to run. Use an open-ended agent only where the path genuinely depends on what the system discovers along the way.

# A minimal, bounded agent loop. `llm` is any chat model client with tool support.
TOOLS = {
    "get_order": get_order,                          # read-only
    "get_payments": get_payments,                    # read-only
    "create_refund_request": create_refund_request,  # a person approves it later
}

messages = [system_rules, {"role": "user", "content": ticket_text}]
for step in range(MAX_STEPS):
    reply = llm.chat(messages, tools=tool_schemas(TOOLS))
    if not reply.tool_calls:
        return finish(reply.text)  # the model says the task is done
    for call in reply.tool_calls:
        if call.name not in TOOLS or not valid_args(call):
            return escalate(ticket_text, reason=f"blocked tool call: {call.name}")
        result = TOOLS[call.name](**call.args)
        log(step, call, result)
        messages.append(tool_result_message(call, result))
return escalate(ticket_text, reason="step limit reached")

Sources: Anthropic: prompt engineering overview. Checked 23 October 2026.

Intermediate: common agentic patterns

Agentic systems are easier to design and explain when you name the pattern you are using. These are the ones learners meet most often.

Retrieval-augmented generation (RAG) as a tool

Instead of always adding documents to the prompt, the agent decides when to search, what to search for and whether the results are good enough, searching again with a better query if they are not. Plain RAG is generative; agentic RAG lets the model control the retrieval steps.

Plan and execute

The model first writes a short plan, such as three to five steps, then carries them out one by one, revising the plan if a step fails. Writing the plan down makes the agent’s behaviour easier to review and debug.

Generate, check and revise

One model call produces a draft, and a second call or a deterministic check, such as running tests or validating JSON against a schema, reviews it. The draft is revised until it passes or a limit is reached. Automated checks are more reliable than asking the model whether its own work is correct.

Router and specialists

A first step classifies the request and sends it to a specialised prompt or sub-agent, for example billing, technical support or sales. Each specialist has only the tools it needs, which narrows what can go wrong.

Human in the loop

The agent prepares everything but stops for approval before any action that is costly, irreversible or affects a customer, such as payments, deletions, external emails or code deployment.

Sources: Lewis et al.: Retrieval-Augmented Generation. Checked 23 October 2026.

Intermediate: when to use Generative AI and when to use an agent

Start with the simplest thing that could work. Many projects labelled “agentic” are better as a single well-structured prompt, or as a fixed workflow with one or two model calls. Each extra step adds cost, delay and another place for errors to compound: if every step is right nine times out of ten, a ten-step task finishes correctly only about a third of the time.

Move towards an agent when three things are true together: the task needs several steps whose order depends on intermediate results; those steps involve tools or data the model cannot see in one prompt; and the value of automating the whole task justifies the work of limiting, logging and testing it.

Intermediate: when to use Generative AI and when to use an agent
QuestionIf yes, lean towardsWhy
Is one good response enough to finish the job?Generative AINo actions, fewer failure points, easy to review
Are the steps always the same, in the same order?A fixed workflow with model callsPredictable, testable and cheaper than an open loop
Does the next step depend on what was just found?An agentThe model must decide the path as it goes
Would a wrong action be costly or irreversible?Generative AI, or an agent with human approvalKeep a person as the final decision-maker
Is the task frequent, multi-system and time-consuming?An agent, with limits and logsEnough value to justify the engineering and monitoring

Advanced: architecture of a production agent

A production agent is mostly ordinary software engineering. The model is one component; the reliability comes from what surrounds it. Keep tool definitions small and specific, such as “get_invoice(invoice_id)” rather than “run_sql(query)”, so the agent can only do what you intended. Return compact, structured tool results so the context does not fill with noise.

Treat state explicitly. Store the goal, the plan, each tool call and its result, and the current status outside the model, in your own database or task record. That lets you resume after a failure, retry a single step, show a person exactly what happened and stop a run safely.

Separate reading from writing. Read-only tools can usually run automatically. Tools that change data, spend money or contact people should require approval, idempotency keys so a retry cannot repeat the action twice, and clear limits such as a maximum refund amount.

Use standard interfaces where they help. Protocols such as the Model Context Protocol let one agent use tools exposed by many services through a common format, and frameworks such as LangChain and LangGraph provide loops, state and graph-based workflows. They save effort, but they do not replace your own permission checks, tests and logs.

  • Model layer: one or more models, chosen per step for quality, speed and cost.
  • Tool layer: narrow functions with validated inputs and least-privilege credentials.
  • Orchestration: the loop or graph, step limits, retries and timeouts.
  • State and memory: task records, conversation history and, where needed, long-term memory.
  • Guardrails: allow-lists, approval steps, output validation and spending limits.
  • Observability: traces of every prompt, tool call, result, cost and decision.

Advanced: evaluating agents

Evaluating a generative model usually means scoring individual responses. Evaluating an agent means scoring whole tasks. Build a set of realistic tasks with known correct outcomes, run the agent on each several times, because outputs vary, and measure the task success rate, the number of steps, cost and time per task, and how often it escalated to a person correctly.

Inspect the path, not just the result. An agent that reaches the right answer after calling a write tool it did not need, or after ten unnecessary searches, has a problem that will show up later. Check that it used the expected tools, respected limits and stopped when it should.

Test failure cases deliberately: tools that time out, return errors or empty results, conflicting data, and inputs that try to change the agent’s instructions. Keep these as regression tests, and run them again whenever you change the prompt, the tools or the model version.

Sources: NIST: AI Risk Management Framework. Checked 23 October 2026.

Advanced: security, governance and cost

Giving a model the ability to act raises the stakes of every mistake. The OWASP Top 10 for LLM Applications lists prompt injection and excessive agency among the main risks. Prompt injection happens when text the agent reads, such as a web page, an email or a document, contains instructions that try to change what it does. Excessive agency happens when an agent has more tools, permissions or autonomy than its task needs.

The defences are mostly about limits. Give each agent the fewest tools and the narrowest permissions it needs. Treat everything a tool returns as untrusted data, never as instructions. Validate every tool request in code, require human approval for high-impact actions, and keep secrets out of the model’s context entirely. Log every step so you can audit decisions later.

Plan for cost and governance from the start. Agents can make many model calls per task, so set budgets per run and monitor spending. Assign a responsible owner for each agent, document what it may do, and review its behaviour regularly, following a framework such as the NIST AI Risk Management Framework where your organisation uses one.

Sources: OWASP: Top 10 for LLM Applications; NIST: AI Risk Management Framework. Checked 23 October 2026.

What to learn at each level

What to learn at each level
LevelFocusPractice task
BeginnerHow LLMs work, prompting, Python basics, calling a model API, reading JSONBuild a command-line assistant that summarises a pasted document and returns a fixed JSON format
IntermediateTool calling, RAG, structured outputs, simple workflows, LangChain basicsGive a model two read-only tools, such as weather and calendar lookup, and let it answer questions that need both
AdvancedAgent loops and graphs, state, LangGraph, MCP, evaluation sets, guardrails, observability, cost controlBuild the support-ticket agent above with read-only tools, an approval step for refunds, step limits, traces and a 30-task evaluation set

Common questions

Is agentic AI the same as Generative AI?

No. Generative AI creates content in response to a prompt. Agentic AI is a system that uses a generative model to plan and take steps towards a goal, using tools and checking results. Most agents are built on generative models, so agentic AI depends on Generative AI rather than replacing it.

Is ChatGPT Generative AI or agentic AI?

A chat assistant answering questions is Generative AI. When an assistant is given tools, such as web search, code execution or connections to other apps, and decides on its own to use them over several steps, it is behaving agentically. Many products now offer both modes.

Will agentic AI replace Generative AI?

No. Agents are built on generative models and add tools, memory and control loops around them. Plenty of tasks are still best handled by a single generative response that a person reviews, because it is cheaper, faster and safer.

Do I need to learn Generative AI before agentic AI?

Yes. You need to understand how models respond to prompts, how to call a model API, how retrieval works and how to judge output quality before agents make sense. Python, APIs and JSON are the practical foundations for both.

What tools are used to build AI agents?

Common choices include model APIs with tool calling, frameworks such as LangChain and LangGraph for loops and state, the Model Context Protocol for connecting tools, vector databases for retrieval, and tracing tools for logging and evaluation. Strong permission checks in your own code matter more than the choice of framework.

Are AI agents safe to use in a business?

They can be, when they have narrow permissions, validated tool calls, human approval for high-impact actions, step and cost limits, and full logs. Most problems come from giving an agent more access or autonomy than its task needs.

Bring Us the Problem. We Will Help Define the Right Build.

Tell us what users need to do, what is slowing the business down and what a successful outcome should look like. We will help you identify the appropriate AI, software, product or training pathway.