An automatic vending machine includes an integrated capsule dispensing apparatus. The automatic vending machine comprises a first dispensing unit for delivering products that it withdraws from one or more first storage compartments, and is characterized in that it further comprises at least a second dispensing unit for delivering products packaged in the form of capsules that are stored loosely within second storage compartments.