What is the line between AI and Machine learning?

In case you don’t know, ChatGPT isn’t AI. It’s machine learning. Or is it?

We give a huge data set to it and it gives responses from that. So there’s no ‘intelligence’ in it right. But when you think about it, humans also learn that way right? But we are intelligent. So is it ‘Emotions’ that differentiate AI from Machine learning?