A machine for making liquid or semi-liquid food products with a plurality of deformable feeding containers, each feeding container connected to a processing chamber for processing the base mixture and including a stirrer and a thermal treatment device for the base mixture, operating in conjunction with one another to convert the base mixture into a liquid or semi-liquid product. The operative connection of each feeding container to the processing chamber to transfer the base mixture from the feeding container to the processing chamber is made by a network of withdrawing ducts through an interposed pneumatically actuated valve which can be activated and deactivated independently of the remaining valves and which includes a valve body with an inlet duct and an outlet duct, and with a shutter acting to selectively interrupt or allow the connection between the inlet duct and the outlet duct.