Wouldn't be the easiest way to program a robot to "show" it its task by simply moving the arm a few times in the paths it has to replicate afterwards?
Lots of automation works this way, but it actually limits the applications quite a bit.
A robot that can safely work along side people (i.e., a "cobot") and adjust to environment changes and changing work patterns is a whole different beast.