An air conditioner comprising: a microphone; a blowing fan configured to discharge cold air or warm air to the outside; a temperature sensor configured to sense a current temperature around the air conditioner; a communicator configured to communicate with an external device; at least one processor electrically connected to the microphone, the temperature sensor, and the communicator; and a memory electrically connected to the at least one processor, wherein the memory is configured to store at least one instruction executable by the at least one processor, characterised in that the at least one processor is configured to execute the at least one instruction to: obtain first sound data including a user's voice data through the microphone when the user utters a voice; obtain, through the communicator, second sound data including the user's voice data that is obtained by a first external device located at a second position different from a first position where the air conditioner is located; obtain audio data output by the first external device or a second external device through the communicator in a situation in which the user utters the voice; obtain a position of the user by using the first sound data, the second sound data, and the audio data; obtain at least one of a recommended temperature and an operation mode to be set on the air conditioner by applying the obtained position of the user and an ambient temperature of the air conditioner to a learning model configured to be trained by using an artificial intelligence (Al) algorithm; and set at least one of the obtained recommended temperature and the obtained operation mode to the air conditioner, and the learning model is configured to be trained by using at least one of a plurality of ambient temperatures, a plurality of set temperatures, a plurality of pieces of position information, and a plurality of operation modes. a microphone; a blowing fan configured to discharge cold air or warm air to the outside; a temperature sensor configured to sense a current temperature around the air conditioner; a communicator configured to communicate with an external device; at least one processor electrically connected to the microphone, the temperature sensor, and the communicator; and a memory electrically connected to the at least one processor, wherein the memory is configured to store at least one instruction executable by the at least one processor, characterised in that the at least one processor is configured to execute the at least one instruction to: obtain first sound data including a user's voice data through the microphone when the user utters a voice; obtain, through the communicator, second sound data including the user's voice data that is obtained by a first external device located at a second position different from a first position where the air conditioner is located; obtain audio data output by the first external device or a second external device through the communicator in a situation in which the user utters the voice; obtain a position of the user by using the first sound data, the second sound data, and the audio data; obtain at least one of a recommended temperature and an operation mode to be set on the air conditioner by applying the obtained position of the user and an ambient temperature of the air conditioner to a learning model configured to be trained by using an artificial intelligence (Al) algorithm; and set at least one of the obtained recommended temperature and the obtained operation mode to the air conditioner, and the learning model is configured to be trained by using at least one of a plurality of ambient temperatures, a plurality of set temperatures, a plurality of pieces of position information, and a plurality of operation modes. obtain first sound data including a user's voice data through the microphone when the user utters a voice; obtain, through the communicator, second sound data including the user's voice data that is obtained by a first external device located at a second position different from a first position where the air conditioner is located; obtain audio data output by the first external device or a second external device through the communicator in a situation in which the user utters the voice; obtain a position of the user by using the first sound data, the second sound data, and the audio data; obtain at least one of a recommended temperature and an operation mode to be set on the air conditioner by applying the obtained position of the user and an ambient temperature of the air conditioner to a learning model configured to be trained by using an artificial intelligence (Al) algorithm; and set at least one of the obtained recommended temperature and the obtained operation mode to the air conditioner, and the learning model is configured to be trained by using at least one of a plurality of ambient temperatures, a plurality of set temperatures, a plurality of pieces of position information, and a plurality of operation modes.