Automatic rigging techniques

Hi , everyone. I am new to blender ,but i want do some study in rigs and animations data structure in FBX files.
Question:All in all, i want create an humanoid model with rigs and weight painting automatic.
Progress:For now,i only can create cube-like humanoid by myself.
Thanks for reading this message and i hope someone can give me some advice.