UNIVERSITY PARK, Pa. — Most people would appreciate a chatbot that offers sympathetic or empathetic responses, according to a team of researchers, but they added that reaction may rely on how comfortable the person is with the idea of a feeling machine.

In a study, the researchers reported that people preferred receiving sympathetic and empathetic responses from a chatbot — a machine programmed to simulate a conversation — than receiving a response from a machine without emotions, said S. Shyam Sundar, James P. Jimirro Professor of Media Effects and co-director of the Media Effects Research Laboratory. People express sympathy when they feel compassion for a person, whereas they express empathy when they are actually feeling the same emotions of the other person, said Sundar.

As healthcare providers look for ways to cut costs and improve service, he added these findings could help developers create conversational technologies that encourage people to share information about their physical and mental health states, for example.

"Increasingly, as we have more and more chatbots and more AI-driven conversational agents in our midst," said Sundar. "And, as more people begin to turn to their smart speaker or chatbot on a health forum for advice, or for social and emotional support, the question becomes: To what extent should these chatbots and smart speakers express human-like emotions?"

While today's machines cannot truly feel either sympathy or empathy, developers could program these cues into current chatbot and voice assistant technology, according to the researchers who report their findings in the current issue of Cyberpsychology, Behavior & Social Networking.

However, chatbots may become too personal for some people, said Bingjie Liu, a doctoral candidate in mass communications, who worked with Sundar on the study. She said that study participants who were leery of conscious machines indicated they were impressed by the chatbots that were programmed to deliver statements of sympathy and empathy.

"The majority of people in our sample did not really believe in machine emotion, so, in our interpretation, they took those expressions of empathy and sympathy as courtesies," said Liu. "When we looked at people who have different beliefs, however, we found that people who think it's possible that machines could have emotions had negative reactions to these expressions of sympathy and empathy from the chatbots."

The researchers recruited 88 volunteers from a university and Amazon Mechanical Turk, an online task platform. The volunteers were asked to interact with one of four different online health service chatbots programmed to deliver responses specific to one of four conditions set up by the researchers: sympathy, two different types of empathy — cognitive empathy and affective empathy — or, an advice-only control condition.

In the sympathetic version, the chatbot responded with a statement, such as, "I am sorry to hear that." The chatbot programmed for cognitive empathy, which acknowledged the user's feelings, might say, "That issue can be quite disturbing." A chatbot that expressed affective empathy might respond with a sentence that showed the machine understood how and why a user felt the way they did, such as, "I understand your anxiety about the situation."

The researchers said that affective empathy and sympathy worked the best.

"We found that the cognitive empathy — where the response is somewhat detached and it's approaching the problem from a thoughtful, but almost antiseptic way — did not quite work," said Sundar. "Of course, chatbots and robots do that quite well, but that is also the stereotype of machines. And it doesn't seem to be as effective. What seems to work best is affective empathy, or an expression of sympathy."

In a previous study, the researchers asked participants to just read the script of the conversation between a human subject and a machine. They found similar effects on the use of sympathy and empathy in messages.

The researchers said that future research could examine how the sympathetic and empathetic interactions work for different issues beyond health and sexuality, as well as investigate how people feel if humanlike machines and robots deliver those types of responses.

"We want to see if this is a consistent pattern in how humans react to machine emotions," said Liu.