Well, the most important things the AI have to do is
first Possision it's army right, a well placed army can win a battle before it starts.
The second is adapt to your moves, if it sees a corps in trouble then it has to do something about it.
Third. eventive attack, not only the same attack over and over again