Binding OnSeePawn to BTT

Hi, I’m basically trying to get my ai character to see other pawns only in some circumstances, so I’m trying to bind the OnSeePawn event to a dispatcher to be called by a behavior tree task as needed.

Is this the right way?

This is my character blueprint

As you can see I’m having problems with the target socket of the binding node, but I can’t understand it.