You basically need all the bot events for this:
I am writing this from the top of my head, so this will be loopy and you will need to apply your knowledge to figure out what to make of it:
OnbotSpawn > bot > changedatablock > turret of your choice
onbotspawn > bot > some set-team event, you can put it to mercenary mode with some add-ons and then just add your BL_ID to the little box on the right.
This is not tested and is written in 5 seconds to give you the basic idea of what events to use. Remember, use blockhead holes and all that shenanigans.
And no, i will not write a 100% dedicated/serious post to a question this simple