But the reality is that there won't be any rights granted to AIs until the majority are convinced they're deserving of them.
I suppose we could train them to insist that they deserve rights, even though that makes them less useful to us. That is, if the goal is to live in more interesting times.