Hi,
You just need to build a "Worker Sanctuary" for that
If more help is needed you can use the "Help" menu in game, there's a tutorial "How to automatize work?" in it. ("Help" is located at the top left of the screen, under the time button)
There's an help menu in the Worker Sanctuary too, to help you use it. ("help" is located next to the closing button)