Artificial intelligence in humanoid robots serves multiple roles: high-level task planning (understanding what needs to be done), perception (recognizing objects, people, and environments), manipulation planning (figuring out how to grasp and move objects), and social interaction (understanding speech, gestures, and context). Modern humanoids increasingly use large language models and vision-language models for task understanding, allowing them to interpret natural language instructions and generalize to new tasks without explicit programming for each scenario.