How to make monster jump if player is above them?

I’m making some monsters like Jeff the Killer, and when the player jumps onto a part above the monster, I want the monster to jump and continue chasing them. How can I do this? All help is appreciated!