Some of the themes in Isaac Asimov's robot stories ran along similar lines.
The entire series was exploring the unintended consequences of AI.