Short answer
Clear small items and breakables off the floor, vacuum high-traffic areas if you have time, point out stains and pet spots when the technician arrives, plan for pets and kids to stay off the wet carpet, and leave fans or air conditioning running afterward so it dries faster.
Clear the floor the night before
Pick up anything small enough to be knocked over or lost: toys, shoes, plants, floor lamps, cords and anything on the floor of closets you want cleaned. It gives the technician open carpet to work on, and it keeps the things you care about out of the way. Ask ahead of time how larger furniture will be handled so there are no surprises on the day.
Make a short list of problem spots
Walk the rooms and note the stains, pet accidents and high-traffic lanes you want looked at, and what caused them if you know. Coffee, wine, pet urine and grease all need different treatment, so knowing the cause helps. Pointing these out at the start is the single easiest way to get a better result.
Vacuum if you have time
A quick vacuum of the main traffic areas removes loose dirt and hair before the cleaning starts. It is not required, but on carpet with a lot of pet hair it helps.
Plan for pets and kids
Wet carpet and curious pets do not mix. Plan where pets will stay during the visit and for a few hours after, and keep children off the damp areas until they are dry. Socks or clean bare feet are fine once the carpet is only slightly damp.
Help it dry faster
Airflow is what dries carpet. Run ceiling fans, open windows if the weather allows, and leave the air conditioning or heat on. Most carpet dries within several hours depending on thickness and humidity.
Wait until it is fully dry before putting furniture back on it.
