You prolly depend on "automation" for security every day. What do you think the code in your garage door opener is?
You mix apples and oranges.
I rely on automated devices to protect myself from external enemies.
But how does one protect oneself from one's own desires? The best thing to do is to learn to live moderately and rationally. For this you need parents and wise teachers, not a computer program.