Balancing AI and Human Workflows for Secure Automation