Need help with a behavior tree tasks.

I am trying to create a behavior tree task for my AI, which will check if a player is overlapping with my AI’s spherical collision. So far, I have that function working inside of my AI’s blueprint.
This is how it looks:

Any suggestions on how can I move this function from my AI’s blueprint, into the BTTask?

P.S. I am very new to UE4 and still learning blueprints and behavior trees