John Shepherd-Barron invented the first automated teller machine (ATM) in 1967, which was installed by Barclays Bank in London. His invention was inspired by a chocolate vending machine and allowed customers to access cash outside of normal banking hours for the first time.