AI stands for Artificial Intelligence. In practice it covers anything that gives non-player characters the appearance of thinking — enemies that flank you, allies that follow orders, shopkeepers with schedules. The exact behaviour varies from game to game, but the abbreviation always means the same thing.