In computer science, a software agent is a computer program that acts for a user or another program in a relationship of agency.
The term agent is derived from the Latin agere (to do): an agreement to act on one's behalf. Such "action on behalf of" implies the authority to decide which, if any, action is appropriate. Some agents are colloquially known as bots, from robot. They may be embodied, as when execution is paired with a robot body, or as software such as a chatbot executing on a computer, such as a mobile device, e.g. Siri. Software agents may be autonomous or work together with other agents or people. Software agents interacting with people (e.g. chatbots, human-robot interaction environments) may possess human-like qualities such as natural language understanding and speech, personality or embody humanoid form (see Asimo).
Related and derived concepts include intelligent agents (in particular exhibiting some aspects of artificial intelligence, such as reasoning), autonomous agents (capable of modifying the methods of achieving their objectives), distributed agents (being executed on physically distinct computers), multi-agent systems (distributed agents that work together to achieve an objective that could not be accomplished by a single agent acting alone), and mobile agents (agents that can relocate their execution onto different processors).
The basic attributes of an autonomous software agent are that agents:
are not strictly invoked for a task, but activate themselves,
may reside in wait status on a host, perceiving context,
may get to run status on a host upon starting conditions,
do not require interaction of user,
may invoke other tasks including communication.
The concept of an agent provides a method of describing a complex software entity that is capable of acting with a certain degree of autonomy in order to accomplish tasks on behalf of its host. But unlike objects, which are defined in terms of methods and attributes, an agent is defined in terms of its behavior.
Various authors have proposed different definitions of agents, these commonly include concepts such as:
persistence: code is not executed on demand but runs continuously and decides for itself when it should perform some activity;
autonomy: agents have capabilities of task selection, prioritization, goal-directed behavior, decision-making without human intervention;
social ability: agents are able to engage other components through some sort of communication and coordination, they may collaborate on a task;
reactivity: agents perceive the context in which they operate and react to it appropriately.
All agents are programs, but not all programs are agents. Contrasting the term with related concepts may help clarify its meaning. Franklin & Graesser (1997) discuss four key notions that distinguish agents from arbitrary programs: reaction to the environment, autonomy, goal-orientation and persistence.