Intro to AI

Hey everyone, I’m still on the first chapter and have an inquiry about whether AI is to mimic human behaviour in its responses. However, it still has pre-generated answers to the queries that one might have, so is it to follow human behaviour or to provide the most intellectually sound response that it has already pre-programmed?