In The_Day_the_Earth_Stood_Still an ultimatum is given by an AI bot through its humanoid assistant.
In Oblivion, much of the worlds surface has been attacked and altered by an AI entity.
1940 https://en.wikipedia.org/wiki/Farewell_to_the_Master#Plot_summary
https://apolloreborn.blogspot.com/2013/01/farewell-to-master.html
https://www.goodreads.com/book/show/20415807-farewell-to-the-master
http://www.digital-eel.com/blog/library/Farewell_to_the_Master.pdf
https://www.goodreads.com/book/show/8710039-oblivion
https://www.syfy.com/syfy-wire/oblivion-director-joseph-kosinski-film-retrospective
https://en.wikipedia.org/wiki/Joseph_Kosinski#Filmography