How do businesses and Marketing agencies work together?

How do Business work together with Marketing agencies to ensure the campaign they’re trying to market will be perfect?