These machines typically have built-in grinders that grind coffee beans on demand. The ground coffee is then compacted (tamped) into a portafilter, and the machine automatically controls the water temperature, pressure, and extraction time to produce a shot of espresso. Some models also have automatic milk frothing systems for making lattes and cappuccinos.