Integrate the AI into the GUI