The wisdom of the crowd: how to guarantee effective decision-making