Tips on making enemy ai

Any tips on how to do this would be highly appreciated.