Is there a way to persuade AI to build walls?

I’m not sure what to look out for specifically in the content editor but anyone know of a certain way to persuade AI to build walls or atleast make it a priority?

As far as I know, if you rush them early, they’ll build walls. If you rush them mid-game, they’ll be more likely to build lots of keeps and towers.