Deploying AI and exploiting metadata in workflows