Just friends

How do I get myself to realize when I'm just good friends with a guy? The moment a guy shows any interest in me, even platonic interest, my heart and head get all confused. I have a boyfriend but even then when a guy is nice to me my heart panics.