To craft a golem, use stone cutter to cut metal golem template into required parts. Then use anvil to apply metal ingots onto the parts. Then assemble the parts into a golem holder in crafting table. You can use parts of different materials to get better golems.
To summon golem, right click it on a block. You can retrieve the golem by right clicking it with empty hand.You can fix the damaged golem with ingots matching the body material of the golem in anvil. Each ingot heals 1/4 of the max health. Thus, you can use cheap body material and expensive material for other parts to have high health while make it cheap to fix.
When the golem dies, it will only drop 1 ingot from each part. You can use the Recycle Upgrade to let the golem drop repairable holder on death.You can change golem parts by combining new part with golem holder in crafting table in specific orientation. You will lose the old part in this process but keep everything else.