Instruction processing method and device
By rewriting and executing the business instruction set, the problem of application function limitations was solved, business efficiency and user experience were improved, and costs were reduced.
Patent Information
- Application Number
- CN202410758922.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2025-12-12
AI Technical Summary
Existing application limitations lead to low user business efficiency and excessive human and material costs.
By identifying the application corresponding to the intent instruction, the intent instruction is rewritten into a business instruction set and sent to the application for execution. By utilizing pre-set rewriting rules and user profile generation, combined with message queues and remote storage space, the execution and monitoring of business instructions are optimized.
It improved business execution efficiency, reduced human and material costs, and enhanced user experience and application flexibility.
Smart Images

Figure CN121116396A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an instruction processing method and apparatus. Background Technology
[0002] Applications offer a variety of functions, allowing users to fulfill their business needs. For example, instant messaging software provides front-end and back-end developers with real-time communication capabilities. Developers can use instant messaging to create group chats, send messages, and manage group members to facilitate business integration, troubleshooting, and developer mobility.
[0003] In the process of realizing this invention, the inventors discovered that the prior art has at least the following problems:
[0004] The application provides users with many limited functions, resulting in low efficiency for users to carry out their business and requiring excessive human and material costs. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide an instruction processing method and apparatus that can flexibly execute corresponding business instructions based on an application, thereby improving business execution efficiency and reducing labor costs.
[0006] To achieve the above objectives, according to a first aspect of the present invention, an instruction processing method is provided, comprising: determining an application corresponding to a received intent instruction; rewriting the intent instruction into a business instruction set consisting of at least one business instruction; wherein the business instruction is an instruction that can be recognized and executed by the application; sending the business instruction set to the application, and receiving an instruction processing result returned by the application after executing the business instruction set.
[0007] Optionally, rewriting the intent instruction into a business instruction set consisting of at least one business instruction includes: rewriting the intent instruction into a business instruction set consisting of at least one business instruction according to a pre-set rewriting rule; wherein the rewriting rule records the conversion relationship between intent instructions that cannot be recognized and supported by the application and business instructions that can be recognized and supported by the application.
[0008] Optionally, the intent instruction is rewritten into a set of business instructions consisting of at least one business instruction, including: in response to the intent instruction to send target information to multiple target objects, the intent instruction is rewritten into multiple business instructions to send target information to a single target object; wherein the target objects in each business instruction are different from each other, and the multiple business instructions constitute a set of business instructions.
[0009] Optionally, intent instructions are generated based on independently generated requirements or based on business information returned by the application.
[0010] Optionally, the intent instruction is rewritten into a set of business instructions consisting of at least one business instruction, including: generating based on business information returned by the application in response to the intent instruction; determining the user information and sending time corresponding to the business information; generating a corresponding user profile based on the business information, user information and sending time; determining the intent instruction corresponding to the user profile; and rewriting the intent instruction into a set of business instructions consisting of at least one business instruction.
[0011] Optionally, the business instruction set is sent to the application, including: transmitting the business instructions included in the business instruction set to a pre-set message queue; determining the service interface corresponding to each business instruction according to the order of the business instructions in the message queue; and calling the service interface to enable the application to execute the corresponding business instruction.
[0012] Optionally, the message queue storing business instructions is used as the old message queue. After calling the service interface, this embodiment of the invention further includes: determining whether the business instruction has been executed successfully; if the business instruction has not been executed successfully, determining a new message queue from a pre-set message queue set, transferring the business instructions that have not been executed successfully in the old message queue to the new message queue, and calling the service interface to enable the application to execute the business instructions in the new message queue.
[0013] Optionally, after the business instruction set is sent to the application, this embodiment of the invention further includes: generating an execution log of the business instruction set; in response to receiving a log query request, determining the corresponding target business instruction, and obtaining the target execution log corresponding to the target business instruction from the execution log.
[0014] Optionally, before sending the service instruction set to the application, this embodiment of the invention further includes: encapsulating the service instruction set according to a pre-set data structure; and transmitting the encapsulated service instruction set to a pre-set remote storage space according to a pre-set network interface.
[0015] The business instruction set is distributed to the application, including: parsing the business instruction set in the remote storage space according to the data structure to obtain multiple business instructions; determining the execution order and service interface of the multiple business instructions; and calling the corresponding service interface in sequence according to the execution order of the multiple business instructions so that the application can execute the corresponding business instructions.
[0016] Optionally, the business instruction set is sent to the application, including: calling a system service, converting the business instructions in the business instruction set into corresponding events to be executed, encapsulating the events to be executed into messages, and sending the messages to a message queue; calling messages in the message queue through a looper, and calling the application through the system service, so as to process the application components corresponding to the messages according to the messages.
[0017] Optionally, embodiments of the present invention further include: determining operation management information corresponding to the received intent instruction; generating a corresponding operation management instruction set based on the operation management information; and sending the operation management instruction set to the application so that the application executes the operation management instructions included in the operation management instruction set.
[0018] According to a second aspect of the present invention, an instruction processing apparatus is provided, comprising: a determining module, configured to determine an application corresponding to a received intent instruction; a generating module, configured to rewrite the intent instruction into a business instruction set consisting of at least one business instruction; wherein the business instruction is an instruction that can be recognized and executed by the application; and an execution module, configured to send the business instruction set to the application and receive an instruction processing result returned by the application after executing the business instruction set.
[0019] Optionally, the generation module is further configured to: rewrite the intent instruction into a business instruction set consisting of at least one business instruction according to a pre-set rewriting rule; wherein the rewriting rule records the conversion relationship between intent instructions that cannot be recognized and supported by the application and business instructions that can be recognized and supported by the application.
[0020] Optionally, the generation module is also used to: in response to the intent instruction to send target information to multiple target objects, rewrite the intent instruction into multiple business instructions to send target information to a single target object; wherein the target objects in each business instruction are different from each other, and the multiple business instructions constitute a business instruction set.
[0021] Optionally, intent instructions are generated based on independently generated requirements or based on business information returned by the application.
[0022] Optionally, the generation module is further configured to: generate based on business information returned by the application in response to the intent instruction; determine the user information and sending time corresponding to the business information; generate the corresponding user profile based on the business information, user information and sending time; determine the intent instruction corresponding to the user profile; and rewrite the intent instruction into a business instruction set consisting of at least one business instruction.
[0023] Optionally, the execution module is further configured to include: transmitting the business instructions included in the business instruction set to a pre-set message queue; determining the service interface corresponding to each business instruction in sequence according to the order of the business instructions in the message queue; and calling the service interface to enable the application to execute the corresponding business instruction.
[0024] Optionally, the message queue storing business instructions is used as the old message queue. After calling the service interface, the execution module is also used to: determine whether the business instruction has been executed successfully; if the business instruction has not been executed successfully, determine a new message queue from the pre-set message queue set, transfer the business instructions that have not been executed successfully in the old message queue to the new message queue, and call the service interface so that the application can execute the business instructions in the new message queue.
[0025] Optionally, after the business instruction set is sent to the application, the execution module is also used to: generate an execution log of the business instruction set; in response to receiving a log query request, determine the corresponding target business instruction, and obtain the target execution log corresponding to the target business instruction from the execution log.
[0026] Optionally, the execution module is further configured to: encapsulate the business instruction set according to a pre-set data structure before sending the business instruction set to the application; transmit the encapsulated business instruction set to a pre-set remote storage space according to a pre-set network interface; parse the business instruction set in the remote storage space according to the data structure to obtain multiple business instructions; determine the execution order and service interface of the multiple business instructions; and sequentially call the corresponding service interface according to the execution order of the multiple business instructions so that the application executes the corresponding business instructions.
[0027] Optionally, the execution module is also used to: call system services, convert business instructions in the business instruction set into corresponding events to be executed, encapsulate the events to be executed into messages, and send the messages to the message queue; call messages in the message queue through a looper, and call the application through system services to process the application components corresponding to the messages according to the messages.
[0028] Optionally, the execution module is also used to: determine the operation management information corresponding to the received intent instruction; generate a corresponding operation management instruction set based on the operation management information; and send the operation management instruction set to the application so that the application executes the operation management instructions included in the operation management instruction set.
[0029] According to a third aspect of the present invention, an electronic device is provided, comprising:
[0030] One or more processors;
[0031] Storage device for storing one or more programs.
[0032] When one or more programs are executed by one or more processors, the one or more processors implement the methods of any of the above embodiments.
[0033] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon that, when executed by a processor, implements the methods of any of the above embodiments.
[0034] According to a fifth aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method of any of the above embodiments.
[0035] One embodiment of the above invention has the following advantages or beneficial effects: It determines the application corresponding to the received intent instruction, rewrites the intent instruction into a business instruction set consisting of at least one business instruction, and sends the business instruction set to the application. By enabling the application to execute the business instruction set, the functionality of the application is expanded, allowing for more flexible execution of corresponding business instructions based on the application, improving user experience and business execution efficiency, and reducing the human and material costs required for business execution. Rewriting the intent instruction into a business instruction set consisting of at least one business instruction according to pre-set rewriting rules improves rewriting efficiency and facilitates personalized rewriting schemes. Based on business information, user information, and sending time, a corresponding user profile is generated, and a business instruction set is generated based on the user profile. This system can improve the efficiency of business instruction set generation and execution; storing business instructions in a message queue in a specific order and executing them based on that order ensures accurate execution and improves efficiency; monitoring the execution results and re-executing unsuccessful instructions improves completion rates, ensures accuracy, and enhances user experience; generating execution logs and retrieving target logs based on log query requests facilitates troubleshooting and optimization of the execution process; and using a remote instruction processing platform reduces local resource consumption and improves processing efficiency.
[0036] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0037] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0038] Figure 1 This is a schematic diagram of the main flow of the instruction processing method according to an embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of the overall flow of an instruction processing method according to a possible embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of multi-module cooperation in an instruction processing method according to a possible embodiment of the present invention;
[0041] Figure 4 This is a schematic diagram illustrating the underlying principle of an instruction processing method according to a possible embodiment of the present invention;
[0042] Figure 5 This is a schematic diagram illustrating the underlying principle of an instruction processing method according to another applicable embodiment of the present invention;
[0043] Figure 6 This is a schematic diagram of the main flow of an instruction processing method according to a possible embodiment of the present invention;
[0044] Figure 7 This is a schematic diagram of the main modules of an instruction processing apparatus according to an embodiment of the present invention;
[0045] Figure 8 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;
[0046] Figure 9 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0047] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0048] It should be noted that the collection, use, storage, sharing and transfer of user personal information involved in the technical solution of the present invention all comply with the provisions of relevant laws and regulations, and require notification to users and obtaining their consent or authorization. When applicable, user personal information is subjected to de-identification and / or anonymization and / or encryption technical processing.
[0049] Applications offer a variety of functions, allowing users to fulfill their business needs. For example, instant messaging software provides front-end and back-end developers with real-time communication capabilities. Developers can use instant messaging to create group chats, send messages, and manage group members to facilitate business integration, troubleshooting, and developer mobility.
[0050] Applications offer users many limitations on functionality. For example, instant messaging software often limits the number of messages a user can send in a group chat and restricts how to invite new members to the group. This results in low efficiency and flexibility for users to perform their business tasks, and requires excessive human and material resources.
[0051] In view of this, according to a first aspect of the present invention, an instruction processing method is provided.
[0052] Figure 1 This is a schematic diagram of the main flow of the instruction processing method according to an embodiment of the present invention. Figure 1 As shown, the instruction processing method according to an embodiment of the present invention mainly includes the following steps S101 to S103.
[0053] Step S101: Determine the application corresponding to the received intent instruction.
[0054] In this embodiment of the invention, the execution entity parses the received intent command, determines the corresponding application name, storage address, or process ID, identifies the application corresponding to the intent command based on the above information, and then monitors the application to obtain its status and information. The execution entity in this embodiment monitors the application's running status, information input to the application from external sources, information output by the application to external sources, and so on.
[0055] For example, multiple users communicate business progress, convey business needs, and manage personnel flow through a third-party instant messaging software A on their mobile phones to achieve business operations. However, instant messaging software has functional limitations, which reduces the efficiency of business operations. Therefore, users install and launch the execution subject of this embodiment on their mobile phones, open the application permissions required by the execution subject of this embodiment, and send intent commands to the execution subject of this embodiment. The execution subject of this embodiment parses the intent commands, determines that the corresponding application is instant messaging software A, and monitors instant messaging software A. Specifically, it monitors the chat messages entered by the user in instant messaging software A, monitors the pages and prompts displayed by instant messaging software A, monitors page events occurring on the pages displayed by instant messaging software A, and so on.
[0056] After granting the necessary permissions to the execution entity of this embodiment of the invention, the execution entity monitors the corresponding application according to the received intent instruction, which can provide basic data for expanding the functionality of the application and improving the running efficiency of the application, thereby improving business execution efficiency.
[0057] In some alternative embodiments, intent instructions are generated based on independently generated needs. For example, user-inputted messages may be used as intent instructions, such as: forwarding a message to multiple group chats, forwarding multiple messages to a specific recipient, sending a webpage link or image to a specific recipient, etc.
[0058] In some alternative embodiments, the intent instruction is generated based on business information returned by the application. For example, suppose a user intends to generate a poster through the application and promote it to multiple chat groups the user belongs to within the application. After the application generates the poster according to the user's request and returns it, an intent instruction can be generated based on the poster returned by the application. This intent instruction indicates that the poster needs to be sent to each of the aforementioned multiple chat groups.
[0059] Step S102: Rewrite the intent instruction into a business instruction set consisting of at least one business instruction; wherein, the business instruction is an instruction that can be recognized and executed by the application.
[0060] In this embodiment of the invention, the intent instruction is an instruction that cannot be recognized or executed by the application. The process of rewriting the intent instruction into a set of business instructions consisting of at least one business instruction is the process of rewriting the intent instruction that cannot be recognized or executed by the application into several business instructions that can be recognized and executed by the application. The specific implementation of the rewriting operation can be selectively set according to the actual situation. For example, semantic analysis can be used to break down the intent command into multiple business commands that the application can recognize and support execution. For example, if the application only supports forwarding a single message to a single group chat or a single contact, and the intent command is to forward a message to multiple group chats, after determining the intent through semantic analysis, the intent command is broken down into multiple business commands, each of which instructs the message to be sent to a group chat. Alternatively, semantic analysis can be used to determine the target operation corresponding to the intent command, and business commands that the application can recognize and support execution can be generated. For example, if the intent command is to send a file in a document format that the application does not support to a user's contact in the application, after determining the intent through semantic analysis, multiple business commands corresponding to the intent can be generated: convert the file in a document format that the application does not support to an image, and send the converted image to the corresponding contact in the application. In practical applications, when rewriting intent instructions into a set of business instructions consisting of at least one business instruction, pre-set rewriting rules can be used. These rules record the conversion relationships between intent instructions that cannot be recognized or executed by the application and business instructions that can be recognized and executed by the application. Rewriting intent instructions into a set of business instructions consisting of at least one business instruction according to pre-set rules improves rewriting efficiency. When adjustments to the rewriting rules are needed, the above settings can be changed. Different users can set rewriting rules separately, and the same user can also set rewriting rules for different scenarios, thus achieving personalized rewriting solutions.
[0061] In an optional embodiment, rewriting the intent instruction into a business instruction set consisting of at least one business instruction includes: responding to the intent instruction being to send target information to multiple target objects, rewriting the intent instruction into multiple business instructions to send the target information to a single target object; wherein the target objects in each business instruction are different, and the multiple business instructions constitute a business instruction set. For example, if the application only supports forwarding a single message to a single group chat or a single contact, and the intent instruction is to forward a message to multiple group chats, the intent instruction is split into multiple business instructions, each business instruction instructing the aforementioned message to be sent to one group chat. It should be noted that when each business instruction is rewritten according to the intent instruction, the specific implementation method of the rewriting operation can be selectively set. For example, the business instruction can be rewritten using the aforementioned semantic analysis method, or it can be rewritten according to pre-set rewriting rules. When the intent instruction is generated based on business information returned by the application, it can be rewritten into a business instruction set consisting of at least one business instruction through semantic analysis or pre-set rewriting rules. Optionally, when rewriting an intent instruction into a business instruction set consisting of at least one business instruction, in response to the intent instruction being generated based on business information returned by the application, the user information and sending time corresponding to the business information are determined; based on the business information, user information, and sending time, a corresponding user profile is generated; the intent instruction corresponding to the user profile is determined; and the intent instruction is rewritten into a business instruction set consisting of at least one business instruction. Business information includes: text, images, audio, video, and other data sent by the user to the application, page event data generated by the user clicking, dragging, or checking on the pages displayed by the application, etc.
[0062] In this embodiment of the invention, the executing entity sorts the acquired business information by sending time, traverses the sorted business information, and converts the business information into corresponding business instructions. For example, the executing entity detects that the instant messaging software has received a set of business information, which is a series of page event data. Specifically, the executing entity sorts this set of business information by sending time, obtaining: a selection event, a forwarding event, a checkmark event B1, a checkmark event B2, a checkmark event B3, and a send event. The objects of the selection event, forwarding event, and send event are business files within the chat window, and the objects of the three checkmark events are three different business groups. Therefore, the user wants to forward the business files simultaneously to the three different business groups they have selected. Based on the acquired business information, the executing entity generates three business instructions to forward files to the business groups, enabling the application to forward the business files within the chat window to the three different business groups selected by the user using the business instructions generated by the executing entity of this embodiment.
[0063] It should be noted that the monitored instant messaging software does not provide the function of forwarding information to multiple groups simultaneously. Therefore, users need to manually forward the file three times to different business groups. However, when the execution entity of this embodiment monitors the instant messaging software, it can generate corresponding business instructions based on the obtained business information and execute them on the instant messaging software. This automatically realizes the user's expectation of forwarding business files to multiple groups simultaneously, improving business execution efficiency, reducing user operations, and enhancing user experience.
[0064] Step S103: Send the business instruction set to the application and receive the instruction processing result returned by the application after executing the business instruction set.
[0065] A business instruction set is a collection of business instructions generated by the execution entity in this embodiment of the invention. A business instruction set includes one or more business instructions. After generating the business instruction set, the execution entity in this embodiment of the invention sends the business instruction set to the application program, so that the application program executes the business instructions included in the business instruction set.
[0066] For example, in this embodiment of the invention, the execution entity sequentially causes the application to execute the corresponding business instructions according to their storage order in the business instruction set. Preferably, there is a business logic relationship between the multiple business instructions. For example, the business instruction set includes multiple business instructions such as business instruction C1, business instruction C2, and business instruction C3. After executing business instruction C1, the execution result of business instruction C1 is obtained. If business instruction C1 is executed successfully, business instruction C2 is executed; if business instruction C1 is not executed successfully, business instruction C3 is executed. As another example, if business instruction C1 is not executed successfully, business instruction C1 is executed repeatedly until business instruction C1 is executed successfully or the number of times business instruction C1 is executed exceeds a preset execution count threshold.
[0067] As another example, when the monitored application is an instant messaging software, the business instructions generated by the execution subject of this embodiment of the invention include: sending messages to individuals, sending messages to group chats, forwarding files to multiple individuals or multiple group chats, setting the number of people in a group chat, pushing images, forwarding mini-programs, pushing audio and video files, adding friends by mobile phone number, adding friends from outside the group chat, adding to-do events, creating a group chat, checking group chat restriction information, modifying the group name, managing group chat information, adding users to a group chat, deleting users in a group chat, modifying friend information, setting friend tags, etc.
[0068] Deploying business instruction sets to applications, enabling them to execute the included business instructions, reduces the number of times users need to interact with the application, lowers labor costs, expands application functionality, improves user efficiency, and enhances business execution efficiency. Setting business logic among multiple business instructions allows for more flexible execution, further improving execution efficiency and enhancing the user experience.
[0069] According to a possible embodiment of the present invention, when the intent instruction is generated based on the business information returned by the application, the business information is first parsed to obtain the user information and sending time corresponding to the business information. The user information represents the user information possessed by the user who sent the business information, including: user code, user name, user position, etc. The sending time represents the date and time when the user sent the business information.
[0070] The executing entity of this invention generates a corresponding user profile based on business information, user information, and sending time. The user profile includes basic information such as the user's name, position, and to-do items, as well as the user's historical operation records and application usage habits. The user's application usage habits include the frequency of use of each function in the application, the duration of time the user stays on each page of the application, etc. Based on the application usage habits, it is possible to analyze which functions of the application the user frequently uses and which functions of the application the user frequently spends more time on.
[0071] Based on user profiles, query pre-stored business data in the cache or database. This business data includes previously used business instruction templates. These templates are business instructions without pre-filled information; by filling in the templates, the corresponding business instruction is obtained. For example, business instruction templates might include: "Forward {business file} to {multiple group chats or individuals}", or "Send a message to {user} at {fixed time every day}", where the content within curly braces "{}" is the business information to be filled in. Each user is associated with a set of business instruction templates; different users may use the same or different templates. Preferably, multiple business instruction templates for the same user are sorted based on their usage frequency, and the sorted templates are stored in the database or cache.
[0072] After determining the user profile, the received business information is matched with the business instruction template associated with that user profile. The business information is then populated into the successfully matched business instruction template to generate the corresponding business instruction. Based on the generated business instructions, a business instruction set is formed. For example, the business information includes: business file D1 and group chats D2 and D3. This business information matches the business instruction template "Forward {business file} to {multiple group chats or individuals}". Therefore, the business information is populated into the successfully matched business instruction template to obtain the business instruction "Forward business file D1 to group chats D2 and D3".
[0073] Based on user information, business information, and sending time, a user profile is generated, which can determine the user's application usage habits and historical operation records, making it easier to generate business instructions efficiently and accurately. Matching business information with business instruction templates can improve the efficiency of business instruction generation, which in turn improves business execution efficiency.
[0074] According to another possible embodiment of the present invention, when a set of business instructions is sent to an application, the business instructions included in the set are first transmitted to a pre-set message queue. Specifically, before the business instructions are transmitted to the message queue, the business instructions are sorted. For example, each business instruction has a corresponding business sequence number, and the business instructions are sorted according to the business sequence number; or, for example, each business instruction has a corresponding execution condition, the execution condition of each business instruction is determined, and it is determined whether the execution result of the preceding business instructions meets the execution condition of the unsorted business instructions. If the execution condition of the business instructions is met, it indicates that the unsorted business instructions can be executed under the current execution result, and the executable business instructions are sorted. The sorted business instructions are then transmitted to the message queue sequentially.
[0075] Based on the order of business instructions in the message queue, the service interface corresponding to each business instruction is determined sequentially. Multiple service interfaces are pre-defined; these interfaces execute the business logic corresponding to the business instructions. The business code corresponding to each business instruction is determined, and the service interface associated with the business code is queried according to a pre-defined instruction service association table.
[0076] Calling the service interface enables the application to execute corresponding business instructions. Specifically, the business instructions are passed to the corresponding service interface, which receives the instructions, uses them as method parameters, and executes the corresponding business logic. This business logic then calls the application's functional interfaces, enabling the application to complete the functionality required by the business instructions.
[0077] For example, the service interface for sending business information receives a business instruction of "send {statistical report} to group chat E every day at {8:00}". The business logic corresponding to the service interface identifies the time "8:00" for sending business information, the recipient of business information "group chat E", and the business information to be sent "statistical report" from the above business instruction. Then, the service interface for sending business information calls the function interface of the instant messaging software at 8:00 every day to send the statistical report to group chat E.
[0078] Executing corresponding business instructions according to the sorting order in the message queue can accurately and efficiently execute business instructions, improving business execution efficiency; calling service interfaces to enable the application to execute business instructions can reduce manual operations by users, reduce labor costs, and improve user experience.
[0079] According to another possible embodiment of the present invention, the message queue storing business instructions is used as the old message queue; after the application executes the business instructions included in the business instruction set, it is determined whether the business instructions were executed successfully. For example, after each business instruction is executed, the return result of the execution process is received. If the return result is "1" or "true", the business instruction is determined to have been executed successfully; if the return result is "0" or "false", the business instruction is determined to have not been executed successfully. As another example, the execution entity of this embodiment monitors the execution status of business instructions. If the business instruction is to forward a business file, after the business instruction is executed, it is determined whether the business file that was just forwarded exists in the corresponding window, or the execution log of the application is obtained to determine whether there is an execution log corresponding to the forwarding of the business file. If the business file exists in the window or there is an execution log generated due to the forwarding of the business file, the business instruction for forwarding the business file is determined to have been executed successfully; otherwise, the business instruction is determined to have not been executed successfully.
[0080] If a business instruction fails to execute, a new message queue is determined from a pre-set message queue set. Specifically, the message queue set includes multiple message queues used to process business instructions from multiple business instruction sets in parallel. The message queue used to store business instructions about to be executed is selected as the new message queue. The business instructions in the new message queue are the instructions that are about to be executed.
[0081] For example, the execution flow of the pre-set business instructions is as follows: after transmitting all the business instructions included in the business instruction set to the message queue, wait for 5 seconds, and then execute the business instructions in the message queue; the execution subject of this embodiment determines whether there is a message queue that is in a waiting state, and uses the message queue in the waiting state as a new message queue; if there is no message queue in the waiting state, monitor other message queues, and after other message queues enter the waiting state, use the message queue that enters the waiting state as a new message queue.
[0082] Unexecuted business instructions from the old message queue are transferred to the new message queue. Specifically, these instructions are moved to the tail of the new message queue. The application then executes the business instructions in the new message queue according to the service interface. It should be noted that the business instructions in both the old and new message queues are intended for execution on the same application.
[0083] Monitoring the execution results of business instructions and re-executing them if they fail can improve the completion rate of business instructions, ensure the accuracy of business execution, and enhance the user experience.
[0084] According to another possible embodiment of the present invention, after the business instruction set is sent to the application, an execution log of the business instruction set is generated. Specifically, the execution entity of this embodiment monitors the execution time, execution order, called service interfaces and application function interfaces, execution results, exception information thrown during execution, etc., of each business instruction in the business instruction set. Based on the above information, an execution log of the business instruction set is generated.
[0085] In this embodiment of the invention, the execution entity receives a log printing request, determines the range of logs to be printed, takes the execution logs within the log range as the target logs, prints the target logs, or generates a corresponding file from the target logs and exports it to a storage location set by the user.
[0086] In this embodiment of the invention, the executing entity parses the received log query request, determines the corresponding instruction code, determines the corresponding target business instruction based on the instruction code, and obtains the target execution log corresponding to the target business instruction from the execution log.
[0087] The target execution log is the execution log generated after the target business instruction is executed. For example, the log query request carries time parameters and business scenario parameters. The execution subject of this embodiment determines the corresponding query time according to the time parameters and the corresponding target business scenario according to the business scenario parameters. Then, it obtains "the execution log generated after the target business instruction is executed within the query time and in the target business scenario" from the execution log.
[0088] After executing a business instruction, an execution log is generated. By querying the log, the corresponding target log can be obtained, which facilitates troubleshooting problems during the business execution process and helps to optimize and improve the business execution process.
[0089] According to a possible embodiment of the present invention, before the business instruction set is sent to the application, it is encapsulated according to a pre-set data structure. Specifically, the data structure used to encapsulate the business instruction set is determined based on information such as the number of business instructions stored in the business instruction set and the business scenario of the business instruction set. For example, if the number of business instructions included in the business instruction set is greater than a pre-set instruction number threshold, the business instruction set is encapsulated as JSON data; if the number of business instructions included in the business instruction set is greater than the pre-set instruction number threshold, the business instruction set is encapsulated as array data. As another example, if the business scenario of the business instruction set is to send a certain business information to a group chat, the business instruction set is encapsulated as mapping table data.
[0090] Based on the pre-configured network interface, the encapsulated business instruction set is transmitted to a pre-configured remote storage space. Specifically, the remote storage space is a cloud storage space pre-created through cloud services and does not occupy the storage space of the user's device.
[0091] When distributing a business instruction set to the application, the data structure used to encapsulate the business instruction set is first determined. Based on this data structure, the business instruction set in the remote storage space is parsed to obtain multiple business instructions. Preferably, these multiple business instructions are stored in a message queue in the remote storage space. The execution order of the multiple business instructions is determined; for example, the sorting order of the business instructions in the message queue is used as the execution order. The corresponding service interfaces for each business instruction are then determined. The corresponding service interfaces are called sequentially according to the execution order of the multiple business instructions, so that the application executes the corresponding business instructions.
[0092] Transmitting business instruction sets to cloud storage reduces the storage space required by user devices. Sorting these instructions within the cloud and calling corresponding service interfaces improves execution efficiency and avoids consuming resources on the application's running device. Encapsulating the business instruction sets ensures accurate transmission to cloud storage, enhancing the stability and security of instruction transmission.
[0093] According to another possible embodiment of the present invention, after receiving the operation request, the method further includes: determining the operation management information corresponding to the received intent instruction, wherein the operation management information is information related to daily operations for managing operations, and includes operation management information for multiple business scenarios such as product selection and operation material management. Based on the operation management information, a corresponding operation management instruction set is generated; the operation management instruction set is then sent to the application to enable the application to execute the operation management instructions included in the operation management instruction set. Specifically, the service interface corresponding to the operation management instruction is determined, and the corresponding service interface is called to enable the application to execute the corresponding operation management instruction. Preferably, before sending the operation management instruction set to the application, the operation management instructions included in the operation management instruction set are transmitted to a message queue, and the corresponding service interfaces are called sequentially according to the order in the message queue to enable the application to execute the corresponding operation management instruction.
[0094] Based on operational management information, operational management instructions are generated and executed on applications, which can improve business execution efficiency, maintain daily operational rules, and reduce labor costs.
[0095] Figure 2 This is a schematic diagram illustrating the overall flow of an instruction processing method according to a reference embodiment of the present invention. For example, as shown... Figure 2 As shown, the execution entity of this embodiment includes: a program assistant, an operation management module, and a background management module. First, the user installs the program assistant on their mobile phone, grants the necessary permissions, and then starts the program assistant. Preferably, a centralized control module is used to install the program assistant in parallel on multiple mobile phones, avoiding manual operation by the user and improving the installation efficiency of the program assistant. The program assistant monitors applications, for example, instant messaging software, receives chat information from the instant messaging software, and transmits the chat information to the operation management module. The operation management module receives the messages, filters out unnecessary messages, generates a business instruction set, and returns the business instruction set to the program assistant. The program assistant uses a message queue to sort the business instruction set, and executes the corresponding business instructions according to the sorting result, returning the execution result to the operations management module. The backend management module sends various requests to the operations management module, such as customer acquisition management requests, personnel management requests, software management requests, material management requests, product selection management requests, and group chat management requests. The operations management module determines the corresponding operations management information based on the requests sent by the operations backend management module, generates corresponding operations management instructions based on the operations management information, and maintains daily operations according to the operations management instructions. When the user manually closes the program assistant on the phone, the program assistant stops monitoring the application.
[0096] Figure 3This is a schematic diagram illustrating the multi-module collaboration of an instruction processing method according to a possible embodiment of the present invention. For example, as shown... Figure 3 As shown, the execution entity of this embodiment includes: a program assistant, a cloud phone platform, an operation management module, a backend management module, etc.; wherein, the program assistant provides application monitoring services, including: scheduled services, message monitoring, information parsing, adding friends, setting notes, parsing images, joining group chats, leaving group chats, etc.; the cloud phone platform provides remote command processing services, including: sending messages, replying to messages, forwarding messages, group management, pushing audio and video, adding and deleting friends, creating groups, adding friend tags, etc.; the operation management module is used to provide accessibility parsing services, including: parsing nodes, parsing login, parsing homepage, parsing windows, executing clicks, entering and leaving pages, parsing scrolling, permission processing, image monitoring, etc.; the backend management module is used to provide network services and log services, wherein the network services include: basic library encapsulation, polling service, version management, interface requests, and the log services include: log storage and log printing, etc.
[0097] Figure 4 This is a schematic diagram illustrating the underlying principle of an instruction processing method according to a reference embodiment of the present invention. For example, as shown... Figure 4 As shown, the implementation process of the accessibility resolution service is completed collaboratively by the following three parts: the program assistant of the assisting application, the assisted application, and the system service AccessibilityManagerService. The relationship between the three is as follows: Figure 4 As shown, the program assistant does not need to communicate directly with the assisted application, but instead communicates through a system service (SystemService). When a business instruction set is issued to the application, the system service is invoked to convert the business instructions in the instruction set into corresponding events to be executed, encapsulate the events to be executed into messages, and send the messages to the message queue. The looper calls the messages in the message queue, and the system service calls the application to process the application components corresponding to the messages.
[0098] Figure 5 This is a schematic diagram illustrating the underlying principle of an instruction processing method according to another applicable embodiment of the present invention. Exemplarily, the barrier-free parsing event transmission process is as follows: Figure 5As shown, when a user touches the phone screen, the touch event is passed to the touched view. After enabling accessibility-related configurations in the application assistant, the system service converts the event in accessibility mode. Specifically, the process of passing the touch event to the component (Activity) is implemented through the handler message mechanism. The message is encapsulated in a message and sent to the message queue (MessageQueue) where the handler message mechanism resides. The Looper continuously calls messages in the message queue for processing. The process of distributing the event to the specific view involves event dispatching, interception, and processing, ultimately calling the view that needs to be processed.
[0099] Both the TalkBackService of the application assistant and the user's manual touch on the phone interface can call AccessibilityManageService. During the call from TalkBackService to AccessibilityManageService, AccessibilityManageService calls the application, locates the touched view, and performs actions such as clicking and swiping.
[0100] It should be noted that, in this embodiment of the invention, all operations on the application are not initiated by the user's touch, but rather by the TalkBackService of the application assistant. The touched view includes various page components such as buttons, checkboxes, and text boxes included in the application, for example, a search button, a back button, etc.
[0101] Figure 6 This is a schematic diagram of the main flow of an instruction processing method according to a possible embodiment of the present invention. Figure 6 As shown, the instruction processing method may include:
[0102] Step S601: Determine the application corresponding to the received intent instruction;
[0103] Step S602: In response to the intent instruction, generate based on the business information returned by the application, and determine the user information and sending time corresponding to the business information;
[0104] Step S603: Generate a corresponding user profile based on business information, user information, and sending time;
[0105] Step S604: Generate a business instruction set based on the user profile;
[0106] Step S605: Transmit the business instructions included in the business instruction set to a pre-set message queue;
[0107] Step S606: Determine the service interface corresponding to each business instruction in turn according to the order of the business instructions in the message queue;
[0108] Step S607: Call the service interface to enable the application to execute the corresponding business instructions.
[0109] The specific implementation details of the instruction processing method of the present invention described above have been explained in detail in the instruction processing method section above, so the details will not be repeated here.
[0110] According to a second aspect of the present invention, an instruction processing apparatus is provided. Figure 7 This is a schematic diagram of the main modules of an instruction processing apparatus according to an embodiment of the present invention, such as... Figure 7 As shown, the instruction processing device 700 mainly includes: a determination module 701, used to determine the application corresponding to the received intent instruction; a generation module 702, used to rewrite the intent instruction into a business instruction set consisting of at least one business instruction; wherein, the business instruction is an instruction that can be recognized and supported by the application; and an execution module 703, used to send the business instruction set to the application and receive the instruction processing result returned by the application after executing the business instruction set.
[0111] Optionally, the generation module 702 is further configured to: rewrite the intent instruction into a business instruction set consisting of at least one business instruction according to a pre-set rewriting rule; wherein the rewriting rule records the conversion relationship between intent instructions that cannot be recognized and supported by the application and business instructions that can be recognized and supported by the application.
[0112] Optionally, the generation module 702 is further configured to: in response to the intent instruction to send target information to multiple target objects, rewrite the intent instruction into multiple business instructions to send target information to a single target object; wherein the target objects in each business instruction are different from each other, and the multiple business instructions constitute a business instruction set.
[0113] Optionally, intent instructions are generated based on independently generated requirements or based on business information returned by the application.
[0114] Optionally, the generation module 702 is further configured to: generate based on the business information returned by the application in response to the intent instruction; determine the user information and sending time corresponding to the business information; generate a corresponding user profile based on the business information, user information and sending time; determine the intent instruction corresponding to the user profile; and rewrite the intent instruction into a business instruction set consisting of at least one business instruction.
[0115] Optionally, the execution module 703 is further configured to include: transmitting the business instructions included in the business instruction set to a pre-set message queue; determining the service interface corresponding to each business instruction in sequence according to the order of the business instructions in the message queue; and calling the service interface to enable the application to execute the corresponding business instruction.
[0116] Optionally, the message queue storing business instructions is used as the old message queue. After calling the service interface, the execution module 703 is also used to: determine whether the business instruction has been executed successfully; if the business instruction has not been executed successfully, determine a new message queue from the pre-set message queue set, transfer the business instructions that have not been executed successfully in the old message queue to the new message queue, and call the service interface so that the application can execute the business instructions in the new message queue.
[0117] Optionally, after the business instruction set is sent to the application, the execution module 703 is further configured to: generate an execution log of the business instruction set; in response to receiving a log query request, determine the corresponding target business instruction, and obtain the target execution log corresponding to the target business instruction from the execution log.
[0118] Optionally, the execution module 703 is further configured to: encapsulate the business instruction set according to a pre-set data structure before sending the business instruction set to the application; transmit the encapsulated business instruction set to a pre-set remote storage space according to a pre-set network interface; parse the business instruction set in the remote storage space according to the data structure to obtain multiple business instructions; determine the execution order and service interface of the multiple business instructions; and sequentially call the corresponding service interface according to the execution order of the multiple business instructions so that the application executes the corresponding business instructions.
[0119] Optionally, the execution module 703 is further configured to: call system services, convert business instructions in the business instruction set into corresponding events to be executed, encapsulate the events to be executed into messages, and send the messages to a message queue; call messages in the message queue through a looper, and call the application through system services to process the application components corresponding to the messages according to the messages.
[0120] Optionally, the execution module 703 is further configured to: determine the operation management information corresponding to the received intent instruction; generate a corresponding operation management instruction set based on the operation management information; and send the operation management instruction set to the application so that the application executes the operation management instructions included in the operation management instruction set.
[0121] It should be noted that the specific implementation details of the instruction processing device in the embodiments of the present invention have been described in detail in the instruction processing method above, so the details will not be repeated here.
[0122] According to the technical solution of the present invention, the application corresponding to the received intent instruction is determined, the intent instruction is rewritten into a business instruction set consisting of at least one business instruction, and the business instruction set is sent to the application. By executing the business instruction set on the application, the functionality of the application is expanded, enabling more flexible execution of corresponding businesses based on the application, improving user experience and business execution efficiency, and reducing the human and material costs required for business execution. Rewriting the intent instruction into a business instruction set consisting of at least one business instruction according to a pre-set rewriting rule can improve rewriting efficiency and facilitate personalized rewriting schemes. Based on business information, user information, and sending time, a corresponding user profile is generated, and a business instruction set is generated based on the user profile, which can improve business efficiency. Improving the efficiency of instruction set generation enhances business execution efficiency. Storing business instructions in a message queue in a specific order and executing them based on this order ensures accurate execution and improves operational efficiency. Monitoring the execution results and re-executing instructions that fail improves completion rates, ensures operational accuracy, and enhances user experience. Generating execution logs after instruction execution and retrieving target logs from them facilitates troubleshooting and optimization. Using a remote instruction processing platform reduces local resource consumption and improves processing efficiency.
[0123] According to a third aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the present invention.
[0124] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the present invention.
[0125] According to a fifth aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method of any of the above embodiments.
[0126] Figure 8 An exemplary system architecture 800 is shown that can be applied to the instruction processing method or instruction processing apparatus of the present invention.
[0127] like Figure 8As shown, system architecture 800 may include terminal devices 801, 802, and 803, a network 804, and a server 805. Network 804 serves as the medium for providing communication links between terminal devices 801, 802, and 803 and server 805. Network 804 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0128] Users can use terminal devices 801, 802, and 803 to interact with server 805 via network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as business operation applications, application function extension applications, search applications, instant messaging tools, email clients, social platform software, etc. (for example only).
[0129] Terminal devices 801, 802, and 803 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0130] Server 805 can be a server that provides various services, such as a backend management server that supports business operation requests sent from upstream terminal devices 801, 802, and 803 (for example only). The backend management server can determine the application corresponding to the received intent instruction, rewrite the intent instruction into a business instruction set consisting of at least one business instruction, send the business instruction set to the application, receive the instruction processing result returned by the application after executing the business instruction set, and feed back the business operation status (for example only) to the terminal device.
[0131] It should be noted that the instruction processing method provided in the embodiments of the present invention is generally executed by server 805, and correspondingly, the instruction processing device is generally located in server 805. The instruction processing method provided in the embodiments of the present invention can also be executed by terminal devices 801, 802, and 803, and correspondingly, the instruction processing device can be located in terminal devices 801, 802, and 803.
[0132] It should be understood that Figure 8 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0133] The following is for reference. Figure 9 It shows a schematic diagram of the structure of a computer system 900 suitable for implementing a terminal device of the present invention. Figure 9 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0134] like Figure 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 902 or programs loaded from storage section 908 into random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the system 900. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0135] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 910 as needed so that computer programs read from it can be installed into storage section 908 as needed.
[0136] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by central processing unit (CPU) 901, it performs the functions defined above in the system of the embodiments of this invention.
[0137] It should be noted that the computer-readable medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the embodiments of the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the embodiments of the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer programs according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0139] The modules described in the embodiments of the present invention can be implemented in software or in hardware. The described modules can also be located in a processor. For example, a processor can be described as including a determining module, a generating module, and an executing module. The names of these modules do not necessarily limit the module itself; for example, the determining module can also be described as "a module that issues business instruction sets to applications."
[0140] In another aspect, embodiments of the present invention also provide a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device implements the following method: determining an application program corresponding to a received intent instruction; rewriting the intent instruction into a business instruction set consisting of at least one business instruction; wherein the business instruction is an instruction that can be recognized and executed by the application program; sending the business instruction set to the application program, and receiving the instruction processing result returned by the application program after executing the business instruction set.
[0141] According to the technical solution of the present invention, the application corresponding to the received intent instruction is determined, the intent instruction is rewritten into a business instruction set consisting of at least one business instruction, and the business instruction set is sent to the application. By executing the business instruction set on the application, the functionality of the application is expanded, enabling more flexible execution of corresponding businesses based on the application, improving user experience and business execution efficiency, and reducing the human and material costs required for business execution. Rewriting the intent instruction into a business instruction set consisting of at least one business instruction according to a pre-set rewriting rule can improve rewriting efficiency and facilitate personalized rewriting schemes. Based on business information, user information, and sending time, a corresponding user profile is generated, and a business instruction set is generated based on the user profile, which can improve business efficiency. Improving the efficiency of instruction set generation enhances business execution efficiency. Storing business instructions in a message queue in a specific order and executing them based on this order ensures accurate execution and improves operational efficiency. Monitoring the execution results and re-executing instructions that fail improves completion rates, ensures operational accuracy, and enhances user experience. Generating execution logs after instruction execution and retrieving target logs from them facilitates troubleshooting and optimization. Using a remote instruction processing platform reduces local resource consumption and improves processing efficiency.
[0142] The specific embodiments described above do not constitute a limitation on the scope of protection of the embodiments of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the embodiments of the present invention should be included within the scope of protection of the embodiments of the present invention.
Claims
1. An instruction processing method, characterized by, The method comprises: determining an application corresponding to a received intent instruction; rewriting the intent instruction into a business instruction set composed of at least one business instruction, wherein the business instruction is an instruction that can be recognized and supported for execution by the application; downloading the business instruction set to the application and receiving an instruction processing result returned by the application after executing the business instruction set.
2. The method of claim 1, wherein, The rewriting of the intent instruction into the business instruction set composed of at least one business instruction comprises: rewriting the intent instruction into the business instruction set composed of at least one business instruction according to a preset rewriting rule, wherein the rewriting rule records a conversion relationship between an intent instruction that cannot be recognized and supported for execution by the application and a business instruction that can be recognized and supported for execution by the application.
3. The method of claim 1, wherein, The rewriting of the intent instruction into the business instruction set composed of at least one business instruction comprises: in response to the intent instruction being to send target information to multiple target objects, rewriting the intent instruction into multiple business instructions of sending target information to a single target object, wherein the target objects in each business instruction are different from each other, and the multiple business instructions constitute the business instruction set.
4. The method of claim 1, wherein, The intent instruction is generated based on an independently generated demand or based on business information returned by the application.
5. The method of claim 4, wherein, The rewriting of the intent instruction into the business instruction set composed of at least one business instruction comprises: in response to the intent instruction being generated based on the business information returned by the application, determining user information and a sending time corresponding to the business information; generating a corresponding user portrait according to the business information, the user information, and the sending time; determining an intent instruction corresponding to the user portrait; rewriting the intent instruction into the business instruction set composed of at least one business instruction.
6. The method according to any one of claims 1 to 5, characterized in that, The downloading of the business instruction set to the application comprises: transmitting the business instructions included in the business instruction set to a preset message queue; determining a service interface corresponding to each business instruction in turn according to an arrangement order of the business instructions in the message queue; calling the service interface to enable the application to execute the corresponding business instruction.
7. The method of claim 6, wherein, The message queue storing the business instructions is an old message queue; after the service interface is called, the method further comprises: judging whether the business instruction is successfully executed; in the case that the business instruction is not successfully executed, determining a new message queue from a preset message queue set, transmitting the business instructions that are not successfully executed in the old message queue to the new message queue, and calling the service interface to enable the application to execute the business instructions in the new message queue.
8. The method according to any one of claims 1 to 5, characterized in that, After the business instruction set is downloaded to the application, the method further comprises: generating an execution log of the business instruction set; in response to receiving a log query request, determining a target business instruction, and obtaining a target execution log corresponding to the target business instruction from the execution log.
9. The method according to any one of claims 1 to 5, characterized in that, Before the service instruction set is issued to the application program, the method further comprises: encapsulating the service instruction set according to a preset data structure; and transmitting the encapsulated service instruction set to a preset remote storage space according to a preset network interface. The service instruction set is issued to the application program, comprising: parsing the service instruction set in the remote storage space according to the data structure to obtain a plurality of service instructions; determining an execution order and a service interface of the plurality of service instructions; and sequentially calling the corresponding service interface according to the execution order of the plurality of service instructions, so that the application program executes the corresponding service instruction.
10. The method of any one of claims 1-5, wherein, The service instruction set is issued to the application program, comprising: The system service is called to convert the service instruction in the service instruction set into a corresponding to-be-executed event, encapsulate the to-be-executed event into a message, and send the message to a message queue; The message in the message queue is called by a circulator, and the application program is called by the system service to process the application program component corresponding to the message according to the message.
11. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: determining operation and management information corresponding to the received intent instruction; generating a corresponding operation and management instruction set according to the operation and management information; issuing the operation and management instruction set to the application program, so that the application program executes operation and management instructions included in the operation and management instruction set.
12. An instruction processing apparatus, characterized by, Comprise: A determining module is configured to determine an application program corresponding to a received intent instruction; A generating module is configured to rewrite the intent instruction into a service instruction set composed of at least one service instruction; wherein the service instruction is an instruction that can be recognized and supported by the application program; An executing module is configured to issue the service instruction set to the application program and receive an instruction processing result returned by the application program after executing the service instruction set.
13. An electronic device, comprising: Comprise: One or more processors; Storage devices for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-11.
14. A computer readable medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1-11.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-11.