Legacy system integration with AI