An agent is an entity capable of perceiving its environment through sensors and acting upon it through actuators. In AI, agents typically strive to achieve specific goals or optimize a utility function. They can be software-based (like chatbots) or embodied (like robots).