How Agent works?

To understand how an AI agent works, let’s look at its four main components — Percept, Action, Goal, and Performance Measure.
We’ll use our favorite example — the Vacuum Cleaner Robot 🧹🤖

1️ Percept — What the Agent Sees 👀

The percept is the input that the agent receives from its environment through sensors.
In our vacuum cleaner world, the robot detects whether the floor is dirty or clean and identifies its location (A or B).

🧩 Example: “The floor at A is dirty.”

It’s like how humans use their eyes to see what’s around before acting.

2️ Action — What the Agent Does 💪

The action is what the agent performs using its actuators (motors or effectors).
Based on its perception, the agent decides what to do next.

🧩 Example: If the floor is dirty → Suck the dirt.
If the floor is clean → Move to the next room.

Just like when we see a messy room and immediately start cleaning — that’s the agent in action!

3️ Goal — What the Agent Wants to Achieve 🎯

Every intelligent agent works toward a goal.
For our vacuum robot, the goal is to keep both rooms clean and maintain a tidy environment.

🧩 Example: “Both A and B should be clean — mission accomplished!”

It’s like your personal mission to keep your study table spotless before exams 😅.

4️ Performance Measure — How Well the Agent Performs

This tells us how efficiently the agent is achieving its goal.
We evaluate it based on the amount of dirt cleaned, the time taken, and how effectively both rooms are cleaned.

🧩 Example: “Did the robot clean both rooms quickly and completely?”

A higher performance means a smarter agent — just like students who finish their homework fast and neatly! 😉

Summary Table of  how agent works

ConceptMeaningExample (Vacuum Cleaner Robot)
PerceptInput received from the environmentDetects if the floor is clean or dirty (A or B)
ActionWhat the agent does using its effectorsCleans if dirty, moves if clean
GoalWhat the agent aims to achieveKeep both rooms clean
Performance MeasureHow success is evaluatedAmount of dirt cleaned and efficiency

everyday examples of agents 

Artificial Intelligence isn’t just found in labs or tech companies — it’s everywhere around us!
From your phone unlocking with your face to Google Maps guiding your trip — all these are agents quietly working behind the scenes.

Let’s look at some everyday examples of agents that make our lives easier 

Table no shows Everyday Examples of AI Agents

AI AgentHow It SensesHow It ActsGoalAI Agent
Google MapsGPS, traffic dataSuggests routeReach fastestGoogle Maps
Self-driving carCameras, radarSteers, brakesDrive safelySelf-driving car
ChatGPT or SiriText or speechGives answersHelp you communicateChatGPT or Siri
Vacuum-cleaner robotDust sensorMoves, sucks dirtKeep room cleanVacuum-cleaner robot

Table no : Everyday Examples of AI Agents