“Air Canada suggests the chatbot is a separate legal entity that is responsible for its own actions.”

Link. They lost in court. But I would not be surprised if the future legal framework for an AI is an extension of corporate entity law.