Automate it in a test environment that simulates production as closely as possible. Once the automated software updates work flawlessly under various conditions, use that in production.
Then an unexpected condition happens and the automated response breaks something badly, and suddenly your expensive robot is now an expensive piece of junk.