These chemical signals are called pheromones, specifically sex pheromones.
They can trigger attraction, signal receptivity, synchronize reproductive cycles, and elicit courtship behaviors. Effects vary by species and are often combined with visual or other cues.