An electronic apparatus comprising: a housing; a touch screen display disposed inside the housing and exposed through a first portion of the housing; a microphone disposed inside the housing and exposed through a second portion of the housing; a communication circuit disposed inside the housing; at least one processor disposed inside the housing and electrically connected to the touch screen display, the microphone, and the communication circuit; and a memory disposed in the housing and electrically connected with the at least one processor, wherein the memory stores an instruction that, when executed, causes the at least one processor to: receive a user input through at least one of the touch screen display or the microphone, wherein the user input includes a request over a first task configured to be performed using a first external electronic apparatus and a second task configured to be performed using a second external electronic apparatus, the second task being dependent on the first task, transmit, to an external server through the communication circuit, first data associated with the user input, receive, from the external server through the communication circuit, a response including information about a first sequence of states and a second sequence of states the first sequence of states being related to the first task and the second sequence of states being related to the second task, based on the second task being dependent on the first task, and transmit, to the first external electronic apparatus, a first command including the first sequence of states, and transmit, to the second external electronic apparatus, a second command including the second sequence of states. a housing; a touch screen display disposed inside the housing and exposed through a first portion of the housing; a microphone disposed inside the housing and exposed through a second portion of the housing; a communication circuit disposed inside the housing; at least one processor disposed inside the housing and electrically connected to the touch screen display, the microphone, and the communication circuit; and a memory disposed in the housing and electrically connected with the at least one processor, wherein the memory stores an instruction that, when executed, causes the at least one processor to: receive a user input through at least one of the touch screen display or the microphone, wherein the user input includes a request over a first task configured to be performed using a first external electronic apparatus and a second task configured to be performed using a second external electronic apparatus, the second task being dependent on the first task, transmit, to an external server through the communication circuit, first data associated with the user input, receive, from the external server through the communication circuit, a response including information about a first sequence of states and a second sequence of states the first sequence of states being related to the first task and the second sequence of states being related to the second task, based on the second task being dependent on the first task, and transmit, to the first external electronic apparatus, a first command including the first sequence of states, and transmit, to the second external electronic apparatus, a second command including the second sequence of states. receive a user input through at least one of the touch screen display or the microphone, wherein the user input includes a request over a first task configured to be performed using a first external electronic apparatus and a second task configured to be performed using a second external electronic apparatus, the second task being dependent on the first task, transmit, to an external server through the communication circuit, first data associated with the user input, receive, from the external server through the communication circuit, a response including information about a first sequence of states and a second sequence of states the first sequence of states being related to the first task and the second sequence of states being related to the second task, based on the second task being dependent on the first task, and transmit, to the first external electronic apparatus, a first command including the first sequence of states, and transmit, to the second external electronic apparatus, a second command including the second sequence of states.