Customer Communities and Lead Gen

How can you optimize the relationship between customer communities and lead gen?