A system comprising an electronic device and an external server , the electronic device comprising: a microphone ; a communication circuit; at least one processor electrically coupled to the microphone and the communication circuit; and a memory storing programming instructions executable by the at least one processor to cause the electronic device to: store a first expression mapped to first information associated with a plurality of first tasks set by a single user in the memory; receive a first voice input of the single user through the microphone; transmit the first voice input to the external server through the communication circuit; receive first text data generated by the external server from the transmitted first voice input from the external server through the communication circuit; search the memory for any stored expression matching the first text data; when the first expression is identified as matching the first text data, transmit the first information associated with the plurality of first tasks to the external server through the communication circuit; receive, from the external server through the communication circuit, second information indicating a path rule comprising a sequence of states of the electronic device related to executing the plurality of first tasks identified by the external server as matching the first information; and execute the plurality of first tasks according to the second information such that the plurality of first tasks are performed by the electronic device sequentially having one or more of states in the sequence of states, wherein the first expression includes at least one of specified word, a specified phrase, and a specified sentence. a microphone ; a communication circuit; at least one processor electrically coupled to the microphone and the communication circuit; and a memory storing programming instructions executable by the at least one processor to cause the electronic device to: store a first expression mapped to first information associated with a plurality of first tasks set by a single user in the memory; receive a first voice input of the single user through the microphone; transmit the first voice input to the external server through the communication circuit; receive first text data generated by the external server from the transmitted first voice input from the external server through the communication circuit; search the memory for any stored expression matching the first text data; when the first expression is identified as matching the first text data, transmit the first information associated with the plurality of first tasks to the external server through the communication circuit; receive, from the external server through the communication circuit, second information indicating a path rule comprising a sequence of states of the electronic device related to executing the plurality of first tasks identified by the external server as matching the first information; and execute the plurality of first tasks according to the second information such that the plurality of first tasks are performed by the electronic device sequentially having one or more of states in the sequence of states, wherein the first expression includes at least one of specified word, a specified phrase, and a specified sentence. <EOS>