When the workflow is running and it fails at a step it should automatically trigger the AI smart action prior to failing.