Hello! Are you playing in autonomous mode, or command mode?
If you're playing in command mode (which is the default, so you probably are) you can design a base using the process designer, then use "autocode" (which is a button in the designer's main menu) to automatically generate AI code for the base.
If you're playing in autonomous mode, or if you're trying to design a base for an enemy that will operate by itself, it gets a bit more complicated and you'll need to do some coding.