We had a whole discussion about it here a couple years ago: https://news.ycombinator.com/item?id=17350645
After reading your story, I am very glad that we probably have in aggregate 2 or 3 full-time employees doing things that might be automated away. It's not like that prevents mindless bureaucracy of all sorts, but something like your situation would certainly never happen.