You can make slaves recruit and build buildings. You need to make the necessary changes in descr_buildings and make them able to exit settlements in campaign_db.
For an example you can look at my VanillaMod files.