Remember that we're talking many years ago, in the previous century.
The only way to "automatically" deposit cash was to put it into an envelope and then drop it in the machine. IIRC, you used to write the total amount on the outside of the envelope, together with your bank account information.
The machine was emptied at regular intervals, the envelopes were transferred to the bank, and an employee was manually opening them, verifying the amount, and credit your account.