Integrating AI for Enhanced Robotic Functionality