Help Creating an AI NPC

Is there any documentation on how to create an AI NPC?

I am trying to create an enemy for my player to shoot at.

Thanks.