UE4 How to make my character detect the Cliff

I use a sphere trace by channel to detect the wall and I can make him grab the ledge. How can I do the same to detect the edge of the cliff when he is on top of it? Please watch the youtube video to know what I mean.