A method, performed by an electronic device (200; 200-a; 200-b; 200-c), of providing a conversational service, the method comprising: receiving an utterance input; identifying a temporal expression representing a past in a text obtained from the utterance input; determining whether a time point related to the utterance input based on the temporal expression representing the past is before or after a preset time point; selecting a database corresponding to the determined time point from among a plurality of databases storing information about a conversation history of the user using the conversational service; interpreting the text based on information about the conversation history of a user, the conversation history information being acquired from the selected database; generating a response message to the utterance input based on a result of the interpreting; and outputting the generated response message, wherein the plurality of databases comprise a first database storing information about the conversation history of the user accumulated before the preset time point, and a second database storing information about the conversation history of the user accumulated after the preset time point, and wherein the selecting of the database comprises: selecting the first database from among the plurality of databases when the time point related to the utterance input is before the preset time point; and selecting the second database from among the plurality of databases when the time point related to the utterance input is after the preset time point. receiving an utterance input; identifying a temporal expression representing a past in a text obtained from the utterance input; determining whether a time point related to the utterance input based on the temporal expression representing the past is before or after a preset time point; selecting a database corresponding to the determined time point from among a plurality of databases storing information about a conversation history of the user using the conversational service; interpreting the text based on information about the conversation history of a user, the conversation history information being acquired from the selected database; generating a response message to the utterance input based on a result of the interpreting; and outputting the generated response message, wherein the plurality of databases comprise a first database storing information about the conversation history of the user accumulated before the preset time point, and a second database storing information about the conversation history of the user accumulated after the preset time point, and wherein the selecting of the database comprises: selecting the first database from among the plurality of databases when the time point related to the utterance input is before the preset time point; and selecting the second database from among the plurality of databases when the time point related to the utterance input is after the preset time point. selecting the first database from among the plurality of databases when the time point related to the utterance input is before the preset time point; and selecting the second database from among the plurality of databases when the time point related to the utterance input is after the preset time point.