Generative AI vs Agentic AI: Producing Content vs Taking Actions
Learn the difference between AI that produces content from a prompt and AI agents that plan steps, use tools and act toward a goal.
Computer Science
By the end of this lesson you will be able to explain the difference between a generative AI model and an agentic AI system. You will see one request handled both ways, read a short code sketch of an agent loop, and practise sorting everyday examples into the right category.
What generative AI does
An AI model is a computer program that has learned patterns from a large amount of example data. A generative AI model is a model that produces new content, such as text, images, audio or code. You give it a prompt, which is the instruction or question you type in, and it gives you back an output.
Chat assistants that write essays, image tools that draw a picture from a description, and coding assistants that suggest the next lines of a program are all examples. The key idea is simple: one prompt goes in, one piece of content comes out. The model does not go and do anything in the world. It only produces content, and you decide what to do with it.
Because a generative model works only from patterns it learned and the words in your prompt, it does not automatically know facts about your life, such as what is in your diary next week. If that information is not in the prompt, the model has to guess or leave it out.
What agentic AI adds
An agentic AI system, often just called an AI agent, uses a generative model as its decision maker, but wraps it in extra machinery so it can work toward a goal over several steps. A goal is the result you want, for example "book a meeting that suits everyone".
Three ingredients make a system agentic. First, tools: a tool is a function the agent is allowed to use, such as searching the web, reading a calendar, running code or sending an email. Second, a loop: the agent repeats a cycle of deciding, acting and checking the result. Third, actions: the agent's tool calls can change things outside the conversation, not just produce words.
Worked example: planning a study timetable
Suppose you ask: "Plan my study timetable for next week. I have exams in maths and history." Let us watch both kinds of AI handle it.
The generative way. The model reads your prompt once and writes a single answer, perhaps: "Monday: maths 4 to 6pm. Tuesday: history 4 to 6pm" and so on. It may look sensible, but the model has no idea that you play football on Monday afternoons or have a dentist appointment on Wednesday. You must check the plan yourself and fix any clashes.
The agentic way. The agent starts with the same goal but works in steps:
- Plan: the model decides it first needs to know when you are free.
- Act: it calls a calendar tool and reads your events for the week.
- Observe: it sees football on Monday and the dentist on Wednesday.
- Draft: it writes a timetable that avoids those times.
- Check: it compares the draft with the calendar again and notices Wednesday's session is too close to the appointment.
- Revise: it moves that session, confirms there are no clashes, and reports the final plan, possibly asking your permission before adding it to your calendar.
Below is a very simplified Python sketch of that idea. In a real agent, a model would make the decisions; here a simple if statement stands in for the model so the structure is easy to see.
calendar = {"Mon": ["football"], "Tue": [], "Wed": ["dentist"]}
def check_calendar(day): # a tool the agent can call
return calendar.get(day, [])
def study_agent(days):
plan = {}
for day in days:
busy = check_calendar(day) # act, then observe
if busy:
plan[day] = "short review (20 min)"
else:
plan[day] = "full session (60 min)"
return plan
print(study_agent(["Mon", "Tue", "Wed"]))Running this prints a plan with short reviews on Monday and Wednesday and a full session on Tuesday. Notice the difference: the generative answer was one guess, while the agent gathered real information and shaped its result around it.
How to tell them apart
When you meet a new AI product, ask three questions. Does it only produce content, or can it use tools? Does it answer once, or does it take several steps and check its own progress? Can it change something in the world, such as sending a message, editing a file or making a booking? If the answers lean toward tools, steps and actions, you are looking at an agent.
The line is not always sharp. Many chat assistants can now search the web before answering, which is a small step toward being agentic. It helps to think of a scale, from pure content generation at one end to fully independent agents at the other.
This difference matters for safety. A mistake in generated text is something you can spot and ignore. A mistake by an agent may already have happened, such as an email sent to the wrong person. That is why well designed agents limit which tools they can use and ask a person to approve important actions.
Try it yourself
- Sort each scenario as generative or agentic, and explain why: (a) a tool that writes a poem about autumn, (b) an assistant that finds a free time in three people's calendars and sends them a meeting invite, (c) a model that turns a sketch description into an image.
- A coding assistant suggests code, then runs the tests, reads the errors and fixes its own code until the tests pass. Which parts of the agent loop diagram match each of those steps?
- Name two tools you would give an agent whose goal is "plan a cheap weekend trip", and one action you would want it to ask your permission for.
- Change the Python sketch so that a day with two or more events gets "rest day" instead of a study session. Test it by adding a second event to Monday.
- In your own words, explain why a generated timetable might clash with your plans while an agent's timetable is less likely to.
