An electronic device comprising: a housing; a touchscreen display exposed through a part of the housing; at least one wireless communication circuit disposed inside the housing; at least one processor positioned inside the housing and electrically connected to the touchscreen display and the wireless communication circuit; and a memory electrically connected to the at least one processor and positioned inside the housing, wherein the memory stores a user interface for communicating with a plurality of external chatbots and stores instructions, when executed, that cause the at least one processor to: provide the plurality of external chatbots through the user interface; obtain a first user selection associated with a first chatbot of the plurality of external chatbots, through the user interface; transmit a first connection request including a first phone number and a first identifier, ID, associated with the first chatbot, to an external server through the wireless communication circuit; receive a first connection response including the first phone number and the first ID from the external server through the wireless communication circuit; obtain a second user selection associated with a second chatbot of the plurality of external chatbots through the user interface, wherein the second chatbot shares the same phone number with the first chatbot; transmit a second connection request including the first phone number and a second ID associated with the second chatbot to the external server through the wireless communication circuit; receive a second connection response including the first phone number and the second ID from the external server through the wireless communication circuit; and exchange a chat with the first chatbot and the second chatbot in a first chat a housing; a touchscreen display exposed through a part of the housing; at least one wireless communication circuit disposed inside the housing; at least one processor positioned inside the housing and electrically connected to the touchscreen display and the wireless communication circuit; and a memory electrically connected to the at least one processor and positioned inside the housing, wherein the memory stores a user interface for communicating with a plurality of external chatbots and stores instructions, when executed, that cause the at least one processor to: provide the plurality of external chatbots through the user interface; obtain a first user selection associated with a first chatbot of the plurality of external chatbots, through the user interface; transmit a first connection request including a first phone number and a first identifier, ID, associated with the first chatbot, to an external server through the wireless communication circuit; receive a first connection response including the first phone number and the first ID from the external server through the wireless communication circuit; obtain a second user selection associated with a second chatbot of the plurality of external chatbots through the user interface, wherein the second chatbot shares the same phone number with the first chatbot; transmit a second connection request including the first phone number and a second ID associated with the second chatbot to the external server through the wireless communication circuit; receive a second connection response including the first phone number and the second ID from the external server through the wireless communication circuit; and exchange a chat with the first chatbot and the second chatbot in a first chat provide the plurality of external chatbots through the user interface; obtain a first user selection associated with a first chatbot of the plurality of external chatbots, through the user interface; transmit a first connection request including a first phone number and a first identifier, ID, associated with the first chatbot, to an external server through the wireless communication circuit; receive a first connection response including the first phone number and the first ID from the external server through the wireless communication circuit; obtain a second user selection associated with a second chatbot of the plurality of external chatbots through the user interface, wherein the second chatbot shares the same phone number with the first chatbot; transmit a second connection request including the first phone number and a second ID associated with the second chatbot to the external server through the wireless communication circuit; receive a second connection response including the first phone number and the second ID from the external server through the wireless communication circuit; and exchange a chat with the first chatbot and the second chatbot in a first chat