Plots involving some kind of artificial intelligence are even part of soap operas. Here’s how they’ve evolved over the decades.