AI & Personhood

Could an artificial entity ever be granted legal personhood?  What would this look like, would robots become liable for harms they cause, will artificial agents be granted basic human rights, and what does this say about the legal personhood of human beings and other animals?