How do I detect collision between two specific blueprints?

I have a ball and a wall and a box, all blueprints. How to I set up specific interaction when ball hits the box, and when it hits the wall separately? I can’t seem to find way to refer to particular blueprints in hit or overlap events. How do I check which one ball touched and branch decisions from that?

You need a collision box ( or sphere ) in the blueprint.

Then you detect overlaps, and use casting to find out what hit the object: