Artificial intelligence

Artificial intelligence is generally abbreviated as AI, and tries to describe the act of instilling intelligent behavior on computer-generated artifacts.

In other words, routines are coded that specify what the AI of an in-game NPC might follow once their script is interrupted by an event such as aggro.