Patent attributes
The present disclosure provides method and apparatus for providing a response to a user in a question-answering session. A message may be received in the session, the session being between the user and an electronic conversational agent. Context information is extracted from a context database based at least on the message. Fact information and emotion information are obtained from at least one of the message and the context information. The fact information is associated with at least one fact, and the emotion information is associated with emotions towards the at least one fact. A response is generated based at least on the fact information and the emotion information. The response is provided to the user.