Getting past the ATS

What actually happens to a CV between hitting apply and reaching a human, and what to do about it.