Self-learning system that captures corrections, discovers workflow patterns, and syncs learnings to skills and rules