A method, performed by an electronic device (200; 200-a; 200-b; 200-c), of providing a conversational service, the method comprising: receiving (S310) an utterance input; identifying (S320) a temporal expression representing a past in a text obtained from the utterance input; determining (S330) 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 (S340) 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 (S350) the text based on information about the conversation history of a user, the conversation history information being acquired from the selected database; generating (S360) a response message to the utterance input based on a result of the interpreting; and outputting (S370) 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 (S340) 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 (S310) an utterance input; identifying (S320) a temporal expression representing a past in a text obtained from the utterance input; determining (S330) 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 (S340) 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 (S350) the text based on information about the conversation history of a user, the conversation history information being acquired from the selected database; generating (S360) a response message to the utterance input based on a result of the interpreting; and outputting (S370) 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 (S340) 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. <EOS>