Andrea was a female android built sometime between 2261 and 2266, by Roger Korby. By Human standards, her behavior was quite simplistic, to the point where she would duplicate patterns of learned behavior.
When discussing Andrea's existence with Korby, Christine Chapel described her as a "mechanical geisha. To demonstrate that she was merely a machine and unable to feel emotions, Korby ordered her to kiss and then strike Captain Kirk. Later, when Kirk kissed her again, she next attempted to strike him, as she had done earlier. This time, he kissed her longer and much more passionately, and she became confused and upset, claiming she was "not programmed" for Kirk. This evidence that the androids could learn to feel emotions they were not programmed to feel contradicted Korby's belief that an android society would be a utopia, free of conflict and strife. It also provided Kirk with insights that enabled him to undermine Korby's control of Ruk.
Ordered to protect the complex after Ruk's destruction, Andrea mistakenly destroyed the android copy of Kirk. When she found Korby and realized her mistake, she became emotional. Perhaps threatened by his love for Christine Chapel, perhaps seeking his approval, Andrea began to kiss Korby passionately. This may have convinced Korby that Kirk was right, and that the androids were vulnerable to unprogrammed emotions, for during this kiss, Korby activated a laser pistol, destroying himself and Andrea. (TOS: "What Are Little Girls Made Of?")