As someone who actively works in a facility that has frequent errors due to human inputs, difficulty finding enough people to work on a daily basis, and plenty of tasks that automation equipment already exists for I can guarantee that automation is no anywhere near what people imagine it is.
I have no clue how so many keep buying into this story either. It is like these people have never bothered to examine modern manufacturing. Automation is expensive and the talents to configure and maintain it are not abundant.
For instance I want to package a set number of small parts into a bag based on the customers order. The bag then needs have a small amount of oil added based on the parts weight, a barcode label applied with the customers part number, the manufacturing date, the quantity packed, and the purchase order number.
Nothing about this is hard but it means that I need a machine that can identify the parts correctly, pick up the correct quantity of parts, ensure the count is correct based on part weight when the bag is packed, put the correct quantity of oil in the bag, seal the bag so it doesn't leak, cross reference our internal part identifier to the data for the order (customer part number, purchase order #, etc), print a barcode label matching the appropriate barcode standard and apply that label to the bag so that it stays on the packaging.
This means I need a well maintained database of information, equipment that can precisely move small parts quickly, a calibrated oil dispenser that doesn't risk spilling chemicals into the environment when not monitored, a label printer that doesn't jam often, etc.... And this is just for a simple task outside of actually making or transporting the parts. Expensive to set-up and then you need processes and understanding to maintain it. It is the direction we want to go for sure, but you only have some much in the budget in a given year and so many engineers to make it work.