I love Daemon/FreedomTM.[0] Gotta clarify a bit, even though it's just fiction. It wasn't a rogue AI; it was specifically designed by a famous video game developer to implement his general vision of how the world should operate, activated upon news of his death (a cron job was monitoring news websites for keywords).

The book called it a "narrow AI"; it was based on AI(s) from his games, just treating Earth as the game world, and recruiting humans for physical and mental work, with loyalty and honesty enforced by fMRI scans.

For another great fictional portrayal of AI, see Person of Interest[1]; it starts as a crime procedural with an AI-flavored twist, and ended up being considered by many critics the best sci-fi show on broadcast TV.

[0] https://en.wikipedia.org/wiki/Daemon_(novel)

[1] https://en.wikipedia.org/wiki/Person_of_Interest_(TV_series)