AI agent integration legacy systems