transitioning from SaaS to AI agents