You would want to use circuits and stop production if there aren't enough inputs for a receipt.
It still looks kinda easy, the machines just do it automatically on the default game.