A terminal device comprising: a communicator configured to communicate with a plurality of external devices; a display configured to generate and display a chat window upon receiving an occurrence signal for a predetermined event from a first external device among the plurality of external devices; and a processor configured to control the communicator to connect to at least one second external device related to the predetermined event, wherein the processor is further configured to control the display to display: the at least one second external device in the chat window; a message inquiring whether to perform a predetermined job corresponding to the predetermined event; and a graphic user interface for selecting whether to perform the predetermined job, wherein the processor is further configured to group the at least one second external device based on a time at which the predetermined job is performed corresponding to the predetermined event or a distance between the terminal device and the at least one second external device, and control the display to display the grouped at least one second external device in the chat window when the predetermined event occurs and satisfies a condition with regard to the time or the distance. a communicator configured to communicate with a plurality of external devices; a display configured to generate and display a chat window upon receiving an occurrence signal for a predetermined event from a first external device among the plurality of external devices; and a processor configured to control the communicator to connect to at least one second external device related to the predetermined event, wherein the processor is further configured to control the display to display: the at least one second external device in the chat window; a message inquiring whether to perform a predetermined job corresponding to the predetermined event; and a graphic user interface for selecting whether to perform the predetermined job, wherein the processor is further configured to group the at least one second external device based on a time at which the predetermined job is performed corresponding to the predetermined event or a distance between the terminal device and the at least one second external device, and control the display to display the grouped at least one second external device in the chat window when the predetermined event occurs and satisfies a condition with regard to the time or the distance. the at least one second external device in the chat window; a message inquiring whether to perform a predetermined job corresponding to the predetermined event; and a graphic user interface for selecting whether to perform the predetermined job, wherein the processor is further configured to group the at least one second external device based on a time at which the predetermined job is performed corresponding to the predetermined event or a distance between the terminal device and the at least one second external device, and control the display to display the grouped at least one second external device in the chat window when the predetermined event occurs and satisfies a condition with regard to the time or the distance.