ai tool integration into legacy systems