The health of local economies today will affect their ability to adapt and thrive in the automation age.