Robbie the Robot (Forbidden Planet, 1956) "The Robot" (Lost in Space, 1965-1968). Twiki and Dr. Theopolis (Buck Rogers, 1979–1981), Zen[1] and Orac (Blake's 7, 1978-1981), R2-D2 and C3PO (Star Wars, 1977).
Computers were part of public discussion well before the 1980s.
Nixon's famous radio 1974 radio address was about the American right of privacy: "There are, of course, many facts which modern government must know in order to function. As a result, a vast store of personal data has been built up over the years. With the advent of the computer in the 1960's, this data gathering process has become a big business in the United States--over $20 billion a year--and the names of over 150 million Americans are now in computer banks scattered across the country." This lead to the Privacy Act of 1974.
The late 1960s reaction to how computers were used was to bomb and invade data centers. 1970 was "the year of the crisis", according to Computerworld in 1971. https://archive.org/details/sim_computerworld_december-30-19...
[1] "I have failed you. I am sorry." still brings tears to my eyes.
I mean look how most science fiction of the 1980s depicted the world of the future as dominated by Japan... Look at Robocop 3 :)
Computers were then just appearing or increasing in public discussion, along with fears that they'll make humans less human somehow: Like in this Computer Chronicles video about word processing from 1983 at 4:08: "Some writers are concerned that computer assistance may promote dry bland writing."
https://www.youtube.com/watch?v=Jt0OoXluC8g
Terminator appeared in 1984, and the first Alien movie in 1979 had an antagonist android. 2001 A Space Odyssey with a disagreeable AI came out in 1968. All way before the real world had anything remotely close to today's AI: It was a reaction to the appearance of computers themselves.
On the other hand, Star Trek had optimistic AI like Data.
Humankind's own sentient creations leading to the ruin of humans is probably a trope in fiction since thousands of years, with golems or summoned demons etc.