Certainly they works by manual, in the orignal game,AI will always use summon spell at the first turn(if they are have summoner tag and summon skill),when it turns to custom spell, it didn't work, I don't know why, I think there have to be certain flag to define which spell AI would use.
As I said, the AP cost is already set to 0, and AI prefer walking around till end rather than use the spell.