https://en.wikipedia.org/wiki/Metropolis_(1927_film) was about a female robot that enthralled and gained control over the working class, leading them into rebellion and the destruction of society. The idea goes further back from Frankenstein' monster to the Golem. Create something powerful and independent which gets out of control. Anything could be substituted.