AI Agents vs Agentic AI
The step from applications that answer to applications that act - chatbot, tool-using assistant, AI agent and agentic AI, with the definitions and the worked example from the lesson.
Open any AI chat application and ask it this:
How do I deploy a Java app on AWS?
The lesson asks Gemini this question. The answer is long and good. It names four ways to deploy, from Elastic Beanstalk to plain EC2, explains each one and ends with a comparison table.
Now ask yourself one question. Did it deploy anything?
No. It explained how you can do it. It generated text. To really deploy, something would have to look at your application, understand its structure, pick a way, run the steps and check the result. That is the difference between answering and acting, and it is where AI agents and agentic AI begin.
Four levels
The lesson's whiteboard shows four rows: chatbot, tool-using assistant, AI agent and agentic workflow. Its caption is worth reading first:
A conceptual progression, not four mutually exclusive technologies.
Each level includes the one before it.
| Level | Flow | What it does | Where you built it in this course |
|---|---|---|---|
| Chatbot | User question, LLM, answer | Answers questions from what the model learned in training | Your First LangChain4j Application |
| Tool-using assistant | User question, LLM with a tool, answer | Can fetch information or perform actions through tools that you provide | Tool Calling and MCP |
| AI agent | Goal, then decide, act and observe, repeated until the goal is met | Can make decisions and work toward a goal | The next lessons |
| Agentic workflow, the agentic AI level | Goal, coordinated steps or multiple agents, verify, result | Systems designed to coordinate these decisions and actions to complete tasks | The next lessons |
The first two rows start with a user question. The last two start with a goal. That change of word is the heart of the matter. A question wants an answer. A goal wants a result, and reaching it can take several steps that nobody listed in advance.
The two definitions
The lesson writes both definitions on the whiteboard.
AI agent: An AI agent is a system that uses an AI model to make decisions and perform actions toward a goal, within the permissions and constraints provided to it.
Three parts of this sentence carry the meaning:
| Part | Meaning |
|---|---|
| "uses an AI model to make decisions" | The model decides what to do next: call a tool, search documents, ask another agent, or answer. You did not write that decision as an if statement |
| "perform actions toward a goal" | It does not stop at text. It does something, and what it does serves a goal |
| "within the permissions and constraints provided to it" | You decide what it may touch. An agent is powerful only as far as you allow |
Agentic AI: It is a broader approach to building AI systems that can plan, act, use tools, respond to feedback, and coordinate work with varying degrees of autonomy.
So an AI agent is a thing, one unit that decides and acts. Agentic AI is an approach, a way of building whole systems out of such behaviour.
Is agentic AI always many agents?
A common assumption is that "agentic" means "multi-agent". The lesson corrects it clearly:
- An agentic system can have a single agent. If that one agent plans, uses tools, searches documents and works step by step toward a goal, the system is agentic.
- In practice, such systems often have several agents that work together, each with its own job.
What makes a system agentic is the behaviour, deciding and acting toward a goal, and not the number of agents.
A worked example
A user writes:
My application is down. Find out what happened.
A chatbot would answer with a list of common reasons why applications go down. An agent treats the sentence as a goal: investigate the application failure.
| Step | Action |
|---|---|
| 1 | Inspect the logs |
| 2 | Identify the cause |
| 3 | Propose a fix, or apply it |
| 4 | Verify the application |
| If the check fails | Reassess and investigate again, starting at step 1 |
| If the check passes | Report the outcome back to the user |
Two details of this picture matter.
The loop. The agent checks its own work. If the application is still down after the fix, it does not report success. It goes around again. This is the "observe" in decide, act, observe.
Propose or apply. Step 3 has two versions. The agent can apply the fix itself, or it can propose the fix and wait for a person to say "go ahead". The second version is called human in the loop. For actions that are hard to undo, it is the sensible default.
What we have built so far, honestly
The lesson is direct about the applications of the earlier chapters. They were AI powered. Some of them called tools, and some used the tools of an MCP server. And still, in the end, each of them produced one text answer to one question. They did not pursue a goal over several steps, and they did not check their own results.
That is not a weakness of those applications. Most useful AI features are exactly that. But when a task needs several steps and decisions, you move toward agents.
The summary ladder
The last slide of the lesson stacks the four levels with one line each:
| Level | In one line |
|---|---|
| Chatbot | Answers questions. |
| Tool-using assistant | Can fetch information or perform actions. |
| AI agent | Can make decisions and work toward a goal. |
| Agentic AI | Designing systems that coordinate these decisions and actions to complete tasks. |
How this maps to LangChain4j
The next lessons use the langchain4j-agentic module. This is where each idea of this page turns into code:
| Idea | Lesson |
|---|---|
| One agent with one job | Your First AI Agent |
| Two agents, coordinated by hand | Multi-Agent Systems |
| Agents coordinated by a fixed workflow | Agentic Workflows |
| A model that decides which agent to use | Supervisor Agents |
| Agents, a supervisor and MCP tools in one application | Project: AI Course Support Assistant |
Additions beyond the lesson
Autonomy is a dial. The definition says "varying degrees of autonomy". A fixed sequence of two agents has very little autonomy: you decided the order. A supervisor that chooses among agents has more. An agent that plans its own steps and loops until it is satisfied has the most. More autonomy means more flexibility, and also less predictability, higher cost and harder testing. Choose the lowest level that solves the problem. A plain workflow is often the right answer.
Agents multiply cost and time. One agentic request can cause many model calls: planning, each step, each check. The token counts from Response Metadata and Token Usage add up quickly. Measure them.
Permissions are the real safety mechanism. The definition ends with "within the permissions and constraints provided to it" for a reason. An instruction in a prompt can be ignored or overridden by cleverly written input. A permission that the agent does not have cannot be. Give an agent only the tools it needs, with the narrowest rights, and require a human decision before anything destructive.
Check your understanding
| Question | Answer |
|---|---|
| Gemini explains four ways to deploy on AWS. Which level is that? | Chatbot. It answered, and did nothing |
| An assistant looks up a course price with a tool and answers. Which level? | Tool-using assistant |
| What do the agent rows start with, in place of a user question? | A goal |
| Can a system with one agent be called agentic? | Yes |
| What does "human in the loop" mean? | A person approves an action before the agent performs it |
Try It Yourself
- Ask a chat application how to do a task that takes several steps. Mark every step that you would still have to do yourself.
- Take the "application is down" example and write down which tools the agent would need for each of the four steps.
- For each of those tools, decide whether the agent may use it freely or needs human approval.
- Sort these into the four levels: a FAQ bot, a bot that checks an order status through an API, a system that books a complete trip and rebooks when a flight is cancelled.
- Think of a task in your own work that looks like a goal and not like a question. Sketch its decide, act and observe steps.
Official references
- LangChain4j: agents and agentic AI
- Anthropic: building effective agents
- OpenAI: a practical guide to building agents
Written By: Shramik Masti
How is this guide?
Last updated on
Running LLMs Locally with Ollama
Install Ollama, pull and run an open-weight model on your own machine, and connect a LangChain4j application to it with OllamaChatModel, without an API key.
Your First AI Agent
Build a first agent with the langchain4j-agentic module - an interface with the @Agent annotation, built with AgenticServices.agentBuilder - and understand what the description and the output key are for.
