Programming the robots in the factory isn't much more than having a person manually control the robot through a production learning process. Then a fine tuning of the process through a few trial runs at a very slow rate to prevent any possible damage. The robot welders even polish and replace their own tips as required.
The paint process is computer controlled all the way through including the colour selection as each vehicle goes down the line.
The Tesla production line after the paint shop is more advanced than what Holden or Ford might be as there vehicles stay on a conveyor system all the way through to the end. For easy access into the car body the doors are taken off and sent to the trim line and if all goes well meet up nearer to the end of the line.
Then there's the component suppliers who generally end up doing the work that can't be automated which Tesla didn't show.