I want to add that there is a way to do this completely in blueprints.
Create a new blueprint of the class Actor and give that actor an AI Perception component.
Then in the character’s blueprint, add that actor with the AI perception as a child actor component and attach it to the character’s head.