AI is an acronym for Artificial Intelligence this is defined as "the capability of a machine to imitate intelligent human behavior".
In games, AI makes the NPCs' world flow naturally. AI specifies what the actions of a NPC will be if their script is interrupted by unexpected occurrences, such as aggro or LOS.