If you want the AI to have custom behavior, or build custom buildings and such, you can use it.
You can make an AI that does things in the sequence of your liking. Building is like a priority list, it starts with the things on top and goes down from there. Attacking like a sequence.
Its pretty intuitive, you should just try and play with it a bit.
AI Editor Guide