Automated stainers operate by using pre-programmed protocols to apply stains to slides. These protocols can be customized based on the type of tissue and the desired staining technique. The stainer typically consists of a series of reagent containers, a robotic arm, and a control system. The robotic arm moves the slides through the various reagents in a specific sequence, ensuring that each slide receives the correct amount of stain.