Data processing method, system and device, electronic equipment and computer storage medium

By dynamically determining the target service function and its input parameters in the service call link, the problem of complex manual operations for users on platforms such as food delivery apps is solved, and the efficiency of information acquisition and user experience are improved.

CN120711067APending Publication Date: 2025-09-26RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511065323.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-30
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

When using online platforms such as food delivery apps, users need to manually complete multiple steps to achieve complex needs, such as finding the best-rated Sichuan restaurant nearby and placing an order, resulting in inefficient information acquisition.

Method used

By receiving the terminal's interaction request, the server dynamically determines the target service function to be called in the service call link and its input parameters, calls the target service function and feeds back the execution result. The terminal displays the interaction result, simplifying the user interaction process and optimizing the calling process.

Benefits of technology

It enables processing of complex requests without multiple rounds of user interaction, reduces the execution time of the service call link, and improves information acquisition efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120711067A_ABST
    Figure CN120711067A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, system and device, electronic equipment and a computer storage medium. The information acquisition efficiency of a user can be improved. The method comprises the following steps: receiving an interaction request sent by a terminal; obtaining a service calling link based on the interaction request; under the condition that the to-be-called service function exists in the service calling link, determining a current to-be-called target service function in the service calling link and an input parameter corresponding to the current to-be-called target service function; calling a target service function according to the input parameter, obtaining an execution result of the target service function, sending the execution result of the target service function to the terminal, and executing the execution result of the target service function again under the condition that the service function to be called exists in the service calling link. And determining a target service function to be called currently in the service calling link and a corresponding input parameter thereof until the service functions to be called in the service calling link are all called.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, system, device, electronic device and computer storage medium. Background Art

[0002] With the continuous development of mobile internet technology, online platforms are providing increasingly diverse services to users. For example, takeaway platforms, such as food delivery apps, not only offer users a wide selection of products and various promotions, but also provide diverse delivery services such as same-day delivery, next-day delivery, and scheduled delivery, meeting users' increasingly diverse shopping needs.

[0003] Currently, users need to manually complete multiple steps, including searching, filtering, and placing orders, to fulfill their complex needs. For example, when ordering food on a food delivery app, if a user wants to order the most popular item from a nearby Sichuan restaurant with the best reviews, they need to manually filter out nearby Sichuan restaurants, then browse and compare to find the one with the best reviews. Then, they need to enter the restaurant with the best reviews and place their order for the most popular item. This requires a data processing method to improve user information acquisition efficiency. Summary of the Invention

[0004] The embodiments of the present application provide a data processing method, system, device, electronic device, and computer storage medium that can improve the user's information acquisition efficiency. The above technical solutions are as follows: In a first aspect, an embodiment of the present application provides a data processing method, applied to a server, comprising: receiving an interaction request sent by a terminal; Based on the interaction request, a service call link is obtained; the service call link includes at least one service function; the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; If there is a service function to be called in the service call link, determine the target service function to be called in the service call link and its corresponding input parameters; The target service function is called according to the input parameters, the execution result of the target service function is obtained, the execution result of the target service function is sent to the terminal, and the steps of determining the target service function currently to be called in the service call link and its corresponding input parameters are executed again when there is a service function to be called in the service call link, until all the service functions to be called in the service call link are called.

[0005] In one possible implementation, the interaction request includes the user's natural language interaction information; Based on the interaction request, obtain the service call link, including: Based on the information carried in the interaction request, obtain the request context information; the request context information includes the user's historical interaction records and the user's current environment information; Convert users' natural language interaction information into structured natural language interaction information; The structured natural language interaction information, request context information and preset service function configuration information are input into the preset model to obtain the service call link.

[0006] In a possible implementation, when there is a service function to be called in the service call link, determining the target service function to be called in the service call link and its corresponding input parameters includes: If none of the service functions in the service call chain have been called, determine the target service function to be called in the service call chain and its corresponding input parameters based on the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call chain; When there are service functions to be called and service functions that have been called in the service call link, according to the request context information, structured natural language interaction information, service The configuration information of each service function in the call link and the execution trajectory information of the service call link are used to determine the target service function currently to be called in the service call link and its corresponding input parameters; the execution trajectory information of the service call link includes the service functions that have been called in the service call link and their corresponding execution results.

[0007] In a possible implementation, the method further includes: The user's identification information is associated with structured natural language interaction information, request context information, and the execution trajectory information of the service call link and stored in the database to form a historical record of the user's interaction; the execution trajectory information of the service call link includes the service functions that have been called in the service call link and their corresponding execution results.

[0008] In a possible implementation, the method further includes: If the service call link cannot be obtained based on the interactive request, a first error code is sent to the terminal, so that the terminal displays a link acquisition failure prompt message based on the first error code; In the case where there is a service function to be called in the service call link, if the target service function to be called in the service call link cannot be determined or the input parameters corresponding to the target service function cannot be determined, sending a second error code to the terminal, so that the terminal displays a function call exception prompt message based on the second error code; If the target service function cannot be called according to the input parameters to obtain the execution result of the target service function, a third error code is sent to the terminal, so that the terminal displays function execution exception prompt information based on the third error code.

[0009] In one possible implementation, after obtaining the service call link, the method further includes: The function name of each service function in the service call link and the arrangement sequence information of each service function are sent to the terminal, so that the terminal displays the function name of each service function in sequence according to the arrangement sequence information of each service function.

[0010] In a second aspect, an embodiment of the present application provides a data processing method, applied to a terminal, comprising: generating an interaction request in response to a user's interaction operation; Sending an interaction request to a server so that the server receives the interaction request; obtaining a service call link based on the interaction request, wherein the service call link includes at least one service function, and the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; if there is a service function to be called in the service call link, determining a target service function to be called in the service call link and its corresponding input parameters; calling the target service function according to the input parameters, obtaining an execution result of the target service function; sending the execution result of the target service function to the terminal; and again performing the step of determining the target service function to be called in the service call link and its corresponding input parameters if there is a service function to be called in the service call link, until all service functions to be called in the service call link are called; Receive the execution result sent by the server; The interaction result corresponding to the interaction request is displayed according to the execution result.

[0011] In a possible implementation, the interaction operation includes a natural language interaction operation; and the interaction request includes natural language interaction information of the user.

[0012] In a possible implementation, before generating an interaction request in response to a user interaction operation, the method further includes: In response to a user triggering an operation on a preset control in the page, displaying an interactive area; In response to the user's interactive operation, an interactive request is generated, including: In response to an interaction operation input by the user based on the interaction area, an interaction request is generated.

[0013] In a possible implementation, displaying the interaction result corresponding to the interaction request according to the execution result includes: Display the execution status information of the service call link according to the execution result; and / or The interaction card corresponding to the interaction request is displayed based on the execution result.

[0014] In a third aspect, an embodiment of the present application provides a recommendation system, comprising: a terminal and a server; wherein, The terminal is configured to generate an interaction request in response to a user's interaction operation and send the interaction request to a server; The server is configured to receive an interaction request, obtain a service call link based on the interaction request, the service call link including at least one service function, an arrangement order of the at least one service function being determined by a parameter dependency relationship between the service functions, determine a target service function currently to be called in the service call link and its corresponding input parameters if a service function to be called exists in the service call link, call the target service function according to the input parameters, obtain an execution result of the target service function, send the execution result of the target service function to the terminal, and again perform the step of determining the target service function currently to be called in the service call link and its corresponding input parameters if a service function to be called exists in the service call link, until all service functions to be called in the service call link are called; The terminal is further configured to receive the execution result sent by the server and display the interaction result corresponding to the interaction request according to the execution result.

[0015] In a fourth aspect, an embodiment of the present application provides a data processing device, applied to a server, comprising: A first receiving module, configured to receive an interaction request sent by a terminal; An acquisition module is configured to acquire a service call link based on an interaction request; the service call link includes at least one service function; and the arrangement order of the at least one service function is determined by a parameter dependency relationship between the service functions; A determination module is used to determine the target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link; An execution module is used to call the target service function according to the input parameters, obtain the execution result of the target service function, send the execution result of the target service function to the terminal, and again execute the step of determining the current target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link, until all the service functions to be called in the service call link are called.

[0016] In a fifth aspect, an embodiment of the present application provides a data processing device, applied to a terminal, comprising: A generating module, configured to generate an interaction request in response to a user's interaction operation; a sending module, configured to send an interaction request to a server so that the server receives the interaction request, obtain a service call link based on the interaction request, the service call link including at least one service function, the arrangement order of the at least one service function being determined by the parameter dependency relationship of each service function, determine a target service function currently to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link, call the target service function according to the input parameters, obtain an execution result of the target service function, send the execution result of the target service function to the terminal, and again perform the step of determining the target service function currently to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link, until all service functions to be called in the service call link are called; The second receiving module is used to receive the execution result sent by the server; The display module is used to display the interaction result corresponding to the interaction request according to the execution result.

[0017] In a sixth aspect, an embodiment of the present application provides an electronic device comprising: a processor and a memory; the memory stores a computer program, and when the processor executes the computer program, the method steps provided in the first aspect or the second aspect of the embodiment of the present application are implemented.

[0018] In the seventh aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the instructions are suitable for being loaded by a processor and executing the method steps provided in the first aspect or the second aspect of the embodiment of the present application.

[0019] The above-mentioned data processing method, on the terminal side, generates an interaction request in response to the user's interactive operation, sends the interaction request to the server, receives the execution result sent by the server, and displays the interaction result corresponding to the interaction request according to the execution result. It can effectively simplify the user's interaction process and provide request input for the generation of subsequent service call links. On the server side, by receiving the interaction request sent by the terminal, the service call link is automatically obtained based on the interaction request. If there is a service function to be called in the service call link, the target service function to be called in the service call link and its corresponding input parameters are dynamically determined. The target service function is called according to the input parameters to obtain the execution result of the target service function, and the execution result of the target service function is sent to the terminal. The step of determining the target service function to be called in the service call link and its corresponding input parameters is performed again until all the service functions to be called in the service call link are called. On the one hand, more complex interaction requests can be processed directly through chain calls without the user having to manually perform multiple rounds of interaction; on the other hand, the call of the service function can be dynamically adjusted during the execution of the service call link, thereby flexibly optimizing the call process and reducing the overall execution time of the service call link; on the other hand, the execution result of each step of the chain call can be immediately fed back to the user, reducing the user's waiting time for the result. The above data processing method simplifies user interaction operations while effectively improving the system's data processing speed, thereby effectively improving the user's information acquisition efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic diagram of an application scenario of a data processing method provided by an exemplary embodiment of the present application; Figure 2 A schematic diagram of an application scenario of another data processing method provided by an exemplary embodiment of the present application; Figure 3 A schematic diagram of an application scenario of another data processing method provided by an exemplary embodiment of the present application; Figure 4 A schematic diagram of an application environment of a data processing method provided by an exemplary embodiment of the present application; Figure 5 A flowchart of a data processing method provided by an exemplary embodiment of the present application; Figure 6 A flowchart of another data processing method provided by an exemplary embodiment of the present application; Figure 7 A schematic diagram of the architecture of a data processing method provided by an exemplary embodiment of the present application; Figure 8 A schematic structural diagram of a data processing device provided as an exemplary embodiment of the present application; Figure 9 A schematic structural diagram of another data processing device provided as an exemplary embodiment of the present application; Figure 10 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application; Figure 11 A schematic structural diagram of another electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0023] In the description of this application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, in the description of this application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.

[0024] In order to more clearly describe the technical solution of the embodiment of the present application, some concepts in the present application are described in detail before the description to facilitate a better understanding of the solution.

[0025] Service call chain: The process of calling a series of service functions in a certain logical sequence to achieve the service goal. In this solution, the service call chain can be either a remote API (Application Programming Interface) call chain or a local tool function call chain.

[0026] Service function: A reusable unit of code that encapsulates a specific service function. In this solution, a service function can be either a remote API call function or a local utility function.

[0027] The following combination Figure 1-Figure 3 Introduce the application scenarios applicable to the embodiments of this application: A food delivery app has a floating control that can float on any page, providing users with a convenient entry to start the smart ordering function.

[0028] See Figure 1 and Figure 2 When users use the food delivery app to order, if they have any order needs, they only need to click Figure 1 The floating control 11 shown can evoke Figure 2 Interaction pop-up layer 12 is shown. In interaction pop-up layer 12, users can enter natural language interaction information through voice or text, such as "Order the most popular pizza nearby." In response to the user's submission of the natural language interaction information, the food delivery app's front-end SDK generates an interaction request based on the user's input and sends the interaction request to the back-end server.

[0029] After receiving the interaction request sent by the front-end SDK, the back-end server generates a corresponding service call link based on the interaction request, and then dynamically calls each service function in the link. After each service function is called, the execution result of the service function is sent to the front-end SDK. The front-end SDK displays the interaction result corresponding to the interaction request to the user based on the execution result of the service function. For example, if the service function is the last service function to be called in the service call link, the front-end SDK can Figure 2 The interactive floating layer 12 shows the execution status information of the service call link to the user; if the service function is not the last service function to be called in the service call link, the front-end SDK can Figure 2 The interactive floating layer 12 shown shows the interactive card corresponding to the interactive request to the user.

[0030] See Figure 3 , showing an interactive card 13 corresponding to the interactive request. The user can view the recommended pizza options based on the interactive card 13, and then select some or all of them to confirm the order. In addition, the user can continue to enter new order requirements in the interactive floating layer 12 through voice or text.

[0031] It is worth noting that the application scenarios applicable to the embodiments of the present application are not limited to the user ordering scenarios described above, but can also include development and testing scenarios, travel recommendation scenarios, knowledge question and answer scenarios, etc. For example, in the development and testing scenario, developers can obtain the interaction results returned by the system (including the front-end SDK and back-end services) by simulating user voice or text input, thereby testing whether the data processing flow of the front-end SDK and back-end services is correct; in the travel recommendation scenario, users can obtain travel plans recommended by the system by entering their own travel needs; in the knowledge question and answer scenario, users can obtain answers fed back by the system by entering questions.

[0032] The data processing method provided in the embodiment of the present application can be applied to Figure 4 In the application environment shown, a terminal 10 with an online app installed communicates with a server 20 corresponding to the online app via a network. The data storage system can store data that the server 20 needs to process, such as preset service function configuration information and historical user interaction records. The data storage system can be integrated with the server 20 or placed in the cloud or other network servers.

[0033] In some possible embodiments, the terminal 10 generates an interaction request in response to a user's interactive operation and sends the interaction request to the server. The server 20 receives the interaction request and, based on the interaction request, obtains a service call link. The service call link includes at least one service function, and the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function. If there is a service function to be called in the service call link, the terminal 10 determines the target service function to be called in the service call link and its corresponding input parameters. The terminal 10 calls the target service function based on the input parameters, obtains the execution result of the target service function, sends the execution result of the target service function to the terminal, and executes again the step of determining the target service function to be called in the service call link and its corresponding input parameters if there is a service function to be called in the service call link, until all service functions to be called in the service call link are called. The terminal 10 receives the execution result sent by the server and displays the interaction result corresponding to the interaction request based on the execution result.

[0034] It is understood that the aforementioned online apps may include, but are not limited to, e-commerce apps (such as food delivery apps), travel service apps, and digital product service apps. Terminal 10 may include, but is not limited to, various smartphones, tablets, personal computers, laptops, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. Server 20 may be implemented as a standalone server or a server cluster consisting of multiple servers.

[0035] In one embodiment, Figure 5 As shown, a data processing method is provided, which is applied to Figure 4 The terminal 10 and the server 20 in FIG. 1 are used as an example to illustrate the method, which includes the following steps: S501: The terminal 10 generates an interaction request in response to a user's interaction operation.

[0036] The user's interactive operation includes a natural language interactive operation, which may be, but is not limited to, voice interactive operations, text interactive operations, etc. The interactive request includes the user's natural language interactive information, which may be, but is not limited to, voice interactive information, text interactive information, etc. The interactive request carries the user's identification information and the user's current environment information. Optionally, the terminal 10 generates an interactive request including the user's voice interactive information in response to the user's voice interactive operation based on the page input.

[0037] In one embodiment, before the terminal 10 generates an interaction request in response to the user's interaction operation, the method also includes: displaying an interaction area in response to the user's trigger operation on a preset control in the page; generating an interaction request in response to the user's interaction operation, including: generating an interaction request in response to the user's interaction operation based on the interaction area input.

[0038] Preset controls are pre-set controls used to trigger the display of interactive areas on a page. Preset controls may include, but are not limited to, floating controls. Triggering actions may include, but are not limited to, custom triggering actions such as clicking, sliding, and long pressing. Interactive areas are pre-set areas used to receive user interactive operations. Interactive areas may include, but are not limited to, interactive floating layers.

[0039] In this embodiment, the terminal displays the interactive area in response to the user's trigger operation on the preset control in any page, and generates an interactive request based on the interactive operation input in the interactive area. This not only meets the user's interaction needs on different pages and improves the flexibility of data processing, but also simplifies the user's interactive operation and improves the user's information acquisition efficiency and usage experience.

[0040] For example, see Figure 1 and Figure 2 , the terminal 10 responds to the user's Figure 1 The click operation of the floating control 11 shown is displayed as follows Figure 2 The interactive floating layer 12 shown then generates an interactive request including the user's voice interaction information in response to the user's voice interaction operation on the interactive floating layer 12.

[0041] S502 : The terminal 10 sends an interaction request to the server 20 .

[0042] Optionally, the terminal 10 sends an interaction request to the server 20 through a network interface.

[0043] S503 : The server 20 receives the access request sent by the terminal 10 .

[0044] Optionally, the server 20 receives the interaction request sent by the terminal 10 through a network interface.

[0045] S504: The server 20 obtains a service call link based on the interaction request.

[0046] Among them, the service call link includes at least one service function, the arrangement order of at least one service function is determined by the parameter dependency relationship of each service function, and at least one service function includes a remote API call function and / or a local tool function.

[0047] Optionally, the server 20 obtains request context information based on the information carried in the interaction request. The request context information includes the user's historical interaction records and the user's current environment information (such as the user's current location information and the user's interaction time information). The server 20 converts the original natural language interaction information input by the user in the interaction request into structured natural language interaction information. The server 20 then inputs the structured natural language interaction information, the request context information, and the preset service function configuration information into a preset model (such as a large language model) to obtain a service call link. It should be understood that the preset service function configuration information includes the function names corresponding to the multiple service functions, the input parameter rules corresponding to the multiple service functions (such as the input parameter name and input parameter type), and the functional descriptions corresponding to the multiple service functions.

[0048] Specifically, when the user's natural language interaction information is text interaction information, the server 20 directly converts the text interaction information into structured natural language interaction information in JSON format; when the user's natural language interaction information is voice interaction information, the server 20 converts the voice interaction information into text information through automatic speech recognition technology, and further converts the text information into structured natural language interaction information in JSON format. In addition, based on the user's identification information carried in the interaction request, the server 20 obtains the user's historical interaction records, and uses the user's historical interaction records and the user's current environment information carried in the interaction request as request context information. The server 20 then inputs the structured natural language interaction information, request context information and preset service function configuration information into the preset model, and the preset model outputs a service call link including at least one service function.

[0049] For example, when a user interactively inputs "order the most popular pizza nearby," terminal 10 sends an interaction request including the natural language interaction information "order the most popular pizza nearby" to the server. Server 20 parses the interaction request and inputs the structured natural language context information, the user's historical interaction records, and the user's current location information into a large language model. The large language model then generates a service call link for the interaction request. This service call link may sequentially include a location acquisition service function, a store screening service function, and a product search service function. The location acquisition service function is used to extract the user's latitude and longitude coordinates from the user's current location information; the store screening service function is used to sort the stores near the user by distance based on the user's latitude and longitude coordinates and obtain the store identifiers corresponding to the top-ranked stores; and the product search service function is used to search for the user's desired product from the top-ranked stores based on keywords (e.g., "most popular," "pizza") in the natural language interaction information and the store identifiers corresponding to the top-ranked stores.

[0050] It is worth noting that in the above-mentioned service call link, the arrangement order of the service functions is determined by the parameter dependency of each service function. Specifically, the execution result of the preceding service function can be used as the input parameter of the succeeding service function. For example, the execution result of the location acquisition service function (i.e., the user's latitude and longitude coordinates) can be used as the input parameter of the store screening service function; and the execution result of the store screening service function (i.e., the store ID corresponding to the top-ranked store) can be used as the input parameter of the product search service function. In addition, in the service call link, the arrangement order of at least one service function is only preliminarily determined as the expected call order before the call. During the actual execution process, the server 20 can dynamically adjust the call of each service function through the large language model combined with the execution result of the preceding service function. The specific process of dynamically adjusting the call of each service function will be described in detail later and will not be repeated here.

[0051] S505: When there is a service function to be called in the service call link, the server 20 determines the target service function to be called in the service call link and its corresponding input parameters.

[0052] Among them, the target service function to be called and its corresponding input parameters are determined based on at least one of the following: request context information, structured natural language interaction information, configuration information of each service function in the service call link, and execution trajectory information that has been called in the service call link.

[0053] Optionally, when all service functions in the service call link are to be called, the server 20 determines the target service function to be called in the service call link and its corresponding input parameters based on the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call link. When there are service functions to be called and service functions that have been called in the service call link, the server 20 determines the target service function to be called in the service call link and its corresponding input parameters based on the request context information, the structured natural language interaction information, the configuration information of each service function in the service call link, and the execution trajectory information of the service call link. It can be understood that the configuration information of each service function in the service call link includes the function name of each service function in the service call link, the input parameter rules of each service function, the corresponding functional description of each service function, and the arrangement order information of each service function in the service call link. The execution trajectory information of the service call link includes the service functions that have been called in the service call link and their corresponding execution results.

[0054] Specifically, when all service functions in the service call link are to be called, the server 20 determines the target service function to be called (i.e., the first service function to be called in the service call link) and its corresponding input parameters based on the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call link through a preset model (such as a large language model). When there are service functions to be called and service functions that have been called in the service call link, the server 20 sends the execution trajectory information of the service call link to the preset model, so that the preset model determines the target service function to be called (i.e., the next service function to be called in the service call link) and its corresponding input parameters based on the request context information, the structured natural language interaction information, the configuration information of each service function in the service call link, and the execution trajectory information of the service call link.

[0055] It should be understood that during the actual execution process, the server 20 can dynamically adjust the calls to each service function based on the execution results of the previous service function through a preset model. For example, if the execution result of a service function can be used as an input parameter for two subsequent service functions, the server 20 can skip the service function that is ranked first in the order and directly call the service function that is ranked later. Through this mechanism, the system can flexibly optimize the call process while meeting user needs, thereby reducing the overall execution time of the service call link and improving system performance and response efficiency.

[0056] S506: The server 20 calls the target service function according to the input parameters and obtains the execution result of the target service function.

[0057] The target service function is a remote API call function or a local tool function.

[0058] Optionally, if the target service function is a remote API call function, the server 20 constructs a service call request containing the identification information and input parameters of the target service function, and sends the service call request to the service interface corresponding to the target service function. The service interface parses the input parameters, and calls the corresponding target service function according to the identification information of the target service function, and sends the execution result to the server 20 so that the server 20 obtains the execution result of the target service function. If the target service function is a local tool function, the server 20 directly passes the input parameters to the target service function for execution to obtain the execution result of the target service function.

[0059] S507 : The server 20 sends the execution result of the target service function to the terminal 10 .

[0060] The execution result of the target service function includes the input parameters of its downstream service function or the response data of the interaction request.

[0061] Optionally, the server 20 sends the execution result of the target service function to the terminal 10 via the network interface. If the target service function is not the last service function to be called in the service call chain, the execution result of the target service function includes the input parameters of its downstream service function; if the target service function is the last service function to be called in the service call chain, the execution result of the target service function includes response data of the interaction request.

[0062] S508 : The terminal 10 receives the execution result sent by the server 20 .

[0063] Optionally, the terminal 10 receives the execution result sent by the server 20 through a network interface.

[0064] S509: The terminal 10 displays the interaction result corresponding to the interaction request according to the execution result.

[0065] Optionally, the terminal 10 displays the interaction result corresponding to the interaction request on the page where the user inputs the interaction operation according to the execution result returned by the server 20 .

[0066] In one embodiment, the terminal 10 displays the interaction result corresponding to the interaction request according to the execution result, including: displaying the execution status information of the service call link according to the execution result; and / or displaying the interaction card corresponding to the interaction request according to the execution result.

[0067] The execution status information of the service call link includes but is not limited to the function name of the target service function in the service call link and the execution result summary of the target service function.

[0068] It is understood that if the target service function is not the last service function to be called in the service call chain, the execution result of the target service function includes the input parameters of its downstream service function, and the terminal 10 displays the execution status information of the service call chain based on the execution result. If the target service function is the last service function to be called in the service call chain, the execution result of the target service function includes the response data of the interaction request, and the terminal 10 displays the execution status information of the service call chain and / or the interaction card corresponding to the interaction request based on the execution result.

[0069] Optionally, when the target service function is not the last service function to be called in the service call link, the terminal 10 displays the function name of the target service function and the input parameters of the downstream service function obtained after executing the target service function in the interactive floating layer. For example, when the target service function is the above-mentioned location acquisition service function, the terminal 10 can display the function name of the location acquisition service function and the longitude and latitude coordinates of the user obtained after executing the location acquisition service function in the interactive floating layer, so that the user knows the execution progress of the service call link and the intermediate results generated during the execution of the service call link. When the user is not satisfied with the intermediate results, the system can be controlled to end the data processing flow prematurely by triggering the stop generation control in the interactive floating layer.

[0070] In addition, when the target service function is the last service function to be called in the service call link, the terminal 10 displays the execution status information of the service call link and the interaction card corresponding to the interaction request in the interaction floating layer. For example, when the target service function is the above-mentioned product search service function, the terminal 10 can display the function name of the product search service function, the product identifier obtained after executing the product search service function, and the interaction card corresponding to the interaction request in the interaction floating layer, so that the user can know the execution progress of the service call link and the final result generated after the service call link is executed. For example, see Figure 3 In the case where the target service function is the last service function to be called in the service call chain, the terminal 10 can render the following in the interactive floating layer 12 of the page based on the response data (such as the product identification, etc.). Figure 3 The interactive card 13 shown is used to guide the user to confirm the order or further input natural language interactive information.

[0071] In this embodiment, when the target service function is not the last service function to be called in the service call chain, the terminal displays the execution status information of the service call chain based on the execution result. This helps the user clearly understand the current data processing progress of the system and decide whether to terminate the system's data processing flow prematurely based on the current progress, thereby improving the reliability and controllability of data processing. In addition, when the target service function is the last service function to be called in the service call chain, the terminal displays the execution status information of the service call chain and the interaction card corresponding to the interaction request based on the execution result. This allows the user to clearly view the interaction results and interaction guidance information on the current page without having to jump to additional pages, simplifying the user's interactive operations and improving their information acquisition efficiency.

[0072] In the above data processing method, the terminal generates an interaction request in response to the user's interactive operation, sends the interaction request to the server, receives and displays the execution result sent by the server, which can effectively simplify the user's interaction process and provide request input for the generation of subsequent service call links. The server automatically obtains the service call link based on the interaction request by receiving the interaction request sent by the terminal. When there is a service function to be called in the service call link, the server dynamically determines the target service function to be called in the service call link and its corresponding input parameters, calls the target service function according to the input parameters, obtains the execution result, sends the execution result to the terminal, and then executes the step of dynamically determining the target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link again until all the service functions to be called in the service call link are called. On the one hand, it can directly process more complex interaction requests through chain calls without the user having to manually perform multiple rounds of interaction; on the other hand, it can dynamically adjust the call of service functions during the execution of the service call link, thereby flexibly optimizing the call process and reducing the overall execution time of the service call link; on the other hand, it can immediately feedback the execution result of each step of the chain call to the user, reducing the user's waiting time for the result. The above data processing method simplifies user interaction operations while effectively improving the system's data processing speed, thereby effectively improving the user's information acquisition efficiency.

[0073] In one embodiment, Figure 6 As shown, another data processing method is provided, which is applied to Figure 4 Taking the server 20 in the example as an example, the following steps are included: S601: Acquire request context information based on information carried in the interaction request.

[0074] The interaction request includes the user's natural language interaction information, which includes but is not limited to the original text interaction information and / or voice interaction information input by the user. The information carried in the interaction request includes the user's identification information and the user's current environment information. The user's identification information may include, but is not limited to, the user ID used to obtain the user's historical interaction records. The user's current environment information includes but is not limited to the user's current location information and the user's interaction time information. The request context information includes the user's historical interaction records and the user's current environment information.

[0075] Optionally, the server 20 obtains the user's historical interaction records according to the user identification information carried in the interaction request, and uses the user's historical interaction records and the user's current environment information carried in the interaction request as request context information.

[0076] S602: Convert the user's natural language interaction information into structured natural language interaction information.

[0077] Optionally, if the user's natural language interaction information is text interaction information, the server 20 directly converts the text interaction information into structured natural language interaction information in JSON format. If the user's natural language interaction information is voice interaction information, the server 20 converts the voice interaction information into text information through automatic speech recognition technology, and further converts the text information into structured natural language interaction information in JSON format.

[0078] S603: Input the structured natural language interaction information, request context information and preset service function configuration information into the preset model to obtain a service call link.

[0079] Among them, the preset service function configuration information includes the function names corresponding to the multiple service functions, the input parameter rules corresponding to the multiple service functions (such as input parameter names, input parameter types, etc.) and the functional descriptions corresponding to the multiple service functions.

[0080] Optionally, the server 20 inputs structured natural language interaction information in JSON format, the user's historical interaction records, the user's current environment information, and the function names corresponding to multiple preset service functions, the input parameter rules corresponding to multiple preset service functions, and the functional descriptions corresponding to multiple preset service functions into the large language model, and the large language model outputs a service call link including at least one service function, the arrangement order of at least one service function in the link is determined by the parameter dependency of each service function, and at least one service function in the link includes a remote API call function and / or a local tool function.

[0081] It can be understood that parameter dependencies between service functions refer to the logical constraints on parameter transfer between different service functions, that is, the input of subsequent service functions depends on the output of previous service functions. For example, in a service call chain that includes a location acquisition service function, a store selection service function, and a product search service function, the execution result of the location acquisition service function (i.e., the user's latitude and longitude coordinates) can be used as an input parameter for the store selection service function; and the execution result of the store selection service function (i.e., the store ID corresponding to the top-ranked store) can be used as an input parameter for the product search service function.

[0082] It is worth noting that in the service call chain, the arrangement order of at least one service function is only preliminarily determined as the expected call order before the call. During the actual execution process, the system can dynamically adjust the calls of each service function through the large language model in combination with the execution results of the preceding service function. For example, it may selectively skip the call execution of the subsequent service function based on the execution results of the preceding service function in the service call chain. The specific process of dynamically adjusting the calls of each service function through the large language model will be described in detail later and will not be repeated here.

[0083] In this embodiment, the server 20 obtains structured natural language interaction information and request context information including historical interaction records and current environment information based on the interaction request sent by the terminal, and automatically generates a service call link through a large language model in combination with the structured natural language interaction information and request context information. It can directly process more complex interaction requests through chain calls without the user having to manually perform multiple rounds of interaction, thereby improving the user's information acquisition efficiency.

[0084] S604: Send the function name of each service function in the service call link and the arrangement sequence information of each service function to the terminal, so that the terminal displays the function name of each service function in sequence according to the arrangement sequence information of each service function.

[0085] Optionally, the server 20 sends the function name of each service function in the service call link generated by the large language model and the arrangement order information of each service function to the terminal through the network interface, so that the terminal can Figure 3 As shown, the function names of the service functions are displayed in sequence according to the arrangement order information of the service functions.

[0086] Furthermore, after viewing at least one service function displayed in sequence by the terminal, the user can determine whether to continue obtaining the execution results of each service function based on actual circumstances. For example, if the user believes that at least one service function displayed by the terminal does not meet their actual needs, they can click the Stop Generation control to prevent the system from executing subsequent data processing.

[0087] In this embodiment, after automatically obtaining a service call link including at least one service function through a large language model, the server 20 sends the function name of each service function and the arrangement order information of each service function to the terminal for feedback to the user. This not only enables the user to see the interim results generated during the data processing process, reducing the user's waiting time and improving the user's perceived efficiency; it also facilitates the user to confirm or intervene in the intermediate results of the data processing process, thereby improving the credibility and controllability of the data processing process.

[0088] S605: Determine whether there is a service function to be called in the service call link. If yes, execute S706; if not, end.

[0089] The "to-be-called service function" refers to the service function that needs to be called in the service call chain to complete the service goal (i.e., complete the interaction request). The to-be-called service function can be all service functions in the service call chain that have not yet been called, or it can be part of the service functions. For example, during data processing, if the actual execution result of the third service function in the service call chain already satisfies the parameter dependency of the fifth service function, then the fourth service function can no longer be called. In other words, at this point, although the fourth service function is a service function that has not yet been called in the service call chain, it is not a service function to be called in the service call chain.

[0090] Optionally, the server 20 determines whether there is a service function to be called in the service call link. If so, the server 20 further determines the target service function to be called in the service call link and its corresponding input parameters, thereby further executing the data processing flow according to the service call link. If there is no service function to be called in the service call link (i.e., all service functions to be called in the service call link have been called), the data processing flow ends.

[0091] S606: Determine whether there is a called service function in the service call link. If yes, execute S607; if not, execute S610.

[0092] The called service function refers to the service function that has been called and executed in the service call link to complete the service goal.

[0093] Optionally, when determining that there is an uncalled service function in the service call link, the server 20 further determines whether there is a called service function in the service call link. If there is a called service function in the service call link, it means that there are both a service function to be called and a called service function in the service call link, and S607 is executed. If there is no called service function in the service call link, it means that none of the service functions in the service call link have been called, and S610 is executed.

[0094] S607: Determine the target service function to be called in the service call link and its corresponding input parameters based on the request context information, structured natural language interaction information, configuration information of each service function in the service call link, and execution trajectory information of the service call link.

[0095] The configuration information for each service function in the service call chain includes, but is not limited to, the function name corresponding to each service function in the service call chain, the input parameter rules corresponding to each service function in the service call chain (such as input parameter name and input parameter type), the functional description corresponding to each service function in the service call chain, and the order of arrangement of each service function in the service call chain. The execution trajectory information of the service call chain includes, but is not limited to, the execution status of each service function in the service call chain (such as called or not called), the input parameters of the called service function, and the execution result of the called service function.

[0096] Optionally, when there are service functions to be called and service functions that have already been called in the service call link, the server 20 sends the execution trajectory information of the service call link to the large language model. The large language model then determines the target service function to be called in the service call link (i.e., the next service function to be called in the service call link) and its corresponding input parameters based on the request context information, structured natural language interaction information, the configuration information of each service function in the service call link, and the execution trajectory information of the service call link. Specifically, the large language model first determines the target service function to be called based on the configuration information of each service function in the service call link and the execution results of the service functions that have already been called in the service call link. Then, based on the configuration information of the target service function, the large language model extracts the input parameters corresponding to the target service function from the request context information, the structured natural language interaction information, and the execution results of the service functions that have already been called.

[0097] It should be understood that during the actual execution process, the server 20 can dynamically adjust the calls of each service function through the large language model and the execution results of the previous service function. For example, when the execution result of a service function can be used as an input parameter for two subsequent service functions at the same time, the server 20 can skip the service function that is at the front of the order and directly call the service function that is at the back. Through this mechanism, the system can flexibly optimize the call process while meeting user needs, thereby reducing the overall execution time of the service call link and improving system performance and response efficiency.

[0098] S608: Call the target service function according to the input parameters to obtain the execution result of the target service function.

[0099] The target service function is a remote API call function or a local tool function.

[0100] Optionally, if the target service function is a remote API call function, the server 20 constructs a service call request containing the identification information and input parameters of the target service function, and sends the service call request to the service interface corresponding to the target service function. The service interface parses the input parameters, and calls the corresponding target service function according to the identification information of the target service function, and sends the execution result to the server 20 so that the server 20 obtains the execution result of the target service function. If the target service function is a local tool function, the server 20 directly passes the input parameters to the target service function for execution to obtain the execution result of the target service function.

[0101] S609: Send the execution result of the target service function to the terminal.

[0102] The execution result of the target service function includes the input parameters of its downstream service function or the response data of the interaction request.

[0103] Optionally, the server 20 sends the execution result of the target service function to the terminal 10 via the network interface. If the target service function is not the last service function to be called in the service call chain, the execution result of the target service function includes the input parameters of its downstream service function; if the target service function is the last service function to be called in the service call chain, the execution result of the target service function includes response data of the interaction request.

[0104] S610: The user identification information is associated with the structured natural language interaction information, the request context information, and the execution trace information of the service call link and stored in a database to form a historical interaction record of the user.

[0105] Optionally, after all pending service functions in the service call chain have been called, the server 20 associates the user's identification information with the structured natural language interaction information, the request context information, and the execution trajectory information of the service call chain and stores it in a database, forming a historical record of the user's interaction. This historical interaction record not only supports user backtracking queries, but also provides contextual basis for subsequent servers to process new interaction requests. This allows the system to dynamically generate service call chains that better meet the user's needs by combining the user's historical behavior data.

[0106] In this embodiment, the server forms a historical interaction record by structurally associating and storing the structured natural language interaction information, request context information, and service call trajectory information obtained during the data processing process. This not only facilitates users to conduct retrospective queries on their historical conversations, but also helps to provide request context basis for subsequent servers when processing new interaction requests, thereby improving the user's information acquisition efficiency and accuracy.

[0107] S611: Determine the target service function to be called in the service call link and its corresponding input parameters according to the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call link.

[0108] Among them, the configuration information of each service function in the service call link includes but is not limited to: the function name corresponding to each service function in the service call link, the input parameter rules corresponding to each service function in the service call link (such as input parameter name, input parameter type, etc.), the functional description corresponding to each service function in the service call link, and the arrangement order information of each service function in the service call link.

[0109] Optionally, when all service functions in the service call chain are to be called, server 20 uses the large language model to determine the target service function currently to be called in the service call chain (i.e., the first service function to be called in the service call chain) and its corresponding input parameters based on the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call chain. Specifically, the large language model first determines the target service function currently to be called based on the configuration information of each service function in the service call chain. Then, in combination with the configuration information of the target service function, the large language model extracts the input parameters corresponding to the target service function from the request context information and the structured natural language interaction information.

[0110] S612: Call the target service function according to the input parameters to obtain the execution result of the target service function.

[0111] Specifically, S612 is consistent with S608 and will not be repeated here.

[0112] S613: Send the execution result of the target service function to the terminal.

[0113] Specifically, S613 is consistent with S609 and will not be repeated here.

[0114] S614: The user identification information is associated with the structured natural language interaction information, the request context information, and the execution trace information of the service call link and stored in the database to form a historical interaction record of the user.

[0115] Specifically, S614 is consistent with S610 and will not be repeated here.

[0116] In the above-mentioned data processing method, the server automatically generates a service call chain using a large language model, combined with structured natural language interaction information and request context information. This allows complex interaction requests to be processed through chain calls without the user having to manually perform multiple rounds of interaction. By sending the function name and order information of each service function to the terminal for feedback to the user, not only does this reduce user waiting time and improve user perceived efficiency, but it also facilitates user confirmation or intervention in intermediate results of the data processing process, thereby improving the reliability and controllability of the data processing process. By structurally associating and storing the structured natural language interaction information, request context information, and service call trajectory information obtained during the data processing process to form a historical interaction record, it not only facilitates users to conduct retrospective queries on their historical conversations, but also helps provide request context basis for subsequent servers when processing new interaction requests. The above-mentioned data processing method can effectively improve the efficiency and accuracy of user information acquisition.

[0117] In one embodiment, the above-mentioned data processing method also includes: if the server cannot obtain the service call link based on the interactive request, sending a first error code to the terminal, so that the terminal displays a link acquisition failure prompt message based on the first error code; when there is a service function to be called in the service call link, if the server cannot determine the target service function currently to be called in the service call link or cannot determine the input parameters corresponding to the target service function, sending a second error code to the terminal, so that the terminal displays a function call exception prompt message based on the second error code; if the server cannot call the target service function according to the input parameters and obtain the execution result of the target service function, sending a third error code to the terminal, so that the terminal displays a function execution exception prompt message based on the third error code.

[0118] Optionally, when an abnormal situation occurs during the generation or execution of a service call link, the server sends an abnormal prompt message to the terminal based on the exception handling mechanism of the error code. Specifically, during the generation of the service call link, if the terminal sends an interaction request and the server cannot obtain the service call link based on the interaction request, the server sends a first error code to the terminal, so that the terminal displays a link acquisition failure prompt message based on the first error code. During the execution of the service call link, if the server cannot determine the target service function to be called based on the request context information, structured natural language interaction information, the configuration information of each service function in the service call link, and the execution trajectory information of the service call link, or cannot determine the input parameters corresponding to the target service function, the server sends a second error code to the terminal, so that the terminal displays a function call abnormal prompt message based on the second error code. In addition, during the execution of the service call link, if the server cannot call the target service function based on the input parameters of the target service parameters to obtain the execution result of the target service function, the server sends a third error code to the terminal, so that the terminal displays a function execution abnormal prompt message based on the third error code.

[0119] In this embodiment, the server sends exception prompt information to the terminal through an exception handling mechanism based on error codes, which not only makes it easier for developers to quickly troubleshoot the cause of the exception, but also helps to provide users with specific and easy-to-understand exception prompt information, effectively improving the reliability of data processing and user experience.

[0120] In order to explain the technical solution of the data processing method in the embodiment of the present application in detail, the following will use a specific application example and combine Figure 7 The entire processing process is described, which specifically includes the following steps: 1. The user inputs natural language interaction information through the food delivery app on a terminal (such as a mobile phone). The natural language interaction information can be text interaction information and / or voice interaction information.

[0121] 2. In response to the user's submission operation on the natural language interaction information, the terminal generates an interaction request based on the natural language interaction information input by the user, and sends the interaction request to the server.

[0122] 3. Based on the interactive request sent by the terminal, the server obtains a service call link including at least one service function. The order of the at least one service function is determined by the parameter dependency relationship of each service function. The at least one service function includes a remote API call function and / or a local tool function. In this step, the server specifically performs the following processing: a) The server obtains the user's historical interaction records based on the user's identification information carried in the interaction request, and uses the user's historical interaction records and the user's current environment information carried in the interaction request (such as the user's current location information and the user's interaction time information) as request context information.

[0123] b) The server converts the original natural language interaction information input by the user in the interaction request into structured natural language interaction information. Specifically, if the user's natural language interaction information is text interaction information, the server directly converts the text interaction information into structured natural language interaction information; if the user's natural language interaction information is voice interaction information, the server uses automatic speech recognition technology to convert the voice interaction information into text information, and further converts the text information into structured natural language interaction information.

[0124] c) The server inputs the structured natural language interaction information, the request context information, and the preset service function configuration information into the large language model to obtain a service call link. The preset service function configuration information includes the function names corresponding to the multiple service functions, the input parameter rules corresponding to the multiple service functions (such as input parameter names and input parameter types), and the functional descriptions corresponding to the multiple service functions.

[0125] 4. The server sends a service call sequence to the terminal. The service call sequence includes the function name of each service function in the service call link and the arrangement order information of each service function, so that the terminal displays the function name of each service function in the service call link in sequence according to the service call sequence.

[0126] 5. If there is a service function to be called in the service call link, the server determines the target service function to be called in the service call link and its corresponding input parameters. In this step, the server specifically performs the following processing: a) When no service functions in the service call chain have been called, the server uses a large language model based on the request context, structured natural language interaction information, and the configuration information of each service function in the service call chain to determine the first service function to be called in the service call chain and its corresponding input parameters. The configuration information of each service function in the service call chain includes the input parameter rules corresponding to each service function in the service call chain (such as input parameter name and input parameter type) and the order of each service function in the service call chain.

[0127] b) If there are service functions to be called and already called in the service call chain, the server sends the execution trajectory information of the service call chain to the large language model. The large language model then determines the next service function to be called in the service call chain and its corresponding input parameters based on the request context information, structured natural language interaction information, the configuration information of each service function in the service call chain, and the execution trajectory information of the service call chain. The execution trajectory information of the service call chain includes the service functions already called in the service call chain and their corresponding execution results.

[0128] 6. The server calls the corresponding service function according to the input parameters and obtains the execution result of the service function.

[0129] 7. The server sends the execution result of the service function to the terminal and executes step 5 again until the last service function to be called in the service call link is called.

[0130] 8. The terminal displays the interaction result corresponding to the interaction request based on the returned execution result. In this step, the server performs the following processing: a) If the target service function is not the last service function to be called in the service call chain, the terminal displays the execution status information of the service call chain based on the execution result. The execution status information of the service call chain includes but is not limited to the function name of the target service function in the service call chain and a summary of the execution result of the target service function.

[0131] b) When the target service function is the last service function to be called in the service call link, the terminal displays the execution status information of the service call link and the interaction card corresponding to the interaction request according to the execution result.

[0132] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0133] Based on the inventive concept of the above data processing method, Figure 8As shown, the embodiment of the present application further provides a data processing device 800 for implementing the above-mentioned data processing method applied to the server. The data processing device 800 includes: A first receiving module 801 is configured to receive an interaction request sent by a terminal; The acquisition module 802 is configured to acquire a service call link based on the interaction request; the service call link includes at least one service function; the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; The determination module 803 is used to determine the target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link; The execution module 804 is used to call the target service function according to the input parameters, obtain the execution result of the target service function, send the execution result of the target service function to the terminal, and re-execute the step of determining the current target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link, until all the service functions to be called in the service call link are called.

[0134] In one embodiment, the interaction request includes the user's natural language interaction information; the acquisition module 802 is specifically configured to acquire request context information based on the information carried in the interaction request; the request context information includes the user's historical interaction records and the user's current environment information; Convert users' natural language interaction information into structured natural language interaction information; The structured natural language interaction information, request context information and preset service function configuration information are input into the preset model to obtain the service call link.

[0135] In one embodiment, the determination module 803 specifically determines the target service function to be called in the service call link and its corresponding input parameters according to the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call link when none of the service functions in the service call link have been called; and determines the target service function to be called and its corresponding input parameters according to the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call link when there are service functions to be called and service functions that have been called in the service call link. The configuration information of each service function in the call link and the execution trajectory information of the service call link are used to determine the target service function currently to be called in the service call link and its corresponding input parameters; the execution trajectory information of the service call link includes the service functions that have been called in the service call link and their corresponding execution results.

[0136] In one embodiment, the data processing device 800 also includes a record storage module for associating the user's identification information with structured natural language interaction information, request context information, and execution trajectory information of the service call link and storing them in a database to form a user's historical interaction record; the execution trajectory information of the service call link includes the service functions called in the service call link and their corresponding execution results.

[0137] In one embodiment, the data processing device 800 also includes an exception handling module, which is used to send a first error code to the terminal if the service call link cannot be obtained based on the interactive request, so that the terminal displays a link acquisition failure prompt message based on the first error code; when there is a service function to be called in the service call link, if the target service function to be called in the service call link cannot be determined or the input parameters corresponding to the target service function cannot be determined, a second error code is sent to the terminal, so that the terminal displays a function call exception prompt message based on the second error code; if the target service function cannot be called according to the input parameters to obtain the execution result of the target service function, a third error code is sent to the terminal, so that the terminal displays a function execution exception prompt message based on the third error code.

[0138] The data processing device 800 also includes a sending module for sending the function name of each service function in the service call link and the arrangement order information of each service function to the terminal, so that the terminal displays the function name of each service function in sequence according to the arrangement order information of each service function.

[0139] Based on the inventive concept of the above data processing method, Figure 9 As shown, the embodiment of the present application further provides a data processing device 900 for implementing the above-mentioned data processing method applied to a terminal. The data processing device 900 includes: A generating module 901 is configured to generate an interaction request in response to a user's interaction operation; A sending module 902 is configured to send an interaction request to a server so that the server receives the interaction request, obtain a service call link based on the interaction request, wherein the service call link includes at least one service function, and the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; if there is a service function to be called in the service call link, determine the target service function to be called in the service call link and its corresponding input parameters; call the target service function according to the input parameters, obtain an execution result of the target service function, send the execution result of the target service function to the terminal, and again perform the step of determining the target service function to be called in the service call link and its corresponding input parameters if there is a service function to be called in the service call link, until all service functions to be called in the service call link are called; The second receiving module 903 is used to receive the execution result sent by the server; The display module 904 is configured to display the interaction result corresponding to the interaction request according to the execution result.

[0140] In one embodiment, the interaction operation includes a natural language interaction operation; and the interaction request includes the user's natural language interaction information.

[0141] In one embodiment, the data processing device 900 also includes a response module for displaying an interactive area in response to a user's triggering operation on a preset control in the page; the generation module 901 is specifically used to generate an interactive request in response to a user's interactive operation based on input into the interactive area.

[0142] In one embodiment, the display module 904 is specifically configured to: display the execution status information of the service call link according to the execution result; and / or display the interaction card corresponding to the interaction request according to the execution result.

[0143] Each module in the above-mentioned data processing device 800 and data processing device 900 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0144] The embodiment of the present application also provides an electronic device, which may be a server, and its internal structure diagram may be as shown in FIG. Figure 10 See Figure 10 The electronic device includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store preset service function configuration information, historical user interaction records, etc. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal via a network connection. The processor of the electronic device executes a computer program to implement a data processing method.

[0145] It is worth noting that the electronic device can also be a terminal, and its internal structure diagram can be as follows: Figure 11 See Figure 11The electronic device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the electronic device provides computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and external devices. The communication interface of the electronic device is used to communicate with external terminals via wired or wireless means, and the wireless means may be implemented via Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When executed by the processor, the computer program implements a data processing method. The display unit of the electronic device is used to produce a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0146] The present application also provides a computer storage medium having instructions stored therein that, when executed on a computer or processor, cause the computer or processor to perform one or more steps of the above-described embodiments. If the components of the electronic device described above are implemented as software functional units and sold or used as independent products, they may be stored in the computer-readable storage medium described above.

[0147] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer storage medium or transmitted via the computer storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer storage medium may be any available medium accessible by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0148] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks. The technical features of this embodiment and the implementation scheme can be combined in any manner unless they conflict.

[0149] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the scope of protection determined by the claims.

[0150] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A data processing method, characterized in that: Applied to a server, the method includes: receiving an interaction request sent by a terminal; Based on the interaction request, a service call link is obtained; the service call link includes at least one service function; the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; In the case where there is a service function to be called in the service call link, determining the target service function to be called in the service call link and its corresponding input parameters; The target service function is called according to the input parameters, the execution result of the target service function is obtained, the execution result of the target service function is sent to the terminal, and the step of determining the current target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link is executed again, until all the service functions to be called in the service call link are called.

2. The method according to claim 1, wherein The interaction request includes the user's natural language interaction information; The acquiring of a service call link based on the interaction request includes: Acquire request context information based on the information carried in the interaction request; the request context information includes the user's historical interaction records and the user's current environment information; Converting the user's natural language interaction information into structured natural language interaction information; The structured natural language interaction information, the request context information and the preset service function configuration information are input into a preset model to obtain the service call link.

3. The method according to claim 2, wherein When there is a service function to be called in the service call link, determining the target service function to be called in the service call link and its corresponding input parameters includes: If none of the service functions in the service call link have been called, determining the target service function to be called in the service call link and its corresponding input parameters according to the request context information, the structured natural language interaction information, and the configuration information of each service function in the service call link; In the case that there are service functions to be called and service functions that have been called in the service call link, according to the request context information, the structured natural language interaction information, the service The configuration information of each service function in the call link and the execution trajectory information of the service call link are used to determine the target service function currently to be called in the service call link and its corresponding input parameters; the execution trajectory information of the service call link includes the service functions that have been called in the service call link and their corresponding execution results.

4. The method according to claim 2, wherein The method further comprises: The user's identification information is associated with the structured natural language interaction information, the request context information, and the execution trajectory information of the service call link and stored in a database to form a historical interaction record of the user; the execution trajectory information of the service call link includes the service functions that have been called in the service call link and their corresponding execution results.

5. A data processing method, characterized in that: Applied to a terminal, the method includes: generating an interaction request in response to a user's interaction operation; Sending the interaction request to the server so that the server receives the interaction request, obtaining a service call link based on the interaction request, wherein the service call link includes at least one service function, and the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; if there is a service function to be called in the service call link, determining the target service function to be called in the service call link and its corresponding input parameters, calling the target service function according to the input parameters, obtaining an execution result of the target service function, sending the execution result of the target service function to the terminal, and again performing the step of determining the target service function to be called in the service call link and its corresponding input parameters if there is a service function to be called in the service call link, until all service functions to be called in the service call link are called; receiving the execution result sent by the server; The interaction result corresponding to the interaction request is displayed according to the execution result.

6. A data processing system, characterized in that: The data processing system includes: a terminal and a server; wherein, The terminal is configured to generate an interaction request in response to an interaction operation of a user, and send the interaction request to the server; The server is configured to receive the interaction request, obtain a service call link based on the interaction request, wherein the service call link includes at least one service function, and an arrangement order of the at least one service function is determined by a parameter dependency relationship between the service functions; if there is a service function to be called in the service call link, determine a target service function to be called in the service call link and its corresponding input parameters; call the target service function according to the input parameters, obtain an execution result of the target service function, send the execution result of the target service function to the terminal, and again perform the step of determining the target service function to be called in the service call link and its corresponding input parameters if there is a service function to be called in the service call link, until all service functions to be called in the service call link are called; The terminal is further configured to receive an execution result sent by the server, and display an interaction result corresponding to the interaction request according to the execution result.

7. A data processing device, characterized in that: Applied to a server, the device includes: A first receiving module, configured to receive an interaction request sent by a terminal; an acquisition module, configured to acquire a service call link based on the interaction request; the service call link includes at least one service function; an arrangement order of the at least one service function is determined by a parameter dependency relationship between the service functions; a determination module, configured to determine a target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link; An execution module is used to call the target service function according to the input parameters, obtain the execution result of the target service function, send the execution result of the target service function to the terminal, and re-execute the step of determining the current target service function to be called in the service call link and its corresponding input parameters when there is a service function to be called in the service call link, until all the service functions to be called in the service call link are called.

8. A data processing device, characterized in that: Applied to a terminal, the device includes: A generating module, configured to generate an interaction request in response to a user's interaction operation; a sending module, configured to send the interaction request to a server so that the server receives the interaction request, and obtain a service call link based on the interaction request, wherein the service call link includes at least one service function, and the arrangement order of the at least one service function is determined by the parameter dependency relationship of each service function; if there is a service function to be called in the service call link, determine the target service function to be called in the service call link and its corresponding input parameters, call the target service function according to the input parameters, obtain an execution result of the target service function, send the execution result of the target service function to the terminal, and again perform the step of determining the target service function to be called in the service call link and its corresponding input parameters if there is a service function to be called in the service call link, until all service functions to be called in the service call link are called; A second receiving module is used to receive the execution result sent by the server; A display module is configured to display an interaction result corresponding to the interaction request according to the execution result.

9. An electronic device, characterized in that: include: A processor and a memory; the memory stores a computer program, and when the processor executes the computer program, the method steps of any one of claims 1 to 5 are implemented.

10. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 5.