A controlling method of an electronic device for determining a chatbot using an artificial intelligence learning model, the method comprising: acquiring text information corresponding to a user input and displaying the text information on a chat screen; determining a chatbot, among a plurality of chatbots with different functions, for providing a response message regarding the user input, wherein determining the chatbot comprises using a learned model which is trained to determine a chatbot based on inputted text information and inputted chat history information regarding the chat screen; transmitting the acquired text information and the chat history information regarding the chat screen to a server that provides the chat service of the determined chatbot; and receiving a response message from the server and displaying the response message on the chat screen, characterized by the method further comprising: in response to an event for registering a new chatbot occurring, acquiring structure information of the new chatbot; and registering the new chatbot and the structure information together, wherein the acquiring of the structure information comprises: in response to the structure information not being identified through metadata of the new chatbot, chatting with the new chatbot by transmitting an inquiry message for inquiring structure information of the new chatbot to a server that provides the chat service of the new chatbot, and receiving a response message regarding the inquiry message; and generating structure information of the new chatbot based on the response message, wherein the structure information comprises function information of a chatbot. acquiring text information corresponding to a user input and displaying the text information on a chat screen; determining a chatbot, among a plurality of chatbots with different functions, for providing a response message regarding the user input, wherein determining the chatbot comprises using a learned model which is trained to determine a chatbot based on inputted text information and inputted chat history information regarding the chat screen; transmitting the acquired text information and the chat history information regarding the chat screen to a server that provides the chat service of the determined chatbot; and receiving a response message from the server and displaying the response message on the chat screen, characterized by the method further comprising: in response to an event for registering a new chatbot occurring, acquiring structure information of the new chatbot; and registering the new chatbot and the structure information together, wherein the acquiring of the structure information comprises: in response to the structure information not being identified through metadata of the new chatbot, chatting with the new chatbot by transmitting an inquiry message for inquiring structure information of the new chatbot to a server that provides the chat service of the new chatbot, and receiving a response message regarding the inquiry message; and generating structure information of the new chatbot based on the response message, wherein the structure information comprises function information of a chatbot. in response to an event for registering a new chatbot occurring, acquiring structure information of the new chatbot; and registering the new chatbot and the structure information together, wherein the acquiring of the structure information comprises: in response to the structure information not being identified through metadata of the new chatbot, chatting with the new chatbot by transmitting an inquiry message for inquiring structure information of the new chatbot to a server that provides the chat service of the new chatbot, and receiving a response message regarding the inquiry message; and generating structure information of the new chatbot based on the response message, wherein the structure information comprises function information of a chatbot. in response to the structure information not being identified through metadata of the new chatbot, chatting with the new chatbot by transmitting an inquiry message for inquiring structure information of the new chatbot to a server that provides the chat service of the new chatbot, and receiving a response message regarding the inquiry message; and generating structure information of the new chatbot based on the response message, wherein the structure information comprises function information of a chatbot.