All you have to do is attach the function call to the OnBeginOverlap node. If it is part of an actor you have to do is cast the actor to the correct class and call the function. If you have many different classes without a common parent class you can create an interface and implement it in every class that should be interactable.
HTH