Like, how a queen ant's nutrition and pheromones can chemically alter an ant embryo to either produce a soldier or worker ant based on what's needed for the colony.
With chimpanzees, who are our closest living relative, they have fashioned these tools to extract termites from the mound, and the termites they're getting are the soldiers and they're really protein-rich.