APD involves the use of a cycler machine that automatically performs multiple exchanges of dialysis fluid throughout the night. The machine fills the peritoneal cavity with dialysate, allows it to dwell for a specified period, and then drains it, repeating this process several times. The cycler is programmed according to the patient's specific treatment plan, which is typically determined by the nephrologist.