Foragers of several species of stingless bees (Hymenoptera, Apidae and Meliponini) deposit pheromone marks in the vegetation to guide nestmates to new food sources. These pheromones are produced in the labial glands and are nest and species specific. Thus, an important question is how recruited foragers recognize their nestmates' pheromone in the field. We tested whether naïve workers learn a specific trail pheromone composition while being recruited by nestmates inside the hive in the species Scaptotrigona pectoralis. We installed artificial scent trails branching off from trails deposited by recruiting foragers and registered whether newly recruited bees follow these trails. The artificial trails were baited with trail pheromones of workers collected from foreign S. pectoralis colonies. When the same foreign trail pheromone was presented inside the experimental hives while recruitment took place a significant higher number of bees followed the artificial trails than in experiments without intranidal presentation. Our results demonstrate that recruits of S. pectoralis can learn the composition of specific trail pheromone bouquets inside the nest and subsequently follow this pheromone in the field. We, therefore, suggest that trail pheromone recognition in S. pectoralis is based on a flexible learning process rather than being a genetically fixed behaviour.