depends on what rules they have built in to them. but as a machine they should treated as such. Their emotion is simulated and not real.
Alan Turing had an answer to this question back in the 50's. He suggested a test where:
"Suppose that we have a person, a machine, and an interrogator. The interrogator is in a room separated from the other person and the machine. The object of the game is for the interrogator to determine which of the other two is the person, and which is the machine. The interrogator knows the other person and the machine by the labels ‘X’ and ‘Y’—but, at least at the beginning of the game, does not know which of the other person and the machine is ‘X’—and at the end of the game says either ‘X is the person and Y is the machine’ or ‘X is the machine and Y is the person’. The interrogator is allowed to put questions to the person and the machine of the following kind: “Will X please tell me whether X plays chess?” Whichever of the machine and the other person is X must answer questions that are addressed to X. The object of the machine is to try to cause the interrogator to mistakenly conclude that the machine is the other person; the object of the other person is to try to help the interrogator to correctly identify the machine."
If a machine can repeatedly pass this kind of interrogation with no more than a 70% chance of being correctly identified then it can reasonably be thought to be intelligent.
It's called the Turing Test and pops up a lot in science fiction, (including that interview in Blade Runner where Harrison Ford realises that Sean Young is a replicant but fancies her so ignores it).
I think it's fair enough. If something acts in every way as if it is intelligent, to such an extent that we can't tell the difference between it and a naturally created intelligent being, then surely its only right to treat it in the same way we would anyone else.
After all we all treat other people as if they are intelligent sentient beings because we percieve that they act as if they are. We've no other way way of knowing.
That's possibly the nerdiest post I've ever made.
And oh nice to have you back Benny I was starting to get worried about you.