Banks are experimenting with AI-driven advisers, factories are turning to robotic process automation, and even law firms are outsourcing research to algorithms that never sleep.