Your account must have already completed any tutorial
Your city level must be at least 4
Dragon Trail: The first challenge must have been done manually, so that the bot can collect rewards.
Alliance: If you joined an alliance for the first time, open it manually once and finish the tutorial.
Sometimes the game could display a tutorial sequence or other rare intermediate screens that the bot doesen't recognize (yet). In this case the bot may restart the game after a while and then continue botting again.
The bot currently only upgrades the castle and its dependencies. Other buildings must be upgraded manually for now.