How robots can make legal personhood work better

The place of autonomous robots amid the legal system is a topic that has been increasingly subjected to focus of governants (in both states and international organizations like the EU or the UN); but unfortunately its treatment too often remains fantasist as based on works of fiction. While the issue is fundamentally not new (consider, eg, debates over animals or foreigners throughout history), autonomous robots stand out in their capacity to produce a will of their own seemingly based on pure reason.
Here, I argue that two questions must be distinguished when it comes to legal personhood: 1) the formulation of a will, and 2) its attribution to a subject. In this perspective, robots being attributed a will of their own depends on a value-based choice that goes beyond the legal field and concerns society as a whole. However, robots may also play a role in formulating the will to be attributed to some other subjects, eg incapacitated persons, animals, or things.