Multi-stage request response method and device, equipment and computer storage medium
Through the multi-stage request response method, multi-stage data processing is performed on the request information during user interaction, solving the problem of too long response time and improving the user experience and the scalability of technical products.
Patent Information
- Application Number
- CN202311174593.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2025-03-14
AI Technical Summary
During user interaction, technical products cannot respond within a limited time, resulting in long waits or need to start the interaction again, affecting the user experience.
Using a multi-stage request response method, the request information is processed through the first processing stage and the second processing stage, and the response information is generated based on the processing results and sent to the target device to ensure that the response is completed in the shortest time.
It effectively avoids the problem of users waiting for a long time or needing to restart the interaction again, reduces the complexity of the interaction, and improves the scalability and flexibility of technical products.
Smart Images

Figure CN119622052A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a multi-stage request response method, device, equipment and computer storage medium. Background Art
[0002] In today's fast-paced digital age, users have higher and higher demands on technology products. Whether in life or work, users hope to interact with technology products quickly and efficiently to complete various tasks and obtain the information they need.
[0003] However, as users’ demands for technology products increase, they also place higher demands on the response speed and interactive experience of technology products. Users want to get real-time feedback and can easily operate and obtain the desired results. They are unwilling to wait too long and do not like cumbersome operation processes. Therefore, during user interaction, if the request cannot be completed within the specified time, this will cause the user to face a long wait or need to start the interaction again. This situation will directly affect the user experience, and then lead to user dissatisfaction or distrust of technology products.
[0004] Therefore, the current problem is how to ensure that technology products can respond as quickly as possible when users interact, so as to avoid users waiting for a long time or needing to restart the interaction again, thereby reducing the complexity of the interaction and increasing the scalability and flexibility of technology products. Summary of the invention
[0005] The present application provides a multi-stage request response method, apparatus, device and computer storage medium to solve the problem that when a user interacts, the server cannot guarantee that it can complete the response in the fastest time, and the user needs to restart the interaction multiple times.
[0006] In a first aspect, the present application provides a multi-stage request response method, comprising:
[0007] Acquire request information sent by the target device, and perform data processing on the request information in a first processing stage according to a first processing rule according to the request information to obtain a first processing result;
[0008] Determining whether data processing in the first processing stage is completed according to the first processing result;
[0009] When it is determined that the data processing in the first processing stage is not completed, performing data processing on the request information according to a second processing rule in a second processing stage to obtain a second processing result;
[0010] Generate response information according to the second processing result, and send the response information to the target device.
[0011] Optionally, the first processing rule includes: an intention parsing stage, a program recommendation stage, an instruction generation stage, and an instruction sending stage, and according to the request information, performing data processing on the request information in accordance with the first processing rule in the first processing stage to obtain a first processing result includes:
[0012] According to the request information, in the first processing stage, the request information is analyzed for intent to obtain a parsing result corresponding to the request information;
[0013] According to the analysis result, determining a target program corresponding to the analysis result;
[0014] According to the target program, generating an execution instruction corresponding to the target program;
[0015] Sending the execution instruction to the target device, and obtaining the sub-processing result corresponding to each stage of the first processing rule;
[0016] The first processing result is obtained according to the sub-processing results corresponding to each stage of the first processing rule.
[0017] Optionally, determining whether data processing in the first processing stage is completed according to the first processing result includes:
[0018] Determining whether each sub-processing result in the first processing result indicates that data processing has been completed;
[0019] If yes, it is determined that the data processing of the first processing stage has been completed;
[0020] If not, it is determined that the data processing in the first processing stage is not completed.
[0021] Optionally, performing data processing on the request information according to a second processing rule in the second processing stage to obtain a second processing result includes:
[0022] Determine, according to the sub-processing results corresponding to each stage of the first processing rule, at least one target stage in which data processing is not completed among the multiple stages of the first processing rule;
[0023] According to the request information, data of the at least one target stage is reprocessed in a second processing stage according to a second processing rule to obtain a second processing result.
[0024] Optionally, generating response information according to the second processing result, and sending the response information to the target device includes:
[0025] Determining whether the second processing result indicates that data processing is completed;
[0026] If yes, it is determined that the request information has been completed, a first response information is generated, and the first response information is sent to the target device, where the first response information is used to prompt the user that the request information has been processed;
[0027] If not, it is determined that the request information is not completed, a second response information is generated, and the second response information is sent to the target device, where the second response information is used to prompt the user that the request information is not processed completely.
[0028] Optionally, after sending the second response information to the target device, the method further includes:
[0029] Performing data processing on the at least one target stage in a third processing stage to obtain a third processing result, wherein the third processing stage is any processing stage after the second processing stage;
[0030] If the third processing result indicates that the request information processing is completed, response permission information is generated and sent to the target device. The response permission information is used to prompt the user that the request information processing is completed and whether the target device is allowed to execute the program instructions corresponding to the request information.
[0031] Optionally, the method further includes:
[0032] When it is determined that the data processing of the first processing stage has been completed, generating first response information according to the first processing result, wherein the first response information is used to prompt the user that the request information has been processed;
[0033] After determining that the data processing in the first processing stage is not completed, the method further includes:
[0034] A third response message is generated, where the third response message is used to prompt the user that data processing is being performed on the request message.
[0035] In a second aspect, the present application provides a multi-stage request response device, including:
[0036] An acquisition module, used to acquire request information sent by a target device;
[0037] A processing module, configured to perform data processing on the request information according to a first processing rule in a first processing stage according to the request information to obtain a first processing result;
[0038] a determination module, configured to determine whether the data processing in the first processing stage is completed according to the first processing result;
[0039] The determination module is further configured to, when determining that the data processing in the first processing stage is not completed, perform data processing on the request information according to a second processing rule in a second processing stage to obtain a second processing result;
[0040] A generating module, used for generating response information according to the second processing result;
[0041] A sending module is used to send the response information to the target device.
[0042] Optionally, the processing module is further configured to perform intent analysis on the request information in the first processing stage according to the request information to obtain an analysis result corresponding to the request information;
[0043] The determination module is further used to determine a target program corresponding to the analysis result according to the analysis result;
[0044] The generating module is further used to generate an execution instruction corresponding to the target program according to the target program;
[0045] The sending module is further used to send the execution instruction to the target device;
[0046] The acquisition module is further used to acquire the sub-processing results corresponding to each stage of the first processing rule;
[0047] The determining module is specifically configured to obtain the first processing result according to the sub-processing results corresponding to each stage of the first processing rule.
[0048] Optionally, the device further includes: a judgment module;
[0049] The judging module is used to judge whether each sub-processing result in the first processing result indicates that data processing has been completed;
[0050] The determining module is further configured to determine that the data processing in the first processing stage has been completed when each sub-processing result in the first processing result indicates that the data processing has been completed;
[0051] The determination module is further configured to determine that the data processing in the first processing stage is not completed when each sub-processing result in the first processing result does not indicate that the data processing is completed.
[0052] Optionally, the determination module is further used to determine at least one target stage in which data processing is not completed among the multiple stages of the first processing rule according to the sub-processing results corresponding to each stage of the first processing rule;
[0053] The determination module is further configured to re-process the data of the at least one target stage according to the request information and the second processing rule in the second processing stage to obtain a second processing result.
[0054] Optionally, the judging module is further used to judge whether the second processing result indicates that the data processing has been completed;
[0055] The determination module is further configured to determine that the request information has been completed and generate first response information when the second processing result indicates that the data processing has been completed;
[0056] The sending module is further used to send the first response information to the target device, where the first response information is used to prompt the user that the request information has been processed;
[0057] The determining module is further configured to determine that the request information is not completed when the second processing result does not indicate that the data processing is completed;
[0058] The generating module is further configured to generate second response information when it is determined that the request information is not completed;
[0059] The sending module is further used to send the second response information to the target device, where the second response information is used to prompt the user that the request information has not been processed.
[0060] Optionally, the determination module is further used to perform data processing on the at least one target stage in a third processing stage to obtain a third processing result, and the third processing stage is any processing stage after the second processing stage;
[0061] The generating module is further configured to generate response permission information when the third processing result indicates that the request information processing is completed;
[0062] The sending module is further used to send the response permission information to the target device, and the response permission information is used to prompt the user that the request information processing has been completed and whether the target device is allowed to execute the program instructions corresponding to the request information.
[0063] Optionally, the generating module is further used to generate first response information according to the first processing result when it is determined that the data processing of the first processing stage has been completed, wherein the first response information is used to prompt the user that the request information has been processed;
[0064] After determining that the data processing in the first processing stage is not completed, the method further includes:
[0065] The generating module is further used to generate third response information, and the third response information is used to prompt the user that data processing is being performed on the request information.
[0066] In a third aspect, the present application provides a multi-stage request response device, including:
[0067] Memory;
[0068] processor;
[0069] Wherein, the memory stores computer-executable instructions;
[0070] The processor executes the computer-executable instructions stored in the memory to implement the multi-stage request response method as described in the first aspect and various possible implementations of the first aspect.
[0071] In a fourth aspect, the present application provides a computer storage medium having computer execution instructions stored thereon, wherein the computer execution instructions are executed by a processor to implement the multi-stage request response method as described in the first aspect and various possible implementations of the first aspect.
[0072] The multi-stage request response method provided by the present application processes the request information sent by the target device according to the multi-stage request processing rules after obtaining the request information sent by the target device, generates response information according to the processing result of the data processing, and then sends the response information to the target device so that the target device can respond according to the response information. This method not only solves the problem that the target device can complete the response as quickly as possible when the user is interacting, but also avoids the defect that the user has to wait for a long time or needs to restart the interaction again, thereby reducing the complexity of the interaction and increasing the flexibility of the target device. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0074] Figure 1 This is the process of the multi-stage request response method provided by this application Figure 1 ;
[0075] Figure 2 This is the process of the multi-stage request response method provided by this application Figure 2 ;
[0076] Figure 3 This is the process of the multi-stage request response method provided by this application Figure 3 ;
[0077] Figure 4It is a schematic diagram of the structure of a multi-stage request response device provided by the present application;
[0078] Figure 5 It is a structural diagram of a multi-stage request response device provided by this application.
[0079] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0081] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0082] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0083] In today's fast-paced digital age, users' demands for technology products continue to increase. Whether in daily life or work, users expect to interact with technology products quickly and efficiently in order to successfully complete various tasks and obtain the information they need.
[0084] However, as user demands increase, they have higher requirements for the response speed and interactive experience of technology products. They want immediate feedback and want to be able to operate easily and get satisfactory results. Users do not want to experience long waits or complicated operation processes. Therefore, if the request cannot be completed within the specified time during the interaction process, the user will have to wait for a long time or restart the interaction. This situation directly affects the user experience, which in turn causes users to be dissatisfied with or lose interest in technology products.
[0085] Therefore, the current problem is how to ensure that technology products can respond as quickly as possible when users interact, so as to avoid users waiting for a long time or needing to restart the interaction again, thereby reducing the complexity of the interaction and increasing the scalability and flexibility of the technology products.
[0086] In response to the above problems, the present application provides a multi-stage request response method. After obtaining the request information sent by the target device, the method performs data processing on the request information according to the multi-stage request processing rules, generates response information according to the processing results of the data processing, and then sends the response information to the target device so that the target device can respond according to the response information. This method not only solves the problem that the target device can complete the response as quickly as possible when the user is interacting, but also avoids the defect that the user has to wait for a long time or needs to restart the interaction again, thereby reducing the complexity of the interaction and increasing the flexibility of the target device.
[0087] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0088] Figure 1 The process of the multi-stage request response method provided in the embodiment of the present application Figure 1 The execution subject of this embodiment is, for example, a server of the target device. Figure 1 The multi-stage request response method provided in this embodiment includes:
[0089] S101: Acquire request information sent by a target device, and perform data processing on the request information in a first processing stage according to a first processing rule to obtain a first processing result.
[0090] The first processing stage is used to indicate that the request information is processed according to a first processing rule within a first preset time period. The first preset time period may be, for example, 100 ms.
[0091] The first processing rule may be, for example, a processing rule corresponding to a process stage. The first processing result refers to the processing result corresponding to the request information after the request information is processed according to the first processing rule of the first processing stage.
[0092] A communication connection is established between the target device and the server, so that they can communicate and transmit information to each other. At the same time, a communication connection is also established between the target device and the user, so that the user can send instruction information to the target device. So when the target device receives the instruction information sent by the user, it can immediately generate request information corresponding to the instruction information and send the request information to the server to which the target device is connected. Then, the server can perform corresponding operations according to the received request information.
[0093] By acquiring the request information sent by the target device, the operation information that the user wants the target device to perform can be obtained.
[0094] It can be understood that when the target device obtains the operation information sent by the user, the target device will parse and process the operation information, generate request information corresponding to the operation information, and at the same time, the target device will immediately send the request information to the server to which the target device is connected, and then the target device will wait for the server to return the processing result corresponding to the request information.
[0095] The request information sent by the target device may be obtained from a voice module of the target device, an operation panel of the target device, or a camera of the target device. This application does not impose any special restrictions on this.
[0096] For example, suppose the target device is a smart light bulb in a smart home system, and the server is a cloud platform. The user sends a command message to the smart light bulb through a mobile phone APP, and the command may be "turn on the light bulb." When the smart light bulb receives this command, it will immediately generate a request message: "Turn on the light bulb." Then, this request message will be sent to the connected server. After receiving the request message, the server will perform the corresponding operation, that is, control the smart light bulb to turn on. In this way, the smart light bulb will perform the corresponding operation according to the user's instructions.
[0097] Optionally, the first processing rule may also be, for example, a processing rule corresponding to the classification result, wherein the processing rule corresponding to the classification result includes: a control object stage to be confirmed, an operation mode stage to be confirmed, an entity object stage to be confirmed, and a program result stage to be completed.
[0098] The four stages of the control object to be confirmed, the operation method to be confirmed, the entity object to be confirmed, and the program result to be completed are all processes of parsing the content input by the user, with the aim of obtaining the control object to be confirmed, the entity object, the operation method and the result to be completed corresponding to the request information.
[0099] It can be understood that the stage of the control object to be confirmed refers to analyzing and processing the content input by the user to obtain the object to be controlled corresponding to the request information. For example, in a smart home system, the content input by the user may be "turn on the bedroom light", and the system can obtain the object to be controlled as "bedroom light" by analyzing and processing the input content.
[0100] The operation mode to be confirmed stage refers to analyzing and processing the user input content to obtain the operation mode corresponding to the request information. For example, in a smart home system, the user input content may be "turn on the bedroom light", and the system can derive the operation mode as "turn on" by analyzing the input content.
[0101] The entity object to be confirmed stage refers to analyzing and processing the user input content to obtain the entity object corresponding to the request information. For example, in a smart home system, the user input content may be "turn on the bedroom light". The system can obtain the entity objects "bedroom" and "light" by parsing the input content.
[0102] The pending program result stage refers to analyzing and processing the user input content to obtain the pending result corresponding to the request information. For example, in a smart home system, the user input content may be "turn on the bedroom light", and the system can obtain the pending result of "turn on the bedroom light" by analyzing the input content.
[0103] Therefore, processing the request information according to the processing rules corresponding to the classification results can not only realize the control and operation of the target device, but also improve the automation and intelligence level of the target device, thereby providing users with more convenient and efficient services.
[0104] S102: Determine whether data processing in the first processing stage is completed according to the first processing result.
[0105] The first processing result includes: data processing completed, data processing incomplete. Data processing completed is used to indicate that the request processing failed in the first processing stage; data processing incomplete is used to indicate that the request processing was successful in the first stage.
[0106] In the case of completed data processing, if the request processing is successful in the first processing stage, it means that there is no error in the data processing process of the first processing stage. At this time, the server can reprocess the new request information; and in the case of incomplete data processing, if the request processing fails in the first processing stage, it means that an error occurred in the data processing process of the first processing stage, resulting in the failure of the request to be successfully completed. Then some measures may need to be taken to solve the problem, such as switching the request engine or using an alternative data processing interface, etc., to control the server to process the request information.
[0107] The purpose of judging whether the data processing in the first processing stage is completed through the first processing result is to determine whether the control server needs to continue processing the request information.
[0108] If it is determined based on the first processing result that the data processing of the first processing stage is completed, it means that there is no need to control the server to continue processing the request information. At this time, the server can be controlled to exit the first processing stage and the target device can be controlled to execute the processing result corresponding to the first processing stage.
[0109] It can be understood that when the data processing of the request information is completed in the first processing stage, it can be considered that no error occurred when the request information was processed according to the first processing rule in the first processing stage. Therefore, the target device can quickly obtain the processing result corresponding to the request information. At the same time, the processing result can also be fed back to the user in time to avoid the defect of the user waiting for a long time.
[0110] If it is determined according to the first processing result that the data processing in the first processing stage is not completed, it indicates that the control server needs to continue processing the request information. At this time, the request information can be processed according to the second processing rule in the second stage.
[0111] It can be understood that when the data processing of the request information is not completed in the first processing stage, it can be considered that an error occurred when processing the request information according to the first processing rule in the first processing stage. Therefore, the target device cannot quickly obtain the processing result corresponding to the request information. At the same time, the server should continue to process the data of the request information. This not only avoids the defect that the user needs to restart the interaction again, but also reduces the complexity of the interaction, thereby improving the user's experience of using the target device.
[0112] Assume that there is currently an image recognition system, and users can send image requests to the server for processing. For example, a user uploads a picture containing a cat, so in the first processing stage, the server will process the image, extract features and determine whether there is a cat in the image, and determine whether the data processing of the first processing stage is completed based on the first processing result. If the first processing result is to determine that there is a cat in the image, then it can be considered that the data processing of the first processing stage is completed. At this time, the server can be controlled to exit the first processing stage and return the processing result to the target device, while triggering the target device to execute the first processing result. The first processing result may include the features of the cat in the image, the cat's eating habits, and the age of the cat.
[0113] S103: When it is determined that the data processing in the first processing stage is not completed, data processing is performed on the request information according to a second processing rule in a second processing stage to obtain a second processing result.
[0114] The second processing stage is used to indicate that the request information is processed according to the second processing rule within the second preset time. The second preset time may be, for example, 100 ms. The second processing rule may be the same as or different from the first processing rule.
[0115] When the request information is not successfully processed in the first processing stage, in order to avoid multiple interactions between the user and the target device, the request information needs to be processed according to the second processing rule in the second processing stage to obtain a second processing result.
[0116] It can be understood that when the request information sent by the target device fails to be successfully processed in the first processing stage, in order to ensure that the server can process the request information sent by the target device in a timely manner and reduce the number of interactions between the user and the target device, it is necessary to immediately enter the second processing stage and control the server to perform data processing on the request information according to the second processing rules to obtain the second processing result of the second processing stage.
[0117] In this step, for example, when it is determined that the first processing result is that data processing is incomplete, the second processing stage can be immediately entered, and the server can be controlled to process the request information according to the second processing rule to obtain the second processing result.
[0118] For example, when a user issues a voice command to a mobile device to "query the weather for the current week", the mobile device will immediately generate a request message and send it to the server. If the target weather data interface is used in the first processing stage, the interface timeout causes the weather information to fail to be returned, the server will use the backup weather data interface to query in the second processing stage to ensure that the user can obtain the weather information for the current week as soon as possible.
[0119] S104: Generate response information according to the second processing result, and send the response information to the target device.
[0120] The second processing result includes: data processing completed, data processing incomplete. Data processing completed is used to indicate that the request processing failed in the second processing stage; data processing incomplete is used to indicate that the request processing was successful in the second stage. The response information is used to indicate that a reminder is given to the user through the target device.
[0121] It is understandable that, in the case of data processing completion, if the request processing is successful in the second processing stage, it means that an error occurred in the data processing of the first processing stage, but no error occurred in the data processing of the second processing stage, so it can be determined that the request was successfully processed; and in the case of data processing incomplete, if the request processing fails in the second processing stage, it means that an error occurred in the data processing of the first processing stage, and an error also occurred in the data processing of the second processing stage, so the request could not be successfully completed. Then some measures may need to be taken to solve the problem, such as first using an offline algorithm or switching engines, etc., to control the server to process the request information.
[0122] When the second processing result is that the data processing is incomplete, the server will generate response information related to the incomplete data processing, such as "processing successful" or a similar message, and send it to the target device so that the target device responds; and when the second processing result is that the data processing is completed, the server will generate response information related to the completed data processing, such as "processing failed" or a similar message, and send it to the target device so that the target device responds.
[0123] Different response information is generated according to the second processing result, and the response information is sent to the target device so that the target device can execute different response information. This not only improves the accuracy of data processing, but also improves the stability and reliability of the target device, thereby improving the user experience and meeting the user's usage needs.
[0124] The multi-stage request response method provided in this embodiment processes the request information according to the first processing rule of the first processing stage after acquiring the request information sent by the target device, and when it is determined that the processing rule of the first processing stage is not completed, continues to process the request information according to the second processing rule of the second processing stage, and obtains the second processing result, and then sends the response information corresponding to the second processing result to the target device. This method not only solves the problem that the user waits too long for the device to respond during the interaction process, but also avoids the shortcomings of the user waiting for a long time or needing to restart the interaction, thereby reducing the complexity of the interaction, improving the flexibility of the device, and thus improving the user's experience of using the target device.
[0125] Figure 2 The process of the multi-stage request response method provided in the embodiment of the present application Figure 2 The execution subject of this embodiment is, for example, a server of the target device. Figure 2 As shown, this embodiment is in Figure 1 Based on the embodiment, the multi-stage request response method is described in detail. The multi-stage request response method provided in this embodiment includes:
[0126] S201: Obtain request information sent by the target device.
[0127] Part of the content of step S201 is similar to that of the above step S101 and will not be repeated here.
[0128] S202: The first processing rules include: an intent analysis stage, a program recommendation stage, an instruction generation stage, and an instruction sending stage. According to the request information, in the first processing stage, the request information is analyzed for intent to obtain a analysis result corresponding to the request information.
[0129] The intent parsing stage is used to instruct the intent entity parsing of the user input content. The program recommendation stage is used to instruct the recommendation of appropriate programs for the user to choose based on the intent parsing stage by calling corresponding rules or other algorithms. The instruction generation stage is used to instruct the generation of instruction information corresponding to the recommended program based on the program recommendation stage. The instruction sending stage is used to instruct the generated instruction to be sent to the target device.
[0130] After receiving the request information, the server can be controlled to enter the first processing stage first, and the server can be controlled to process the request information according to the first processing rule, that is, the request information is processed according to the intention analysis stage, program recommendation stage, instruction generation stage and instruction sending stage.
[0131] It is understandable that if the first processing rule is a processing rule corresponding to a process stage, then each processing stage in the process stage usually has a sequence. When the user's request information is obtained, the request information can be firstly parsed according to the intent parsing stage, because only after the user's intention is determined can the program recommendation and instruction generation be further performed, and then the program corresponding to the request information is determined on the basis of the intent parsing stage, and then the instruction information corresponding to the program recommendation is generated on the basis of the program recommendation, and finally the control server sends the generated instruction information to the corresponding target device to improve the accuracy and efficiency of the server and provide users with better services and experience.
[0132] For example, if the current target device is a clothes processing device, when the user sends the instruction "I want to wash sweaters and shirts" to the clothes processing device, the clothes processing device will first generate request information corresponding to the instruction "I want to wash sweaters and shirts" and immediately send it to the server corresponding to the clothes processing device. After the server obtains the instruction information, the server will first enter the first processing stage and perform intent parsing on the instruction information to obtain the parsing result corresponding to the request information, that is, the intent result is "washing" and the entity result is "sweater" and "shirt".
[0133] S203: Determine a target program corresponding to the analysis result according to the analysis result.
[0134] Among them, the target program is used to indicate the highest degree of match with the parsing result.
[0135] Determining the target program corresponding to the analysis result according to the analysis result refers to the process of finding the program or service that can realize the user's request according to the analysis result after the server parses the content input by the user, and determining it as the target program.
[0136] It is understandable that when the analysis result corresponding to the request information is obtained, in order to ensure that the target program can meet the needs of the user, it is necessary to determine the target program corresponding to the analysis result based on the analysis result.
[0137] For example, if the current target device is a clothing processing device, then when it is determined that the clothing processing device has obtained the intention result corresponding to the instruction issued by the user ("I want to wash sweaters and shirts"), which is "washing", and the entity results are "sweaters" and "shirts", you can continue to select a suitable target program based on the intention result and the entity result, that is, you can determine that the "air wash" program can meet the instruction sent by the user.
[0138] S204: Generate execution instructions corresponding to the target program according to the target program.
[0139] After determining the target program to be executed by the target device, the corresponding execution instructions can be generated according to the program's operation requirements, parameter settings, business logic, etc. These instructions can be operation commands for specific devices or systems, or guidance information for users to operate, so that the target device can execute the instructions.
[0140] It can be understood that the process of generating execution instructions corresponding to the target program according to the target program can better control the target device to execute the target program, so as to improve the execution efficiency of the target device and further improve the user's operating experience.
[0141] For example, if the current target device is a clothing processing device, then when it is determined that the clothing processing device has obtained the target program corresponding to the instruction issued by the user ("I want to wash sweaters and shirts") as the "air wash" program, an instruction corresponding to the target program can be generated.
[0142] S205: Send the execution instruction to the target device, and obtain the sub-processing result corresponding to each stage of the first processing rule.
[0143] The sub-processing results include: data processing completed, data processing incomplete. Data processing completed is used to indicate that the request processing is successful in a specific stage. Data processing incomplete is used to indicate that the request processing fails in a specific stage.
[0144] It can be understood that data processing completion means that the server has successfully completed all processing steps of this stage; while data processing incomplete means that the server may have errors in the processing process due to various reasons, such as request interface timeout, processing step errors, etc. Therefore, in the case of incomplete data processing, the server needs to re-process the failed processing stage.
[0145] After the execution instruction is determined, the generated execution instruction needs to be sent to the target device so that the target device can execute according to the execution instruction. After the generated instruction is sent to the target device, the sub-processing results corresponding to each stage of the first processing rule need to be obtained to determine whether the target device can execute the instruction.
[0146] By acquiring the sub-processing results of each stage of the first processing rule, the specific processing results of each stage can be obtained, and then it can be determined whether the target device can execute the instruction.
[0147] It is understandable that since each stage in the first processing rule usually has a time limit, the server may not be able to successfully execute data processing on the request information according to the first processing rule. If a stage fails, it means that the server cannot successfully process the request information within the time of the stage, thus causing the entire processing to fail.
[0148] If the sub-processing results corresponding to each stage are all data processing completed, it can be determined that the target device can execute the instruction; if the sub-processing results corresponding to each stage are not data processing completed, it can be determined that the target device cannot execute the instruction.
[0149] For example, in a clothing processing device, the server can generate an "air wash" execution instruction based on the user's request and send it to a control module that controls the clothing processing device. The control module then executes the instruction and ultimately implements the "air wash" operation.
[0150] S206: Obtain the first processing result according to the sub-processing result of each stage of the first processing rule.
[0151] Since the first processing rule includes multiple stages, and the processing method of each stage is different, in each stage, the server will process the request information according to the preset processing steps and generate the sub-processing result of the stage. When each stage of the first processing rule is successfully completed, the server will combine the sub-processing results of each stage to obtain the final first processing result.
[0152] It can be understood that the first processing result is determined based on the sub-processing results corresponding to the multiple stages. If the sub-processing results corresponding to the multiple stages are all data processing completed, then it can be determined that the first processing result is also data processing completed; if the sub-processing results corresponding to the multiple stages have a data processing failure result, then it can be determined that the first processing result is also a data processing failure.
[0153] For example, the current server needs to process the request information "I want to wash sweaters and shirts" sent by the target. When the server processes the request information according to the first processing rule in the first processing stage, the server suddenly encounters a poor network status during the intent parsing stage. Therefore, data processing failure will occur when processing the request information during the intent parsing stage, which will cause the first processing result of the first processing stage to be data processing failure.
[0154] S207: Determine whether each sub-processing result in the first processing result indicates that data processing is completed; if so, execute step S208; if not, execute step S209.
[0155] The purpose of judging whether each sub-processing result in the first processing result indicates that data processing has been completed is to determine whether the target device has an execution instruction that can be executed.
[0156] If each sub-processing result in the first processing result indicates that data processing is completed, it means that the target device has execution instructions to execute, and it can also be determined that data processing in the first processing stage is completed. At this time, a first response information can be generated according to the first processing result.
[0157] If each sub-processing result in the first processing result does not indicate that the data processing is completed, it means that the target device has no execution instructions to execute, and it can also be determined that the data processing of the first processing stage is not completed. At this time, third response information can be generated.
[0158] It is understandable that if the server fails to complete processing the request information according to the first processing rule in the first processing stage, it means that the execution instruction corresponding to the request information has not been generated, so the target device cannot obtain the correct execution instruction. Therefore, the target device cannot correctly perform the corresponding operation, and may even cause errors or abnormal behaviors.
[0159] S208: Determine that the data processing in the first processing stage has been completed.
[0160] S209: Determine that the data processing in the first processing stage is not completed.
[0161] S210: Generate first response information according to the first processing result, where the first response information is used to prompt the user that the request information has been processed.
[0162] When it is determined that the data processing of the first processing stage has been completed, first response information may be generated according to the first processing result, so that the target device provides a prompt to the user regarding the completion status of the requested information processing.
[0163] The first response information may be, for example, text information, voice information, image information, or video information, and this application does not impose any special restrictions on this.
[0164] By sending the first response information to the user, the user can promptly understand the processing status of the request and take corresponding actions. This can not only improve the user's trust in the target device, but also improve the user's experience of using the target device.
[0165] Optionally, after generating the first response information according to the first processing result, the target device should also be controlled to directly execute the acquired execution instruction.
[0166] S211: Generate third response information, where the third response information is used to prompt the user that data processing is being performed on the request information.
[0167] When it is determined that the data processing of the first processing stage is not completed, third response information can be generated according to the first processing result, so that the target device provides a prompt to the user about the incomplete processing of the requested information.
[0168] The third response information may be, for example, text information, voice information, image information, or video information, and this application does not impose any special restrictions on this.
[0169] It can be understood that the third response information is feedback information of an intermediate step between the first processing stage and the second processing stage, such as "your request is being processed, please wait".
[0170] By sending the third response information to the user, the user can more clearly understand the processing flow and status of the request and better grasp the processing result of the request. This can not only improve the user's trust in the target device and the user experience, but also enable the user to better utilize the services provided by the target device.
[0171] S212: In the second processing stage, data processing is performed on the request information according to the second processing rule to obtain a second processing result.
[0172] Step S212 is similar to the above-mentioned step S103 and will not be described in detail here.
[0173] S213: Generate response information according to the second processing result, and send the response information to the target device.
[0174] Step S213 is similar to the above-mentioned step S104 and will not be described in detail here.
[0175] The multi-stage request response method provided in this embodiment, after obtaining the request information sent by the target device, first controls the server to enter the first processing stage, and at the same time controls the server to process the request information according to the processing rules of each stage of the first processing rule, and then determines the first processing result corresponding to the first processing stage according to the sub-processing results of each stage, and then controls the target device to execute different response information according to the first processing result, and finally, when the first processing result is in an unfinished state, controls the server to enter the second processing stage, and at the same time controls the server to re-process the request information according to the second processing rule. This method reduces the user's waiting time by optimizing the interaction process, makes the interaction simpler, and improves the user's experience of using the target device.
[0176] Figure 3 The process of the multi-stage request response method provided in the embodiment of the present application Figure 3 The execution subject of this embodiment is, for example, a server of the target device. Figure 3 As shown, this embodiment is in Figure 2 Based on the embodiment, the steps after determining that the data processing in the first processing stage is not completed and processing the request information according to the second processing rule in the second processing stage are described in detail. The multi-stage request response method provided in this embodiment includes:
[0177] S301: Determine at least one target stage in which data processing is not completed among multiple stages of the first processing rule according to the sub-processing results corresponding to each stage of the first processing rule.
[0178] Among them, according to the sub-processing results corresponding to each stage of the first processing rule, at least one target stage in which data processing is not completed in multiple stages of the first processing rule is determined, which means that among the multiple stages of the first processing rule, the sub-processing result of at least one stage indicates that data processing is not completed.
[0179] It can be understood that each stage has a corresponding sub-processing result, and by judging these sub-processing results, it can be determined whether the data processing of each stage has been completed. If the sub-processing result of a certain stage indicates that the data processing is not completed, then it can be determined that the stage is at least one target stage, that is, it can be determined that the data processing is not completed in the target stage.
[0180] After the sub-processing results corresponding to each stage of the first processing rule are determined, the target stage corresponding to the unfinished data processing result can be found from the sub-processing results corresponding to each stage.
[0181] By judging the sub-processing results of each stage, the target stage where data processing is not completed can be discovered in time, thereby avoiding continuing processing on the completed stage and improving processing efficiency.
[0182] S302: According to the request information, reprocess the data of the at least one target stage in a second processing stage according to a second processing rule to obtain a second processing result.
[0183] The target stage refers to the stage where data needs to be reprocessed.
[0184] When it is determined that the first processing result corresponding to the first processing stage is incomplete data processing, the control server needs to immediately enter the second processing stage, and at the same time, the control server re-processes the data of the target stage according to the second processing rule to obtain the second processing result.
[0185] It is understandable that when the result of the first processing stage indicates that the data processing is not completed, it is necessary to immediately enter the second processing stage and reprocess the data of the target stage according to the second processing rule to obtain the second processing result. The purpose of this is to ensure that the data processing can be completed smoothly and avoid errors or omissions.
[0186] For example, suppose that in the first processing stage, the first interface corresponding to the instruction generation stage fails and times out due to poor current network conditions. Therefore, the server will immediately enter the second processing stage and select the backup interface corresponding to the instruction generation stage so that the server can successfully generate execution instructions corresponding to the target program.
[0187] S303: Determine whether the second processing result indicates that the data processing is completed; if so, execute step S304; if not, execute step S305.
[0188] The purpose of judging whether the second processing result indicates that the data processing has been completed is to determine whether the data processing corresponding to the target stage has been completed.
[0189] It is understandable that during the data processing process, if a stage in the first processing stage fails, the failed stage needs to be reprocessed in the second processing stage. However, it is not enough to just reprocess the failed stage, and it is also necessary to confirm whether the second processing stage has successfully completed the data processing of the failed stage. Because if the second processing stage does not successfully complete the data processing of the failed stage, it may cause the request information sent by the target device to fail to be processed in a short time.
[0190] If the second processing result indicates that the data processing has been completed, it means that the data processing corresponding to the target stage has been completed. At this time, it can be determined that the request information has been completed and a first response message is generated.
[0191] If the second processing result indicates that the data processing is completed, then this means that the data processing corresponding to the target stage is completed. Once the data processing corresponding to the target stage is completed, the server will generate a first response message as a response to the target device's request information, thereby informing the user that the request information processing is completed.
[0192] If the second processing result does not indicate that the data processing is completed, it means that the data processing corresponding to the target device is not completed. At this time, it can be determined that the request information is not completed, and the second response information is generated.
[0193] If the second processing result indicates that the data processing is not completed, it means that the data processing corresponding to the target stage is still not completed. Therefore, the server will generate a second response message to inform the target device that the processing of the requested information is not yet completed, and then inform the user that the processing of the requested information is not yet completed.
[0194] S304: Determine that the request information has been completed, generate first response information, and send the first response information to the target device.
[0195] The first response information is used to prompt the user that the requested information has been processed.
[0196] By generating the first response information and sending it to the target device, the server can provide the target device with the result information of the request information processing, thereby completing the entire data processing and response process. This not only provides timely and accurate information to the target device, but also enables the user to make timely decisions based on the response information provided by the target device, thereby improving the use efficiency of the target device.
[0197] For example, when the server determines that the request information has been completed, it can send the generated response information to the target device, and the target device can announce to the user through the voice module "The air washing program is set for you."
[0198] Optionally, after generating the first response information according to the second processing result, the target device should be controlled to directly execute the acquired execution instruction.
[0199] S305: Determine that the request information is not completed, generate second response information, and send the second response information to the target device.
[0200] The second response information is used to prompt the user that the request information has not been processed.
[0201] By generating the second response information and sending it to the target device, the server can provide the target device with the result information of the request information processing, so that the target device can perform corresponding operations or wait according to the result information. This ensures that the target device can obtain feedback on the processing status in a timely manner and feed it back to the user in a timely manner, so that the user can obtain the latest processing information and avoid long waiting time.
[0202] For example, when the server determines that the request information is not completed, it can send the generated response information to the target device, and the target device can broadcast to the user through the voice module "I still haven't found it. When I understand it, I will remind you or ask me again later."
[0203] S306: Perform data processing on the at least one target stage in a third processing stage to obtain a third processing result.
[0204] The third processing stage is any processing stage after the second processing stage.
[0205] The third processing result includes: data processing completed, data processing incomplete. Data processing completed is used to indicate that the request processing is successful in the third processing stage. Data processing incomplete is used to indicate that the request processing fails in the third processing stage.
[0206] When the data processing of the second processing stage is not completed, in order to ensure that the server can process the request information sent by the target device in a timely manner and reduce the number of interactions between the user and the target device, it is necessary to immediately enter the third processing stage and control the server to process the acquired data, thereby obtaining the third processing result of the third processing stage.
[0207] For example, assuming that in the second processing stage, the backup interface corresponding to the instruction generation stage still fails to time out due to the poor current network status, the server will immediately enter the third processing stage and switch the network engine to ensure that the current network engine can meet the use of the current backup interface, so that the server can generate program instructions corresponding to the program recommendation.
[0208] S307: If the third processing result indicates that the request information processing is completed, generate response permission information, and send the response permission information to the target device.
[0209] The response permission information is used to prompt the user that the request information processing has been completed and whether the target device is allowed to execute the program instructions corresponding to the request information.
[0210] It can be understood that by providing the response permission information, the server can ensure that the target device receives a clear permission indication after the request information processing is completed, so that the target device can reliably execute the corresponding program instructions.
[0211] Optionally, when the target device receives the response permission information sent by the server, in order to determine that the target device can successfully execute the program instruction, the following operations should also be included: controlling the target device to execute the response permission information and obtain the consent execution instruction sent by the user; the target device determines whether the consent execution instruction sent by the user is received within a third preset time period; if so, controlling the target device to execute the program instruction according to preset rules; the target device determines whether new instruction information is received, and if not, controlling the target device to be in the waiting execution stage; if so, when the threshold between the new instruction information and the historical instruction information reaches the preset threshold, controlling the target device to re-execute the program instruction.
[0212] The third preset time length may be, for example, 10 seconds. The new instruction information is used to indicate the instruction information that the user re-sends to the target device. The historical instruction information is used to indicate that the target device has completed the instruction information sent by the user. The preset threshold is used to indicate that the similarity between the new instruction information and the historical instruction information is the highest.
[0213] By obtaining the consent execution instruction sent by the user, confirmation of the user's consent to execute the instruction can be obtained, so as to ensure that the target device obtains the user's explicit permission before executing the program instruction, thereby improving the reliability of the target device.
[0214] The purpose of determining whether the execution consent instruction sent by the user is received within the third preset time period is to determine whether the user wants the target device to continue to execute the program instruction. The purpose of the target device determining whether new instruction information is received is to determine whether the user needs to use the target device again.
[0215] If the execution consent instruction sent by the user is received within the third preset time period, it indicates that the user wants the target device to continue to execute the program instruction. At this time, the target device can be controlled to execute the program instruction according to the preset rules.
[0216] If no execution consent instruction sent by the user is received within the third preset time period, it indicates that the user does not want the target device to continue to execute the program instruction. At this time, the target device can be controlled to stop executing the response permission information.
[0217] If the target device receives new instruction information, it indicates that the user has a need to use the target device again. At this time, it can be determined whether the threshold between the new instruction information and the historical instruction information reaches the preset threshold. When it is determined that the threshold between the new instruction information and the historical instruction information reaches the preset threshold, the target device is controlled to re-execute the program instruction.
[0218] If the target device does not receive new instruction information, it indicates that the user has no need to use the target device again. At this time, the target device can be controlled to be in the waiting stage.
[0219] The multi-stage request response method provided in this embodiment, when determining that the first processing result is that the data processing is not completed, first determines at least one target stage in which the data processing is not completed in the multiple stages of the first processing rule, and then controls the server to enter the second processing stage, and at the same time controls the server to re-process the data of the target stage according to the second processing rule, and then determines different execution methods according to the second processing result of the second processing stage, and finally, when the second processing result is that the data processing is not completed, continues to enter the third processing stage to ensure that the request information can be successfully processed. This method not only avoids the disadvantage that the user needs to wait for a long time or restart the interaction, but also reduces the complexity of the interaction, thereby improving the flexibility of the device, thereby improving the user's experience of using the target device.
[0220] Figure 4 This is a schematic diagram of the structure of the multi-stage request response device provided by this application. Figure 4 As shown, the present application provides a multi-stage request response device, and the multi-stage request response device 400 includes:
[0221] The acquisition module 401 is used to acquire the request information sent by the target device;
[0222] The processing module 402 is used to perform data processing on the request information according to the first processing rule in a first processing stage according to the request information to obtain a first processing result;
[0223] A determination module 403 is used to determine whether the data processing of the first processing stage is completed according to the first processing result;
[0224] The determination module 403 is further configured to, when it is determined that the data processing in the first processing stage is not completed, perform data processing on the request information according to a second processing rule in a second processing stage to obtain a second processing result;
[0225] A generating module 404, configured to generate response information according to the second processing result;
[0226] The sending module 405 is used to send the response information to the target device.
[0227] Optionally, the processing module 402 is further configured to perform intent analysis on the request information in the first processing stage according to the request information to obtain an analysis result corresponding to the request information;
[0228] The determination module 403 is further used to determine a target program corresponding to the analysis result according to the analysis result;
[0229] The generating module 404 is further used to generate an execution instruction corresponding to the target program according to the target program;
[0230] The sending module 405 is further used to send the execution instruction to the target device;
[0231] The acquisition module 401 is further used to acquire the sub-processing results corresponding to each stage of the first processing rule;
[0232] The determining module 403 is specifically configured to obtain the first processing result according to the sub-processing results corresponding to each stage of the first processing rule.
[0233] Optionally, the device further includes: a judgment module 406;
[0234] The judging module 406 is used to judge whether each sub-processing result in the first processing result indicates that data processing has been completed;
[0235] The determination module 403 is further configured to determine that the data processing in the first processing stage has been completed when each sub-processing result in the first processing result indicates that the data processing has been completed;
[0236] The determining module 403 is further configured to determine that the data processing in the first processing stage is not completed when each sub-processing result in the first processing result does not indicate that the data processing is completed.
[0237] Optionally, the determination module 403 is further configured to determine at least one target stage in which data processing is not completed among the multiple stages of the first processing rule according to the sub-processing results corresponding to each stage of the first processing rule;
[0238] The determination module 403 is further configured to re-process the data of the at least one target stage according to the request information and the second processing rule in the second processing stage to obtain a second processing result.
[0239] Optionally, the judging module 406 is further configured to judge whether the second processing result indicates that data processing has been completed;
[0240] The determination module 403 is further configured to determine that the request information has been completed and generate first response information when the second processing result indicates that the data processing has been completed;
[0241] The sending module 405 is further used to send the first response information to the target device, where the first response information is used to prompt the user that the request information has been processed;
[0242] The determination module 403 is further configured to determine that the request information is not completed when the second processing result does not indicate that the data processing is completed;
[0243] The generating module 404 is further configured to generate second response information when it is determined that the request information is not completed;
[0244] The sending module 405 is further configured to send the second response information to the target device, where the second response information is configured to prompt the user that the request information has not been processed.
[0245] Optionally, the determination module 403 is further configured to perform data processing on the at least one target stage in a third processing stage to obtain a third processing result, and the third processing stage is any processing stage after the second processing stage;
[0246] The generating module 404 is further configured to generate response permission information when the third processing result indicates that the request information processing is completed;
[0247] The sending module 405 is further used to send the response permission information to the target device, where the response permission information is used to prompt the user that the request information processing has been completed and whether to allow the target device to execute the program instructions corresponding to the request information.
[0248] Optionally, the generating module 404 is further configured to generate first response information according to the first processing result when it is determined that the data processing of the first processing stage has been completed, wherein the first response information is used to prompt the user that the request information has been processed;
[0249] After determining that the data processing in the first processing stage is not completed, the method further includes:
[0250] The generating module 404 is further used to generate third response information, and the third response information is used to prompt the user that data processing is being performed on the request information.
[0251] Figure 5 This is a schematic diagram of the structure of the multi-stage request response device provided by this application. Figure 5 As shown, the present application provides a multi-stage request response device, and the multi-stage request response device 500 includes: a receiver 501, a transmitter 502, a processor 503 and a memory 504.
[0252] Receiver 501, used for receiving instructions and data;
[0253] A transmitter 502, used for sending instructions and data;
[0254] Memory 504, used to store computer-executable instructions;
[0255] The processor 503 is used to execute the computer-executable instructions stored in the memory 504 to implement the various steps performed by the multi-stage request response method in the above embodiment. For details, please refer to the relevant description in the above multi-stage request response method embodiment.
[0256] Optionally, the memory 504 may be independent or integrated with the processor 503 .
[0257] When the memory 504 is independently provided, the electronic device further includes a bus for connecting the memory 504 and the processor 503 .
[0258] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a multi-stage request response method as executed by the multi-stage request response device described above is implemented.
[0259] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0260] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A multi-stage request response method, characterized in that: include: Acquire request information sent by the target device, and perform data processing on the request information in a first processing stage according to a first processing rule according to the request information to obtain a first processing result; Determining whether data processing in the first processing stage is completed according to the first processing result; When it is determined that the data processing in the first processing stage is not completed, performing data processing on the request information according to a second processing rule in a second processing stage to obtain a second processing result; Generate response information according to the second processing result, and send the response information to the target device.
2. The method according to claim 1, characterized in that The first processing rule includes: an intention analysis stage, a program recommendation stage, an instruction generation stage, and an instruction sending stage. According to the request information, data processing is performed on the request information in accordance with the first processing rule in the first processing stage to obtain a first processing result, including: According to the request information, in the first processing stage, the request information is analyzed for intent to obtain a parsing result corresponding to the request information; According to the analysis result, determining a target program corresponding to the analysis result; According to the target program, generating an execution instruction corresponding to the target program; Sending the execution instruction to the target device, and obtaining the sub-processing result corresponding to each stage of the first processing rule; The first processing result is obtained according to the sub-processing results corresponding to each stage of the first processing rule.
3. The method according to claim 1, characterized in that Determining whether data processing in the first processing stage is completed according to the first processing result includes: Determining whether each sub-processing result in the first processing result indicates that data processing has been completed; If yes, it is determined that the data processing of the first processing stage has been completed; If not, it is determined that the data processing in the first processing stage is not completed.
4. The method according to claim 3, characterized in that The step of performing data processing on the request information according to the second processing rule in the second processing stage to obtain a second processing result includes: Determine, according to the sub-processing results corresponding to each stage of the first processing rule, at least one target stage in which data processing is not completed among the multiple stages of the first processing rule; According to the request information, data of the at least one target stage is reprocessed in a second processing stage according to a second processing rule to obtain a second processing result.
5. The method according to claim 4, characterized in that The step of generating response information according to the second processing result and sending the response information to the target device includes: Determining whether the second processing result indicates that data processing is completed; If yes, it is determined that the request information has been completed, a first response information is generated, and the first response information is sent to the target device, where the first response information is used to prompt the user that the request information has been processed; If not, it is determined that the request information is not completed, a second response information is generated, and the second response information is sent to the target device, where the second response information is used to prompt the user that the request information is not processed completely.
6. The method according to claim 5, characterized in that After sending the second response information to the target device, the method further includes: Performing data processing on the at least one target stage in a third processing stage to obtain a third processing result, wherein the third processing stage is any processing stage after the second processing stage; If the third processing result indicates that the request information processing is completed, response permission information is generated and sent to the target device. The response permission information is used to prompt the user that the request information processing is completed and whether the target device is allowed to execute the program instructions corresponding to the request information.
7. The method according to claim 1, characterized in that The method further comprises: When it is determined that the data processing of the first processing stage has been completed, generating first response information according to the first processing result, wherein the first response information is used to prompt the user that the request information has been processed; After determining that the data processing in the first processing stage is not completed, the method further includes: A third response message is generated, where the third response message is used to prompt the user that data processing is being performed on the request message.
8. A multi-stage request response device, characterized in that: include: An acquisition module, used to acquire request information sent by a target device; A processing module, configured to perform data processing on the request information according to a first processing rule in a first processing stage according to the request information to obtain a first processing result; a determination module, configured to determine whether the data processing in the first processing stage is completed according to the first processing result; The determination module is further configured to, when determining that the data processing in the first processing stage is not completed, perform data processing on the request information according to a second processing rule in a second processing stage to obtain a second processing result; A generating module, used for generating response information according to the second processing result; A sending module is used to send the response information to the target device.
9. A multi-stage request response device, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the multi-stage request response method according to any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer execution instructions, which, when executed by a processor, are used to implement the multi-stage request response method as described in any one of claims 1-7.