In Frank Herbert's Dune novels, there's a historical footnote that plays in one of the underlying themes of the series. There was a time in the history of humanity, still in our future, when humanity dev thinking machines, computers with human-like minds that quickly replaced human labor in almost every sense. In Herbert's vision, this leads to a brief utopia for humanity. But it doesn't last, because very quickly "people became slaves to other men with machines".