best practices for deploying AI for automation