I didn’t know what is an “agent” in this context. So Wikipedia is our friend.
{. In intelligence and artificial intelligence, an intelligent agent (IA) is an agent acting in an intelligent manner; It perceives its environment, takes actions autonomously in order to achieve goals, and may improve its performance with learning or acquiring knowledge. }
More at link.
The difference between Agent and App (macro, etc) seems to be AI utilizes sensors to detect the environment/situation/condition, and respond “intelligently” according to desired parameters.
ralph