Tesla revealed on Friday a prototype of a humanoid robot that it says could be a future product for the automaker.