When is it better to automate, when is it better to do it manually?

Automate with AI or do it manually by human?