This was explored a bit in Daniel Suarez’s Daemon/Freedom (tm) series. By a series of small steps, people in a crowd acting on orders from, essentially, an agent assemble a weapon, murder someone, then dispose of the weapon with almost none of them aware of it.
I'd say abstracting it away from ai, Stephen King explored this type of scenario in 'Needful Things'. I bet there is a rich history in literature of exactly this type of thing as it basically boils down to exploration of will vs determinism.
The recent show Mrs. Davis also has a similar concept in which an AI would send random workers with messages to the protagonists, unbeknownst to the workers.