Artificial intelligence is a recurrent theme in science fiction, whether utopian, emphasising the potential benefits, or dystopian, emphasising the dangers.
The notion of machines with human-like intelligence dates back at least to Samuel Butler's... Wikipedia