That plot summary is... dark. Does anyone know how long the story is? Most of the copies I found online are collections of short stories.
CW though, it is pretty grim. Very early example of the "AI takes over the world, decides humans are redundant" trope though. (Maybe the first?)