If you plan to have the bot unload to the nearby trading center, ensure to set your Mining system so the bot knows where to go back and mine
Here's an example of a config where you are mining in the Brapelille system and like to unload cargo to nearby trading center:
