Task execution method, system and device, terminal equipment, server, storage medium and program product

By using the collaborative work of the client and the agent in the business system, the page execution instructions are obtained and generated, and the target interface is called to execute tasks, the problem of unsuccessful task execution is solved and the successful execution of the task is achieved.

CN120406947APending Publication Date: 2025-08-01JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510503894.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The prior art cannot guarantee the success of task execution, especially in business systems, where it is difficult for an agent to successfully call the target interface, resulting in the inability to complete the page task.

Method used

By obtaining the description information of the page task on the client of the business system, sending it to the agent to extract the target parameters, generating page execution instructions, and calling the target interface to execute the task through the target page.

Benefits of technology

Ensures successful execution of page tasks and solves the problem of task failure caused by the inability to successfully call the target interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120406947A_ABST
    Figure CN120406947A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a task execution method, system and device, terminal equipment, a server, a storage medium and a program product. The method is applied to a client, the client is integrated on a service system, and the method comprises the following steps: in response to a task execution event, obtaining description information of a to-be-executed page task in the service system, and sending the description information to an intelligent agent; receiving a page execution instruction returned by the agent for the description information, the page execution instruction being generated by the agent according to a target parameter extracted from the description information, and the target parameter being a parameter required for calling a target interface in the service system; and in response to the page execution instruction, executing a target page in the business system to call a target interface through the target page, and executing the page task. According to the technical scheme of the embodiment of the invention, the success of task execution can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a task execution method, system, device, terminal device, server, storage medium, and program product. Background Art

[0002] With the extensive application of large language models (LLMs) in various fields, users are no longer satisfied with simple question-and-answer scenarios and instead hope that LLMs can truly execute tasks in business systems. At this time, the agent mode is quickly recognized by users, and users begin to use agents to execute tasks.

[0003] In the process of implementing the present invention, the inventors found the following technical problems in the prior art: The success of task execution cannot be guaranteed, which urgently needs to be solved. Summary of the Invention

[0004] Embodiments of the present invention provide a task execution method, system, device, terminal device, server, storage medium, and program product, which solve the problem that the success of task execution cannot be guaranteed.

[0005] According to one aspect of the present invention, a task execution method is provided. This method is applied to a client integrated in a business system, and the method includes:

[0006] In response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent;

[0007] Receive the page execution instruction returned by the agent for the description information, where the page execution instruction is generated by the agent according to the target parameters extracted from the description information, and the target parameters are the parameters required to call the target interface in the business system;

[0008] In response to the page execution instruction, execute the target page in the business system to call the target interface through the target page and execute the page task.

[0009] According to another aspect of the present invention, a task execution method is provided. This method is applied to an agent communicatively connected to a client integrated in a business system, and the method includes:

[0010] For the page task to be executed in the business system, receive the description information of the page task sent by the client;

[0011] Extract the target parameters from the description information and generate a page execution instruction according to the target parameters, where the target parameters are the parameters required to call the target interface in the business system;

[0012] Return the page execution instruction to the client so that the client executes the target page in the business system in response to the received page execution instruction, and calls the target interface through the target page to execute the page task.

[0013] According to another aspect of the present invention, there is provided a task execution system, which may include: a client and an agent, wherein the client is integrated on the business system; wherein,

[0014] The client is configured to, in response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent;

[0015] The agent is configured to extract target parameters from the received description information, generate a page execution instruction according to the target parameters, and return the page execution instruction to the client, wherein the target parameters are the parameters required for calling the target interface in the business system;

[0016] The client is configured to, in response to the received page execution instruction, execute the target page in the business system, and call the target interface through the target page to execute the page task.

[0017] According to another aspect of the present invention, there is provided a task execution device, which is configured on the client, the client is integrated on the business system, and the device includes:

[0018] A description information sending module, configured to, in response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent;

[0019] A page execution instruction receiving module, configured to receive the page execution instruction returned by the agent for the description information, wherein the page execution instruction is generated by the agent according to the target parameters extracted from the description information, and the target parameters are the parameters required for calling the target interface in the business system;

[0020] A target page execution module, configured to, in response to the page execution instruction, execute the target page in the business system, and call the target interface through the target page to execute the page task.

[0021] According to another aspect of the present invention, there is provided a task execution device, which is configured on the agent, the agent is communicatively connected to the client, the client is integrated on the business system, and the device includes:

[0022] A description information receiving module, configured to receive the description information of the page task sent by the client for the page task to be executed in the business system;

[0023] A page execution instruction generation module, configured to extract target parameters from the description information and generate page execution instructions according to the target parameters, where the target parameters are parameters required for invoking a target interface in a service system;

[0024] A page execution instruction return module, configured to return the page execution instructions to a client, so that the client executes a target page in the service system in response to the received page execution instructions, and invokes the target interface through the target page to execute a page task.

[0025] According to another aspect of the present invention, there is provided a terminal device on which a service system is deployed. The terminal device may include:

[0026] At least one processor; and

[0027] A memory communicatively connected to the at least one processor; wherein,

[0028] The memory stores a computer program executable by the at least one processor. When the computer program is executed by the at least one processor, the at least one processor is caused to implement the task execution method provided in any embodiment of the present invention.

[0029] According to another aspect of the present invention, there is provided a server communicatively connected to the terminal device on which a service system is deployed. The server may include:

[0030] At least one processor; and

[0031] A memory communicatively connected to the at least one processor; wherein,

[0032] The memory stores a computer program executable by the at least one processor. When the computer program is executed by the at least one processor, the at least one processor is caused to implement the task execution method provided in any embodiment of the present invention.

[0033] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the task execution method provided in any embodiment of the present invention when executed.

[0034] According to another aspect of the present invention, there is provided a computer program product storing a computer program which, when executed by a processor, implements the task execution method provided in any embodiment of the present invention.

[0035] In the technical solution of the embodiment of the present invention, the client integrated on the business system responds to the task execution event, obtains the description information of the page task to be executed in the business system, and sends the description information to the intelligent agent, so that the intelligent agent generates a page execution instruction according to the target parameters extracted from the description information; through the client, in response to the page execution instruction returned by the intelligent agent, the target page in the business system is executed, so as to execute the page task by calling the target interface in the business system. The above technical solution solves the problem that the page task cannot be successfully executed due to the failure to successfully call the target interface by means of the target page calling the target interface, thereby ensuring the successful execution of the page task.

[0036] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0038] Figure 1 is a flowchart of a task execution method provided according to an embodiment of the present invention;

[0039] Figure 2 is a flowchart of another task execution method provided according to an embodiment of the present invention;

[0040] Figure 3 is a structural block diagram of a task execution system provided according to an embodiment of the present invention;

[0041] Figure 4 is a structural block diagram of an optional example in a task execution system provided according to an embodiment of the present invention;

[0042] Figure 5 is a flowchart of an optional example in a task execution system provided according to an embodiment of the present invention;

[0043] Figure 6 is a structural block diagram of a task execution device provided according to an embodiment of the present invention;

[0044] Figure 7 is a structural block diagram of another task execution device provided according to an embodiment of the present invention;

[0045] Figure 8It is a schematic structural diagram of a terminal device or a server for implementing the task execution method of the embodiments of the present invention. Detailed implementation manners

[0046] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. The same is true for "target", "original", etc., which will not be elaborated here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0048] Before introducing the embodiments of the present invention, an exemplary description will be given of the implementation process of the related task execution solution and the specific reasons for the technical problem that it cannot guarantee the success of task execution, so as to better understand how the task execution solution proposed in the embodiments of the present invention guarantees the success of task execution.

[0049] Exemplarily, in the related task execution solution, for the description information used to describe the task to be executed in the business system, the intelligent agent extracts key parameters from the description information. The key parameters can be understood as the parameters required to call the target interface in the business system. The target interface can be understood as the interface required to execute the task. The interface can be the application programming interface (API) of some tool sets, algorithm libraries or plugins; then, the intelligent agent can use the key parameters as the input parameters of the target interface to call the target interface to execute the task.

[0050] However, in most cases, the target interface often requires a large number of input parameters, and these input parameters often have high complexity. Exemplarily, taking the project management system as an example, in order to call the requirement creation interface in the project management system, in addition to passing in key parameters such as the acceptor, requirement name, and requirement description, it is often necessary to pass in other parameters such as users, departments, business domains, projects, and products. It should be noted that it is very difficult for the intelligent agent to extract other parameters except for the key parameters from the description information, and assembling and processing various parameters is also a very complex matter, which may lead to the intelligent agent being unable to successfully call the target interface, and further may lead to the failure to successfully execute the task, which urgently needs to be solved.

[0051] On this basis, in order to solve the above technical problems, the embodiment of the present invention proposes a task execution scheme for executing a task by calling a target interface through a page, which will be elaborated in detail below.

[0052] Figure 1 It is a flowchart of a task execution method provided in an embodiment of the present invention. This embodiment is applicable to the situation of combining an intelligent agent to execute page tasks in a business system. This method can be executed by a task execution device provided by the embodiment of the present invention. The device can be implemented in a software and / or hardware manner. The device can be integrated on a terminal device, and a business system can be deployed on the terminal device.

[0053] See Figure 1 , the method of the embodiment of the present invention specifically includes the following steps:

[0054] S110. In response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the intelligent agent.

[0055] Among them, the business system can be understood as a system that can implement one business requirement or multiple related business requirements. For example, it can be a project management system, a library management system, or an interface management system, etc. This is related to the actual situation and is not specifically limited here.

[0056] The page task can be understood as a task in the business system, and further can be understood as a task that can be executed (or said to be operated) through the page (i.e., Web) in the business system. For example, it can be a project creation task in the project management system, an image creation task in the image management system, or an interface addition task in the interface management system, etc. This is related to the actual situation and is not specifically limited here.

[0057] The description information can be understood as the information used to describe the page task. Taking the example of adding a task through an interface, this description information can be "I want to create an interface named xx, with the interface address being xxx and the parameters being xxx". In an embodiment of the present invention, optionally, this description information can also be referred to as a user query (query).

[0058] The task execution event can be understood as an event indicating the execution of the page task characterized by the description information. On this basis, optionally, the triggering method of this task execution event can be that the user manually triggers it through the client or it is automatically triggered by the client, etc., which is related to the actual situation and is not specifically limited herein.

[0059] The agent can be understood as an agent developed based on the agent platform that can at least be used to extract target parameters from the description information. In an embodiment of the present invention, optionally, this agent can be integrated on the server.

[0060] Through the client, in response to the task execution event, obtain the description information and send this description information to the agent.

[0061] S120. Receive the page execution instruction returned by the agent for the description information, where the page execution instruction is generated by the agent according to the target parameters extracted from the description information, and the target parameters are the parameters required for calling the target interface in the business system.

[0062] Among them, after receiving the description information, the agent can extract the target parameters (i.e., the key parameters mentioned above) from this description information. The target parameters can be understood as the parameters required for calling the target interface in the business system; the target interface can be understood as the interface required for executing the page task, and the target interface can be called by executing the target page in the business system. Further, the agent can generate a page execution instruction based on the target parameters, and the page execution instruction can be understood as an instruction used to indicate the execution of the target page. The agent returns this page execution instruction to the client.

[0063] S130. In response to the page execution instruction, execute the target page in the business system to call the target interface through the target page and execute the page task.

[0064] Among them, through the client, in response to the received page execution instruction, execute (or operate on) the target page, so that the target interface can be called through the executed target page to execute the target task.

[0065] In an embodiment of the present invention, optionally, the number of page execution instructions may be one or more. In the case of multiple page execution instructions, the target pages corresponding to the multiple page execution instructions may be exactly the same, partially the same, or completely different, which is related to the actual situation and is not specifically limited herein.

[0066] As can be seen from the above description, the agent no longer only relies on text answers and direct interface calls to handle business problems, but can handle problems by interacting with the client. On this basis, combined with the application scenarios that may be involved in the embodiments of the present invention, optionally, the above-mentioned client can be considered as a Software Development Kit (SDK) deployed on a terminal device, and this SDK can be specifically referred to as a page automatic execution SDK (i.e., a Web automatic execution SDK). On this basis, optionally, the Web automatic execution SDK can be used to automatically execute page execution instructions in the target page, for example, it can include at least one of instruction collection, component monitoring, task execution, and result feedback; furthermore, optionally, this SDK can perform external communication and has at least one of the functions such as publish-subscribe mode, event response, event queuing, callback feedback, and event destruction.

[0067] It should be particularly noted that, as can be seen from the above description, if the target interface is directly called based on the target parameter in the page execution instruction, it is very likely that the call cannot be successful because at this time, the remaining parameters other than the target parameter are missing, and various parameters cannot be assembled and processed. Correspondingly, because the remaining parameters and various parameters have been pre-filled in the target page, only by passing the target parameter to the target page can the process of calling the target interface be realized by executing the target page, thereby ensuring the successful call of the target interface and further ensuring the successful execution of the page task.

[0068] The technical solution of the embodiment of the present invention is as follows: Through the client integrated on the business system, in response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent, so that the agent generates a page execution instruction according to the target parameter extracted from the description information; through the client, in response to the page execution instruction returned by the agent, execute the target page in the business system to execute the page task by calling the target interface in the business system. The above technical solution solves the problem that the page task cannot be successfully executed due to the failure to successfully call the target interface by calling the target interface through the target page, thereby ensuring the successful execution of the page task.

[0069] An optional technical solution for executing the target page in the business system in response to a page execution instruction includes:

[0070] In response to a page execution instruction, extract target parameters from the page execution instruction, and obtain a page execution method corresponding to the instruction type of the page execution instruction;

[0071] Based on the page execution method and the target parameters, execute the target page in the business system.

[0072] Among them, the instruction type can be understood as the type to which the page execution instruction belongs. Considering the application scenarios that may be involved in the embodiments of the present invention, optionally, the instruction type can be a page jump type, an event trigger type, a form input type, an interface request type, etc. This is related to the actual situation and is not specifically limited herein.

[0073] It should be noted that different instruction types respectively correspond to their own page execution methods (or page execution methods). The page execution method can be understood as the method of executing the target page. In this technical solution, optionally, the page execution method can be represented by a function processing method. Exemplarily, for the page jump type, according to the jump type, with the help of a browser object or a routing component, execute the target page according to the routing parameters in the target parameters; Another example is that for operations within the target page, according to the component name in the target parameters, determine the component to be executed, register the component instance, and execute the target page through this component instance with the help of component data and methods; and so on. This is not specifically limited herein.

[0074] Extract the target parameters from the page execution instruction. Further, based on the page execution method and in combination with the target parameters, execute the target page, thereby realizing the successful execution of the target page.

[0075] Another optional technical solution is that if the number of page execution instructions is at least two, then in response to the page execution instructions, execute the target page in the business system, including:

[0076] Based on the execution order of at least two page execution instructions, construct an execution stack;

[0077] Using the execution stack, sequentially in response to each page execution instruction, execute the target page corresponding to the page execution instruction in the business system.

[0078] Among them, when there are two or more page execution instructions, that is, when the agent returns two or more page execution instructions in the form of an instruction set, an execution stack can be constructed based on the execution order of each page execution instruction, and using this execution stack, each page execution instruction can be scheduled in turn, realizing the successful execution of the target page.

[0079] Exemplarily, an execution stack is constructed according to the instruction set; by observing the life cycle of the currently active page components in the target page, the page execution instructions executed at the top of the execution stack are handed over to the execution part for execution; at the same time, a communication mechanism is established with the execution part to perform destruction and retry for exceptions and monitor the execution status.

[0080] In another alternative technical solution, after a target interface is called through a target page to execute a page task, the above task execution method further includes:

[0081] Display the execution result of the page task;

[0082] In response to a confirmation instruction for the execution result, effectuate the execution result; and / or, in response to a modification instruction for the execution result, modify the execution result.

[0083] Among them, since the current LLM cannot reach the levels of high accuracy and high stability, if the target parameters identified by the agent are directly used to call the target interface to execute the page task and the resulting execution result is directly effectuated, then it may bring great security risks. Therefore, the most friendly interaction method with the agent is that the final confirmation process can be controlled manually.

[0084] In view of this, considering that the page natively supports the confirmation process, the execution result of the page task can be displayed on the display page by the client so that the user can confirm the execution result, specifically, it can be to confirm whether to effectuate the execution result. On this basis, if a confirmation instruction for the execution result is received, it indicates that the page task is executed accurately, and the execution result can be effectuated; if a modification instruction for the execution result is received, it indicates that the page task is executed incorrectly, and the execution result can be modified.

[0085] The above technical solution utilizes the characteristic that the page natively supports the confirmation process to ensure the accuracy of the execution of the page task.

[0086] Figure 2 It is a flowchart of another task execution method provided by an embodiment of the present invention. This embodiment is applicable to the situation of executing page tasks in a business system through an agent. This method can be executed by a task execution device provided by an embodiment of the present invention. The device can be implemented in a software and / or hardware manner. The device can be integrated on a server, and the server can be communicatively connected to a terminal device. Specifically, an agent deployed on the server can be communicatively connected to a client deployed on the terminal device, and the client is integrated on the business system, that is, the business system is deployed on the terminal device.

[0087] See Figure 2 , the method of the embodiment of the present invention specifically includes the following steps:

[0088] S210. Receive the description information of the page task to be executed in the business system sent by the client.

[0089] S220. Extract the target parameters from the description information, and generate a page execution instruction according to the target parameters, where the target parameters are the parameters required to call the target interface in the business system.

[0090] S230. Return the page execution instruction to the client, so that the client executes the target page in the business system in response to the received page execution instruction, and calls the target interface through the target page to execute the page task.

[0091] The technical solution of the embodiment of the present invention, through the agent, receives the description information sent by the client for describing the page task to be executed in the business system, extracts the target parameters required to call the target interface in the business system from the description information, and generates a page execution instruction according to the target parameters; through the agent, the page execution instruction is returned to the client, so that the client executes the target page in the business system in response to the received page execution instruction, and calls the target interface through the target page to execute the page task. The above technical solution solves the problem that the page task cannot be successfully executed due to the failure to successfully call the target interface by means of calling the target interface through the target page, thereby ensuring the successful execution of the page task.

[0092] An optional technical solution for extracting the target parameters from the description information and generating a page execution instruction according to the target parameters includes:

[0093] Extract the target parameters from the description information, and assemble the target parameters into a preset instruction corresponding to the page execution instruction to be generated to obtain the page execution instruction.

[0094] Among them, multiple preset instructions are pre-configured on the agent platform, and different preset instructions can be used to execute different target pages and / or execute the same target page based on different page execution methods, which enables almost all page operations to be supported, such as page jumping, form input, event triggering, and data acquisition. Thus, the preset instruction corresponding to the page execution instruction to be generated can be determined from all the preset instructions, and the target parameters are assembled into this preset instruction, realizing the rapid generation of the page execution instruction.

[0095] In this technical solution, optionally, different preset instructions can be respectively passed in specific target parameters. On this basis, combined with the application scenarios that this technical solution may involve, optionally, all preset instructions need to pass in target parameters such as component name, waiting duration, and number of retries. On this basis, further optionally, the preset instructions of the page jump type also need to pass in target parameters such as jump type, jump address, and routing parameters; the preset instructions of the event trigger type also need to pass in target parameters such as event name and event execution parameters; the preset instructions of the form input type also need to pass in target parameters such as target object and input data; and so on. This can be set according to actual needs and is not specifically limited here. Therefore, based on the instruction type of the page execution instruction to be generated, the target parameters to be extracted from the description information can be determined.

[0096] On this basis, for the extraction of target parameters from the description information as described above and the assembly of the target parameters into the preset instructions corresponding to the page execution instruction to be generated to obtain the page execution instruction, it may include:

[0097] Perform intent recognition on the description information, and based on the intent recognition result, determine the target workflow corresponding to the page task from each preset workflow;

[0098] Execute the target workflow based on the description information to extract the target parameters from the description information and assemble the target parameters into the preset instructions corresponding to the page execution instruction to be generated to obtain the page execution instruction.

[0099] Among them, through the agent, perform intent recognition on the description information to obtain the task type of the page task described by the description information. Corresponding preset workflows (Workflows) are pre-configured on the agent platform for different task types. Thus, based on the intent recognition result of the description information, the corresponding target workflow can be determined from each preset workflow, and then the target workflow is executed based on the description information to perform the process of extracting and assembling the target parameters and generate the page execution instruction.

[0100] In this technical solution, optionally, the target workflow can be composed of multiple nodes. Some of the multiple nodes can be used to process the description information to extract the target parameters from it; and a certain node that executes after these partial nodes among the multiple nodes can be an instruction node. When executing to this instruction node, the target parameters extracted by using these partial nodes can be input into this instruction node to perform the target parameter assembly process in this instruction node, thereby generating the page execution instruction.

[0101] Figure 3 It is the structural block diagram of a task execution system provided by an embodiment of the present invention. This embodiment is applicable to the situation of executing page tasks in a business system.

[0102] See Figure 3 , the task execution system described in the embodiments of the present invention includes: a client 310 and an agent 320, where the client 310 is integrated on a business system; where

[0103] The client 310 is configured to, in response to a task execution event, obtain description information of a page task to be executed in the business system, and send the description information to the agent 320;

[0104] The agent 320 is configured to extract target parameters from the received description information, generate a page execution instruction according to the target parameters, and return the page execution instruction to the client 310, where the target parameters are parameters required to call a target interface in the business system;

[0105] The client 310 is configured to, in response to the received page execution instruction, execute a target page in the business system to call the target interface through the target page and execute the page task.

[0106] The technical solution of the embodiments of the present invention, through the mutual cooperation of the client and the agent, calls the target interface by means of the target page to execute the page task, thereby solving the problem that the page task cannot be successfully executed due to the failure to successfully call the target interface, thus ensuring the successful execution of the page task.

[0107] Exemplarily, in order to better understand the above technical solutions as a whole, the following will be described by way of specific examples. Exemplarily, the specific implementation process is as follows:

[0108] See Figure 4 , the agent developed through the agent platform may include functions such as a preset instruction set, an API, a knowledge base, and a preset workflow. Among them, the instruction types of the preset instructions in the preset instruction set may be page jump type, event trigger type, form input type, or interface request type, etc. The preset workflow can perform data management to extract target parameters from the description information, for example, it may include data reception, data processing, data operation, and data flow, etc. In addition, the Web automatic execution SDK communicatively connected to the agent can perform actions such as publish-subscribe, component life cycle, instruction scheduling, and error retry.

[0109] On this basis, see Figure 5, when a user (Actor) needs to add an interface in the interface management system, the user can send the following query to the intelligent agent through the business system: "I want to create an interface named xx, with the interface address xxx and parameters xxx". The intelligent agent starts to perform intent recognition on the query and executes the pre-configured target workflow for creating an interface based on the intent recognition result. Further, when executing to the instruction set node in the target workflow, mark the reply mode of the intelligent agent as the instruction set type, and provide the key parameters extracted from the query by executing the target workflow to this instruction set node, so as to assemble the key parameters through this instruction set node to obtain the page execution instruction. Based on the page execution instruction, notify the Web to automatically execute the SDK to execute the corresponding target page. Each target page starts to execute. First, it jumps to the interface list page, automatically clicks the create button, automatically fills in the form data, and the creation is successful; then, it jumps to the API configuration page, automatically fills in information such as the interface address and parameters, automatically clicks the debug button, and after successful connection, the execution is completed. Wait for the user to click to confirm the creation and effect the execution result.

[0110] In the above example, by adding a configuration instruction set to the intelligent agent platform and combining with the Web automatic execution SDK method, the API call problem is solved with the help of the page, and the confirmation process is naturally supported, enabling the intelligent agent to execute the Web automatically to perform page tasks, thereby interacting with the business system to complete complex operations of the business system.

[0111] Figure 6 It is the structural block diagram of the task execution device provided in the embodiment of the present invention. This device is used to execute the task execution method provided in any of the above embodiments. This device and the task execution methods of the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiment of the task execution device, reference can be made to the embodiments of the above task execution methods. See Figure 6 , this device is configured on the client, and this client is integrated in the business system. Specifically, this device may include: a description information sending module 410, a page execution instruction receiving module 420, and a target page execution module 430.

[0112] Among them, the description information sending module 410 is used to obtain the description information of the page task to be executed in the business system in response to the task execution event, and send the description information to the intelligent agent;

[0113] The page execution instruction receiving module 420 is used to receive the page execution instruction returned by the intelligent agent for the description information. Among them, the page execution instruction is generated by the intelligent agent according to the target parameters extracted from the description information, and the target parameters are the parameters required for calling the target interface in the business system;

[0114] The target page execution module 430 can be used to execute the target page in the business system in response to a page execution instruction, so as to call the target interface through the target page and execute the page task.

[0115] Optionally, the target page execution module 430 may include:

[0116] The page execution method acquisition unit is used to extract the target parameters from the page execution instruction and obtain the page execution method corresponding to the instruction type of the page execution instruction in response to the page execution instruction;

[0117] The first target page execution unit is used to execute the target page in the business system based on the page execution method and the target parameters.

[0118] Optionally, the number of page execution instructions is at least two, and the target page execution module 430 may include:

[0119] The execution stack construction unit is used to construct an execution stack based on the execution order of at least two page execution instructions;

[0120] The second target page execution unit is used to use the execution stack to sequentially respond to each page execution instruction and execute the target page corresponding to the page execution instruction in the business system.

[0121] Optionally, the above task execution device further includes:

[0122] The execution result display module is used to display the execution result of the page task after the page task is executed by calling the target interface through the target page;

[0123] The execution result validation module is used to validate the execution result in response to a confirmation instruction for the execution result; and / or the execution result modification module is used to modify the execution result in response to a modification instruction for the execution result.

[0124] In the task execution device provided by the embodiment of the present invention, through the cooperation of the description information sending module and the page execution instruction receiving module, in response to a task execution event, the description information of the page task to be executed in the business system is obtained, and the description information is sent to the intelligent agent, so that the intelligent agent generates a page execution instruction according to the target parameters extracted from the description information; further, through the target page execution module, in response to the page execution instruction returned by the intelligent agent, the target page in the business system is executed, so as to execute the page task by calling the target interface in the business system. The above device solves the problem that the page task cannot be successfully executed because the target interface cannot be successfully called by means of calling the target interface through the target page, thereby ensuring the successful execution of the page task.

[0125] The task execution device provided by the embodiments of the present invention can execute the task execution method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0126] It should be noted that in the embodiments of the above task execution device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.

[0127] Figure 7 It is a structural block diagram of the task execution device provided in the embodiments of the present invention. The device is used to execute the task execution method provided in any of the above embodiments. The device and the task execution methods of the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiments of the task execution device, reference can be made to the embodiments of the above task execution method. See Figure 7 ., the device is configured on the intelligent agent, the intelligent agent is communicatively connected to the client, the client is integrated on the service system, and the device may include: a description information receiving module 510, a page execution instruction generating module 520, and a page execution instruction returning module 530.

[0128] Among them, the description information receiving module 510 is used to receive the description information of the page task sent by the client for the page task to be executed in the service system;

[0129] The page execution instruction generating module 520 can be used to extract target parameters from the description information and generate a page execution instruction according to the target parameters, where the target parameters are the parameters required to call the target interface in the service system;

[0130] The page execution instruction returning module 530 is used to return the page execution instruction to the client, so that the client executes the target page in the service system in response to the received page execution instruction, and calls the target interface through the target page to execute the page task.

[0131] Optionally, the page execution instruction generating module 520 may include:

[0132] The page execution instruction obtaining unit is used to extract target parameters from the description information and assemble the target parameters into a preset instruction corresponding to the page execution instruction to be generated to obtain the page execution instruction.

[0133] On this basis, optionally, the page execution instruction obtaining unit is specifically used for:

[0134] Perform intent recognition on the description information, and determine the target workflow corresponding to the page task from each preset workflow according to the intent recognition result;

[0135] Execute a target workflow based on the description information to extract target parameters from the description information and assemble the target parameters into a preset instruction corresponding to the page execution instruction to be generated, thereby obtaining the page execution instruction.

[0136] The task execution device provided by an embodiment of the present invention, through the cooperation of a description information receiving module and a page execution instruction generating module, receives the description information sent by the client for describing the page task to be executed in the business system, extracts the target parameters required for invoking the target interface in the business system from the description information, and generates a page execution instruction according to the target parameters; through the page execution instruction returning module, the page execution instruction is returned to the client, so that the client, in response to the received page execution instruction, executes the target page in the business system to call the target interface through the target page and execute the page task. The above device solves the problem that the page task cannot be successfully executed because the target interface cannot be successfully called by invoking the target interface through the target page, thereby ensuring the successful execution of the page task.

[0137] The task execution device provided by an embodiment of the present invention can execute the task execution method provided by any embodiment of the present invention and has the corresponding functional modules and beneficial effects of the execution method.

[0138] It should be noted that in the embodiments of the above task execution device, the various units and modules included are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.

[0139] Figure 8 FIG. shows a schematic structural diagram of a terminal device or a server (collectively referred to as an electronic device) 10 that can be used to implement the embodiments of the present invention. A business system is deployed on the terminal device. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0140] As Figure 8As shown, the electronic device 10 includes at least one processor 11 and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0141] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0142] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the task execution method.

[0143] In some embodiments, the task execution method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the task execution method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the task execution method by any other appropriate means (e.g., by means of firmware).

[0144] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0145] A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0146] In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0148] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0149] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0150] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.

[0151] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A task execution method, characterized in that, Applied to a client, the client is integrated in a business system, and the method includes: In response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent; Receive the page execution instruction returned by the agent for the description information, where the page execution instruction is generated by the agent according to the target parameters extracted from the description information, and the target parameters are the parameters required for calling the target interface in the business system; In response to the page execution instruction, execute the target page in the business system to call the target interface through the target page and execute the page task.

2. The method according to claim 1, characterized in that, The "In response to the page execution instruction, execute the target page in the business system" includes: In response to the page execution instruction, extract the target parameters from the page execution instruction, and obtain the page execution method corresponding to the instruction type of the page execution instruction; Based on the page execution method and the target parameters, execute the target page in the business system.

3. The method according to claim 1, wherein The number of the page execution instructions is at least two, and the "In response to the page execution instruction, execute the target page in the business system" includes: Based on the execution order of at least two of the page execution instructions, construct an execution stack; Using the execution stack, sequentially respond to each of the page execution instructions and execute the target page in the business system corresponding to the page execution instruction.

4. The method according to claim 1, characterized in that, After "call the target interface through the target page and execute the page task", it further includes: Display the execution result of the page task; In response to the confirmation instruction for the execution result, take effect the execution result; and / or, in response to the modification instruction for the execution result, modify the execution result.

5. A task execution method, characterized in that, Applied to an agent, the agent is communicatively connected to the client, the client is integrated in the business system, and the method includes: For the page task to be executed in the business system, receive the description information of the page task sent by the client; Extract the target parameters from the description information, and generate a page execution instruction according to the target parameters, where the target parameters are the parameters required for calling the target interface in the business system; Return the page execution instruction to the client, so that the client responds to the received page execution instruction, executes the target page in the business system, calls the target interface through the target page, and executes the page task.

6. The method according to claim 5, characterized in that The "Extract the target parameters from the description information and generate a page execution instruction according to the target parameters" includes: Extract the target parameters from the description information, and assemble the target parameters into a preset instruction corresponding to the page execution instruction to be generated to obtain the page execution instruction.

7. The method according to claim 6, characterized in that, The "Extract the target parameters from the description information and assemble the target parameters into a preset instruction corresponding to the page execution instruction to be generated to obtain the page execution instruction" includes: Perform intent recognition on the described information, and based on the intent recognition result, determine the target workflow corresponding to the page task from each preset workflow; Execute the target workflow based on the described information to extract target parameters from the described information, and assemble the target parameters into a preset instruction corresponding to the page execution instruction to be generated, to obtain the page execution instruction.

8. A task execution system, characterized in that, It includes: A client and an agent, where the client is integrated into the business system; where The client is configured to, in response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent; The agent is configured to extract target parameters from the received description information, generate a page execution instruction according to the target parameters, and return the page execution instruction to the client, where the target parameters are the parameters required for invoking the target interface in the business system; The client is configured to, in response to the received page execution instruction, execute the target page in the business system to invoke the target interface through the target page and execute the page task.

9. A task execution device, characterized in that, Configured on the client, the client is integrated into the business system, and the device includes: A description information sending module, configured to, in response to a task execution event, obtain the description information of the page task to be executed in the business system, and send the description information to the agent; A page execution instruction receiving module, configured to receive the page execution instruction returned by the agent for the description information, where the page execution instruction is generated by the agent according to the target parameters extracted from the description information, and the target parameters are the parameters required for invoking the target interface in the business system; A target page execution module, configured to, in response to the page execution instruction, execute the target page in the business system to invoke the target interface through the target page and execute the page task.

10. A task execution device, characterized in that, Configured on the agent, the agent is communicatively connected to the client, the client is integrated into the business system, and the device includes: A description information receiving module, configured to receive the description information of the page task sent by the client for the page task to be executed in the business system; A page execution instruction generating module, configured to extract target parameters from the description information and generate a page execution instruction according to the target parameters, where the target parameters are the parameters required for invoking the target interface in the business system; A page execution instruction returning module, configured to return the page execution instruction to the client, so that the client, in response to the received page execution instruction, executes the target page in the business system to invoke the target interface through the target page and execute the page task.

11. A terminal device, characterized in that, The terminal device deploys a business system, and the terminal device includes: At least one processor; and A memory communicatively connected to the at least one processor; where The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to cause the at least one processor to execute the task execution method according to any one of claims 1-4.

12. A server, characterized in that, The server is communicatively connected to a terminal device, and a service system is deployed on the terminal device. The server includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to cause the at least one processor to execute the task execution method according to any one of claims 5-7.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the task execution method according to any one of claims 1-4 or claims 5-7 when executed.

14. A computer program product, characterized in that, The computer program product includes a computer program that implements the task execution method according to any one of claims 1-4 or claims 5-7 when executed by a processor.