It sends you a text and says 'your delivery is here'. You have x minutes to collect delivery by entering a code given in the text.
If no code is entered, or incorrect code entered, said delivery vehicle departs when safe to do so.
How would it do that?
You'd help it, or you wouldn't receive automated packages. You already provide a structured environment to receive letters in your letterbox.