adding an ai chatbot to a legacy product