The Convergence of IoT, Automation and Artificial Intelligence