Man-machine interaction configuration tool calling method and device
By using a lookup table to find and call target tools in the human-computer interaction system, the problem of difficult to modify and expand tool call encoding in the prior art is solved, and flexible tool call and convenient maintenance are achieved.
Patent Information
- Application Number
- CN202311069770.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2025-03-07
AI Technical Summary
The human-computer interaction method in the prior art requires coding configuration tools into the processing flow, making it difficult to modify and maintain, and has poor scalability.
By obtaining the keywords entered by the user, using the lookup table to find the target tool and its calling information, and directly call the target tool for operations, avoiding encoding the tool call information into the processing process.
It realizes the flexibility of tools required to call keywords in human-computer interaction, simplifies the tool call process, and improves the convenience of expansion and maintenance by maintaining lookup tables.
Smart Images

Figure CN119577107A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of human-computer interaction, and in particular to a method and device for calling a configuration tool for human-computer interaction. Background Art
[0002] The automated and intelligent underlying system operation and maintenance platform supports automatic and user interaction to diagnose problems. Interactive diagnosis involves multiple rounds of dialogue between humans and machines. Through the user's description of the problem and continuous interaction, the problem space and targeted diagnosis are narrowed down to determine the problem type and problem area. It may then be necessary to call on professional diagnostic tools. Different tools require different commands, parameters, instruction documents, etc.
[0003] The traditional approach is to encode the information of these tools into the robot's processing flow, which has poor scalability and is difficult to maintain. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for calling a configuration tool for human-computer interaction, which at least solves the problem that the human-computer interaction mode in the related art needs to encode the configuration tool into the processing flow, is difficult to modify and maintain, and has poor scalability.
[0005] An embodiment of the present invention provides a method for calling a configuration tool for human-computer interaction, comprising: obtaining keywords input by a user in an interactive manner; searching a query table for a target tool corresponding to the keyword and calling information of the target tool according to the keyword, wherein the query table includes a mapping relationship between multiple keywords and target tools, and calling information of the tool; and calling the target tool for operation according to the calling information.
[0006] The beneficial effects of the embodiments of the present invention are as follows: the call information of the target tool to be called is obtained according to the input keywords through the query table, and the target tool is called according to the call information to perform the operation. Thus, the required tool can be called according to the keywords in the human-computer interaction process, without writing the calling tool into the code, thereby improving the flexibility of tool calling. Moreover, by maintaining the query table, the maintenance keywords and tool calling information can be more conveniently expanded and modified.
[0007] As an optional embodiment, obtaining the keywords inputted by the user in an interactive manner includes: receiving a sentence text inputted by the user in an interactive manner; and performing word segmentation on the sentence text to obtain the keywords.
[0008] By segmenting the input sentence text and obtaining the input keywords, the corresponding tool can be called automatically based on the content of the human-computer interaction dialogue, making the calling process automated without the need for users to specifically enter keywords.
[0009] As an optional embodiment, the query table includes a keyword query table and a tool query table, and searching the query table for a target tool corresponding to the keyword according to the keyword includes: searching the keyword query table for a tool identifier of the target tool corresponding to the keyword according to the keyword, wherein the keyword query table includes a mapping relationship between multiple keywords and tool identifiers; searching the tool query table for calling information of the corresponding target tool according to the tool identifier, wherein the tool query table includes multiple tools and tool calling information, and the multiple tools include the target tool.
[0010] Maintaining the mapping relationship between keywords and tools through the keyword query table and maintaining the tool call information through the tool query table can simplify the query table and improve query efficiency. Compared with maintaining the mapping relationship and call information in one query table, the table structure is simpler, convenient for maintenance and modification, and the amount of data in a single table is also reduced, thus improving query efficiency.
[0011] As an optional embodiment, before searching for the tool identifier corresponding to the keyword from the keyword query table according to the keyword, the method also includes: creating a keyword query table based on a background service interface, wherein the keyword query table is used to be called by the service interface; in response to an editing operation, editing the keyword query table, wherein the keyword query table includes multiple keywords and tool identifiers corresponding to the keywords, and the mapping relationship between the keywords and the tool identifiers is many-to-one.
[0012] Before performing a keyword query, you need to create a keyword query table based on the background service interface so that when you need to call it, you can call the keyword query table in a timely and effective manner to query the target tool. The keyword query table can also be modified according to the user's editing operations to meet usage needs and expansion needs.
[0013] As an optional embodiment, before searching for the calling information of the corresponding target tool in the tool query table according to the tool identification, the method also includes: creating a corresponding tool query table based on the tool identification in the keyword query table, wherein the tool query table includes tool identifications of multiple tools and calling information corresponding to the tools; and modifying the calling information in response to a modification operation of the calling information.
[0014] After the corresponding tool identifier is found according to the keyword, the call information of the corresponding target tool needs to be obtained. Therefore, before obtaining the call information of the target tool in the tool query table, a tool query table needs to be created. The tool query table can also be modified according to the user's modification operation to meet the use requirements and expansion requirements.
[0015] As an optional embodiment, after searching for the calling information of the corresponding target tool in the tool query table according to the tool identification, and before calling the target tool for operation according to the calling information, the method also includes: sending the tool identification of the target tool to the user in an interactive manner; if the user needs to modify the calling parameters, displaying the details page of the target tool, wherein the details page allows the user to display and modify the calling parameters of the target tool, and the calling information includes the calling parameters; and modifying the calling parameters of the target tool in response to the parameter modification operation on the details page.
[0016] After finding the calling information of the target tool, the tool identification of the target tool is sent to the user, and the calling parameters of the target tool are modified according to the user's modification requirements to meet the user's calling requirements and improve the applicability of the calling tool.
[0017] As an optional embodiment, sending the tool identification of the target tool to the user in an interactive manner includes: obtaining the description information of the corresponding target tool from the calling information according to the tool identification, wherein the calling information includes the description information, and the description information is used to describe the target tool; sending the tool identification and description information of the target tool to the user in an interactive manner.
[0018] When the tool identification of the target tool is sent to the user, both the tool identification and description information of the target tool are sent to the user so that the user can confirm the target tool and modify the calling parameters of the target tool according to the needs.
[0019] As an optional embodiment, calling the target tool to perform an operation according to the calling information includes: generating a calling instruction for the target tool according to the calling information; sending the calling instruction to the target tool, wherein the target tool operates and is maintained independently; and receiving the result of the operation performed by the target tool in response to the calling instruction.
[0020] Generate a call instruction through the call information, send it to the target tool, receive the processing result of the target tool, and realize the call of the target tool.
[0021] As an optional embodiment, generating the calling instruction of the target tool according to the calling information includes: if the user modifies the calling parameters, generating the calling instruction according to the modified calling parameters; if the user does not modify the calling parameters, generating the calling instruction according to the default calling parameters.
[0022] The calling instruction is generated by the calling parameters modified by the user or the default calling parameters not modified by the user, so as to instruct the target tool to perform processing operations according to the calling parameters in the instruction and obtain corresponding results.
[0023] As an optional embodiment, after sending the calling instruction to the target tool, the method further includes: sending the process information of sending the calling instruction to the target tool to the user in an interactive manner; after receiving the result of the operation processed by the target tool in response to the calling instruction, the method further includes: sending the result to the user in an interactive manner.
[0024] The process information of sending the calling instruction to the target tool is sent to the user, which can facilitate the user to timely understand the calling process. After receiving the result of the called target tool, the result is sent to the user to realize the calling of the target tool.
[0025] As an optional embodiment, the tool is a diagnostic tool, the calling instruction is a diagnostic instruction, and after receiving the result of the target tool performing operation processing in response to the calling instruction, the method further includes: when the result indicates the existence of a fault, determining the cause of the fault and / or a treatment measure based on the result; and sending the cause of the fault and / or the treatment measure to the user in an interactive manner.
[0026] In the case where the result indicates that there is a fault, the cause of the fault and / or a treatment measure can also be determined based on the result and sent to the user so that the user can handle the fault.
[0027] An embodiment of the present invention also provides a human-computer interactive configuration tool calling device, including: an acquisition module, used to obtain keywords input by a user in an interactive manner; a search module, used to search a query table for a target tool corresponding to the keyword and the calling information of the target tool according to the keyword, wherein the query table includes a mapping relationship between multiple keywords and target tools, and the calling information of the tool; a calling module, used to call the target tool for operation according to the calling information.
[0028] The beneficial effects of the embodiments of the present invention are as follows: the call information of the target tool to be called is obtained according to the input keywords through the query table, and the target tool is called according to the call information to perform the operation. Thus, the required tool can be called according to the keywords in the human-computer interaction process, without writing the calling tool into the code, thereby improving the flexibility of tool calling. Moreover, by maintaining the query table, the call information of the maintenance keywords and tools can be more conveniently expanded and modified. The tool query table can more conveniently expand and modify the call information of the maintenance keywords and tools.
[0029] An embodiment of the present invention further provides an electronic device, comprising: a processor, and a memory storing a program, wherein the program comprises instructions, and when the instructions are executed by the processor, the processor executes any one of the methods described above.
[0030] An embodiment of the present invention further provides a non-transitory machine-readable medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any one of the methods described above.
[0031] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.
[0033] Figure 1 The present invention is a flowchart of a method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention.
[0034] Figure 2 The present invention is a flowchart of another method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention.
[0035] Figure 3 It is a flowchart of a method for calling a tool for dialogue interaction diagnosis according to an embodiment of the present invention.
[0036] Figure 4 The present invention is a flowchart of another method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention.
[0037] Figure 5 It is a schematic diagram of a dialog interaction diagnosis page according to an embodiment of the present invention.
[0038] Figure 6 4 is a schematic diagram of a target tool details page according to an embodiment of the present invention.
[0039] Figure 7 The present invention is a flowchart of another method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention.
[0040] Figure 8 It is a schematic diagram of a configuration tool calling device for human-computer interaction according to an embodiment of the present invention.
[0041] Fig. 9 Schematic diagram of the structure of the electronic device of this embodiment. DETAILED DESCRIPTION
[0042] Embodiments of the present embodiment will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present embodiment are shown in the accompanying drawings, it should be understood that the present embodiment can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present embodiment. It should be understood that the drawings and embodiments of the present embodiment are only for exemplary purposes and are not intended to limit the scope of protection of the present embodiment.
[0043] The method of human-computer interaction in related technologies is to determine the tool to be called through multiple rounds of dialogue with the user, and the tool calling instruction is pre-written in the dialogue program through coding. When the program runs to the corresponding position, it will automatically send the calling instruction to call the tool.
[0044] This method has poor scalability. Once a new tool or a new calling method needs to be added, it needs to be implemented by modifying the code, and it is difficult to maintain. When the tool is updated, it may be necessary to modify the code in the entire program. That is, the tool calling method of human-computer interaction in the related art has the problem of difficult maintenance and poor scalability.
[0045] In order to solve the above technical problems, this embodiment provides a human-computer interactive configuration tool calling method and device, which obtains the calling information of the target tool to be called according to the input keywords through the tool query table, and calls the target tool to operate according to the calling information.
[0046] In this way, the required tools can be called according to the keywords in the human-computer interaction process without writing the calling tools into code, which improves the flexibility of tool calling. Moreover, by maintaining the keyword query table and the tool query table, the calling information of the maintenance keywords and tools can be expanded and modified more conveniently.
[0047] This solves the problem that the tool calling method of human-computer interaction in the related technology is difficult to maintain and has poor scalability.
[0048] It should be noted that the method for calling the configuration tool for human-computer interaction provided in this specification can be applied to electronic devices for human-computer interaction. The electronic devices may include notebooks, desktop computers, smart phones, smart wearable devices (virtual reality glasses, smart watches, etc.), tablet computers, etc. Of course, the method for calling the configuration tool for human-computer interaction provided in this specification can also be applied to applications running in the above-mentioned electronic devices. For example, the method for calling the configuration tool for human-computer interaction can be applied to a browser with an instant messaging function, and can also be applied to an instant messaging software.
[0049] Figure 1 is a flowchart of a method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention. Figure 1 To solve the above technical problems, an embodiment of the present invention provides a method for calling a configuration tool for human-computer interaction, which specifically includes the following steps:
[0050] Step S101, obtaining keywords input by the user in an interactive manner;
[0051] Step S102, searching a query table for a target tool corresponding to the keyword and the calling information of the target tool according to the keyword, wherein the query table includes a mapping relationship between multiple keywords and the target tool, and the calling information of the tool;
[0052] Step S103, calling the target tool to perform operation according to the calling information.
[0053] The above-mentioned configuration tool calling method for human-computer interaction provided by the embodiment of the present invention obtains the calling information of the target tool to be called according to the input keywords through the query table, and calls the target tool to operate according to the calling information. In this way, the required tool can be called according to the keywords in the human-computer interaction process, without writing the calling tool into the code, which improves the flexibility of tool calling. Moreover, by maintaining the query table, it is more convenient to expand and modify the maintenance keywords and tool calling information.
[0054] The above interaction method can be a human-computer interaction method, and information can be input through voice, text, etc., and the robot recognizes keywords based on the input information. For example, the input voice can be recognized by voice sentence text, and then keyword extraction is performed based on the sentence text to obtain keywords.
[0055] The user side is the user side of the human-computer interaction, and the other side is usually a robot. The robot can automatically process and identify the information input by the user side and give corresponding replies. Some replies may involve tool calls. For example, if the user input has certain faults, it may be necessary to call the corresponding fault detection tool for fault detection.
[0056] The method of this embodiment is aimed at tool calling in human-computer interaction. Due to the human-computer interaction in the related art, the calling instructions of the tool calling involved in the interaction process are directly written into the program, which has the problems of difficult maintenance and poor scalability.
[0057] This embodiment provides a query table, which includes multiple keywords that may be input by the user, the tools corresponding to each keyword, and the specific call information of the tool. According to the keywords input by the user, the call information of the target tool to be called can be found. Then, the call instruction of the target tool is generated according to the call information, and the target tool is called.
[0058] When keywords, tools, and tool calling information need to be added or deleted, or need to be modified or maintained, the information in the query table can be modified directly. When the tool is called, it is still directly queried and called from the query table. There is no need to write the calling instructions of the called tool into the code, and when maintaining and updating, there is no need to modify the code of the entire program in the related art.
[0059] In the above query table, when searching for tools based on keywords, there can be multiple mapping relationships between keywords and tools. However, in order to ensure that a tool can be effectively called, at least one keyword corresponds to it. The mapping relationship can be one keyword corresponding to one tool, or one keyword corresponding to multiple tools. The corresponding tool can be directly searched in the query table based on the input keyword.
[0060] In some embodiments, the mapping relationship may also be that multiple keywords correspond to one tool, and when determining each tool, the tools may be associated by combining multiple keywords. In order to improve query efficiency, one keyword in this embodiment may correspond to one tool, and the corresponding tool may be quickly determined by table search.
[0061] The keyword input by the user can be one or more. When one keyword can correspond to one tool, one keyword usually corresponds to one tool, and the corresponding tool is used as the target tool. Multiple keywords usually correspond to multiple tools, and the corresponding multiple tools can all be used as target tools, or multiple tools can be sent to the user and the user can select the target tool.
[0062] In the case where a keyword corresponds to multiple tools, no matter the keyword is one or more, the multiple tools that are hit can be used as target tools, or the multiple tools can be sent to the user and the user can select the target tool.
[0063] The query table also includes the call information of each tool, which can be mounted on the corresponding tool identifier in the form of a list item or a sub-table for easy acquisition. In other embodiments, the call information of the tool can also be stored in a corresponding position in the form of a link, and can be obtained through the link when calling.
[0064] The above-mentioned calling of the target tool to perform operations according to the calling information may generate a calling instruction according to the calling information, and the information required for the calling instruction is included in the calling information. For example, the above-mentioned calling information may include a description document, a command line, a calling parameter, etc. The description document can be understood as a brief description of the tool, the command line is the command text used to generate the calling instruction, and the calling parameter is the corresponding parameter in the command line, which is also the parameter used to instruct the tool to run.
[0065] Then the call instruction is sent to the corresponding target tool, instructing the target tool to run the operation and obtain the result. After obtaining the result, the target tool will feed back the result, thereby obtaining the result of the target tool and realizing the call of the target tool.
[0066] As an optional embodiment, obtaining the keywords inputted by the user in an interactive manner includes: receiving a sentence text inputted by the user in an interactive manner; and segmenting the sentence text to obtain the keywords.
[0067] By segmenting the input sentence text and obtaining the input keywords, the corresponding tool can be called automatically based on the content of the human-computer interaction dialogue, making the calling process automated without the need for users to specifically enter keywords.
[0068] Common human-computer interaction methods include voice interaction and text interaction, both of which are based on sentences. Sentences input through interaction can be identified in different ways. For example, voice interaction can identify sentence text through voice. Keywords can be obtained from sentence text through word segmentation, keyword extraction, etc.
[0069] This embodiment uses a word segmentation method to obtain keywords from the sentence text, which is efficient, convenient and fast. It is automatically performed based on interactive input, which improves the calling efficiency. There is no need to manually summarize and summarize keywords, which is more convenient for users to use.
[0070] Figure 2 is a flowchart of another method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention. Figure 2 As shown, the embodiment of the present invention also provides another method for calling a configuration tool for human-computer interaction. Optionally, the method for calling a configuration tool for human-computer interaction provided in the embodiment of the present invention can be used in the method provided in the above embodiment. The query table includes a keyword query table and a tool query table. Step S102 of the above method searches for a target tool corresponding to a keyword from the query table according to the keyword and further includes:
[0071] Step S201, searching a keyword query table for a tool identifier of a target tool corresponding to the keyword, wherein the keyword query table includes a mapping relationship between a plurality of keywords and tool identifiers;
[0072] Step S202: searching for the call information of the corresponding target tool in a tool query table according to the tool identifier, wherein the tool query table includes a plurality of tools and the call information of the tools, and the plurality of tools includes the target tool.
[0073] The above-mentioned configuration tool calling method for human-computer interaction provided by the embodiment of the present invention maintains the mapping relationship between keywords and tools through the keyword query table, and maintains the calling information of the tool through the tool query table, which can simplify the query table and improve the query efficiency. Compared with the method of maintaining the mapping relationship and calling information in one query table, the table structure is more simplified, which is convenient for maintenance and modification, and the amount of data in a single table is also reduced, so the query efficiency can be improved.
[0074] The above query table contains keywords, tools, and tool calling information. If all the information is recorded in one query table, the query table will be cumbersome, complex in structure, and large in data volume. The search efficiency will be low during the search, which will seriously affect the calling efficiency.
[0075] Therefore, this embodiment divides the query table into two, namely, a keyword query table and a tool query table. The keyword query table is used to maintain the mapping relationship between keywords and tool identifiers, and the tool query table maintains the tool call information. When the keyword is updated, including operations such as adding, deleting, and modifying, only the keyword query table can be maintained and updated. When the tool machine call information is updated, including operations such as adding, deleting, and modifying, the tool query table can be maintained and updated, and the tool identifier in the keyword query table can be synchronized.
[0076] When searching, first query the tool ID of the corresponding target tool in the keyword query table based on the keyword, and query the corresponding call information in the tool query table based on the tool ID. Although it needs to be queried twice, the structure of the keyword query table and the tool query table is simple, and the amount of data is greatly reduced, the query speed will be faster, and two queries can still guarantee a high query speed.
[0077] In other embodiments, for more complex data items in the call information, statistics and maintenance can also be performed in the form of sub-tables. For example, the data items of the call parameters usually contain more variables and contents, which can be designed and maintained in the form of call parameter tables. However, the number of sub-tables should not be too high. If the number of sub-tables is too high, it will lead to more query times. Therefore, in this embodiment, only two tables are used, namely the keyword query table and the tool query table.
[0078] As an optional embodiment, before searching for a tool identifier corresponding to a keyword from a keyword query table based on the keyword, the method also includes: creating a keyword query table based on a background service interface, wherein the keyword query table is used to be called by the service interface; in response to an editing operation, editing the keyword query table, wherein the keyword query table includes multiple keywords and tool identifiers corresponding to the keywords, and the mapping relationship between the keywords and the tool identifiers is many-to-one.
[0079] The above-mentioned human-computer interaction configuration tool calling method provided by the embodiment of the present invention needs to create a keyword query table based on the background service interface before performing a keyword query, so that when the call is needed, the keyword query table can be called in a timely and effective manner to query the target tool. The keyword query table can also be modified according to the user's editing operation to meet the use requirements and expansion requirements.
[0080] The above-mentioned background service interface can be an API (Application Programming Interface) service interface, so as to realize the call query of the keyword query table and the tool query table, find the call information of the corresponding target tool, and then generate the call instruction of the target tool to call the target tool.
[0081] The above keyword query table and tool query table are both background data. The editing operation of the keyword query table can be to modify the keyword, modify the tool identifier, and modify the mapping relationship between the keyword and the tool identifier. The modification can be performed in the editing window or page of the settings.
[0082] The above modifications may include operations such as adding, deleting, and updating.
[0083] As an optional embodiment, before searching for the calling information of the corresponding target tool in the tool query table according to the tool identification, the method also includes: creating a corresponding tool query table based on the tool identification in the keyword query table, wherein the tool query table includes the tool identifications of multiple tools and the calling information corresponding to the tools; and modifying the calling information in response to a modification operation of the calling information.
[0084] After the corresponding tool identifier is found according to the keyword, the call information of the corresponding target tool needs to be obtained. Therefore, before obtaining the call information of the target tool in the tool query table, a tool query table needs to be created. The tool query table can also be modified according to the user's modification operation to meet the use requirements and expansion requirements.
[0085] The modification operation of the tool query table can be modification of the tool identification, modification of the tool call information, etc. The modification can be performed in the editing window or page of the settings. The above modification can also include adding, deleting, updating, etc.
[0086] The above keyword query table and tool query table can store independent operating environments and only call and run them in the service interface, so as to avoid interference with the front-end program operation as much as possible, and it is more convenient to query and maintain.
[0087] This embodiment is explained by taking a customer service robot as an example. If the customer service robot needs to call a tool, a self-managed API service interface is required in the background. For different diagnostic tools, the interface requires one-to-one coding configuration of the tool calling method, parameter settings, etc., which has poor scalability and difficult maintenance. Additions or modifications involve changes to the background system.
[0088] Figure 3 is a flowchart of a method for calling a tool for interactive diagnosis of a dialog according to an embodiment of the present invention. Figure 3 As shown, the specific process is as follows:
[0089] The user talks to the customer service robot and inputs sentence text or voice. The input voice can be converted into text, and then the sentence text entered by the user is segmented to obtain keywords.
[0090] Check whether there are the same keywords in the "Keyword Query Table", where the "Keyword Query Table" maintains a large number of "keyword-tool" many-to-one relationships, that is, one tool may correspond to multiple keywords. If the user inputs a keyword corresponding to a tool, it means that the tool needs to be called later. At this time, the tool is the above-mentioned target tool.
[0091] After finding the target tool to be called in the "Keyword Query Table" based on the keywords, query the specific calling information of the target tool in the "Tool Query Table". The "Tool Query Table" maintains the specific information of all tools, including the description documents, calling instructions, calling parameters, etc. of each tool. The calling parameters of the tool are stored in a specific format, and the calling parameter information includes the parameter name, parameter default value and parameter description.
[0092] The current customer service robot uses keywords to query the call instructions, call parameters, instruction documents and other call information required by the corresponding tool.
[0093] Allow the user to enter the required target tool call parameters. If the user does not enter, the default parameters can be used.
[0094] A complete call instruction is sent to the target tool, which works according to the call parameters in the call instruction, obtains the result, and sends it to the customer service robot.
[0095] The receiving target tool sends the result to get the result and returns the result to the user.
[0096] By designing, maintaining and querying tool-related tables, the customer service robot can select the corresponding tool based on user input to provide diagnostic services to users. Tool instructions support different numbers of parameter settings, and the expansion and property modification of the tool does not involve changes to the background system.
[0097] Figure 4 is a flowchart of another method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention. Figure 4 As shown, the embodiment of the present invention also provides another method for calling a configuration tool for human-computer interaction. Optionally, the method for calling a configuration tool for human-computer interaction provided by the embodiment of the present invention can be used in the method provided by the above embodiment. After step S202 of the above method searches for the calling information of the corresponding target tool in the tool query table according to the tool identifier, before step S103 calls the target tool to perform an operation according to the calling information, the method further includes:
[0098] Step S401, sending the tool identification of the target tool to the user in an interactive manner;
[0099] Step S402, when the user needs to modify the calling parameters, display the details page of the target tool, wherein the user displays and modifies the calling parameters of the target tool on the details page, and the calling information includes the calling parameters;
[0100] Step S403, responding to the parameter modification operation on the details page, modifying the calling parameters of the target tool.
[0101] The above-mentioned human-computer interactive configuration tool calling method provided by the embodiment of the present invention, after finding the calling information of the target tool, sends the tool identifier of the target tool to the user, and modifies the calling parameters of the target tool according to the user's modification requirements to adapt to the user's calling requirements and improve the applicability of the calling tool.
[0102] After the target tool is found, the tool identification of the target tool can be sent to the user, who then confirms whether it is the target tool required for the call. In other embodiments, if there are multiple target tools, the target tool to be called needs to be sent to the user for selection and confirmation, thereby ensuring the accuracy of the call.
[0103] After the target tool is found, in some usage scenarios, the user needs to define the calling parameters of the target tool to guide the target tool to run. Therefore, sending the tool identifier of the target tool to the user is also to facilitate the user to provide the required calling parameters to make a more accurate call according to user needs.
[0104] The above-mentioned situation where the user needs to modify the calling parameters can be determined through the interactive mode. For example, the user can enter the parameters to be modified, or directly enter the parameters. It is also possible to enter the details page of the target tool through the options provided by the interactive mode and modify the parameters that need to be modified.
[0105] If the user modifies the call parameters of the target tool, the modified call parameters are saved, and a call instruction is generated according to the modified call parameters. If the user does not modify the call parameters of the target tool, a call instruction is generated according to the default call parameters.
[0106] It should be noted that after the user modifies the call parameters, the call parameters in the tool query table will not be modified, but the modified values can be saved regularly for the user to call again. In addition, a behavior log can be generated for statistical recording and management.
[0107] As an optional embodiment, sending the tool identification of the target tool to the user in an interactive manner includes: obtaining the description information of the corresponding target tool from the calling information based on the tool identification, wherein the calling information includes the description information, and the description information is used to describe the target tool; sending the tool identification and the description information of the target tool to the user in an interactive manner.
[0108] When the tool identification of the target tool is sent to the user, both the tool identification and description information of the target tool are sent to the user so that the user can confirm the target tool and modify the calling parameters of the target tool according to the needs.
[0109] When the tool identification is sent to the user, the description information in the call information can also be obtained, such as the field to which the target tool belongs, a brief description, etc. The description information and the tool identification are sent to the user together, which is convenient for the user to understand the purpose and field of the target tool, and then convenient for the user to confirm whether it is the target tool to be called, reducing the professional threshold and difficulty of the user to confirm the target tool, and can also appropriately increase the speed of the user to confirm the target tool. In this embodiment, the above-mentioned tool identification can be the tool name, which is more convenient for the user to understand the tool.
[0110] This embodiment provides an example of tool calling for human-computer interaction based on the above-mentioned customer service robot, as follows.
[0111] Figure 5 is a schematic diagram of a dialog interaction diagnosis page according to an embodiment of the present invention. Figure 5 As shown, the user inputs "the machine has scheduling jitter", searches for the target tool "schedmoni" through the keyword "scheduling jitter", and obtains the tool-related calling information, including the tool name (also known as the tool identifier), the field to which it belongs, a brief introduction, and a tool usage link.
[0112] It should be noted that the customer service robot of this embodiment provides some commonly used control options during the dialogue with the user, such as Figure 5 In ChatGPT, answer is a selection control that provides another mode of human-computer dialogue in ChatGPT. Search platform, end dialogue, manual support, etc. are all commonly used quick controls that users may need.
[0113] Users can fill in the necessary information and parameter information required to use the target tool according to their needs. Specifically, click the name of the target tool in the dialog box to enter the target tool details page.
[0114] In this example, a combined query method of a keyword query table and a tool query table is adopted. The keyword query table is shown in Table 1, and the tool query table is shown in Table 2.
[0115] Table 1 Keyword query table
[0116]
[0117] Table 2 Tool query table
[0118]
[0119] It should be noted that due to space reasons, the relevant content is not fully displayed in the above Table 2. The content in the above Table 2 is only used as an example, and the main content lies in the list items.
[0120] For the target tool schedmoni in this example, for the convenience of explanation, only the parameters of the target tool, that is, the calling parameters, are shown in Table 3 below. Table 3 is the parameter table of the schedmoni tool. It should be noted that the content in Table 3 is actually recorded in the corresponding cells in Table 2. It is only for the purpose of fully displaying the content of the parameters that a separate table is used for explanation.
[0121] Table 3 Parameter table of schedmoni tool
[0122]
[0123] Figure 6 is a schematic diagram of a target tool details page of an embodiment of the present invention, such as Figure 6As shown, the details page shows the name of the target tool and some unmodifiable parameters such as the calling user. These parameters are usually automatically recorded by the program and cannot be modified.
[0124] The details page also contains the instance ID of the target tool, the region ID of the instance, the user ID (uID) of the instance, and the event of capturing delay exceeding the threshold, the duration of continuous diagnosis, and other parameters. The above parameters can be edited. If they are not edited, the default data will usually exist as the calling parameters of the target tool, so that the calling instructions can be generated later and the target tool can be instructed to operate.
[0125] The customer service robot then sends a complete diagnostic instruction to the target tool to obtain the diagnostic results. Figure 5 As shown, the process information sent by the diagnostic instruction can be notified to the user, so that the user can understand the calling process. After obtaining the result of the target tool, the result is displayed.
[0126] It should be noted that different tools may be displayed in different ways, such as tables, statistical graphs, pictures, etc., and links to the results may also be provided.
[0127] And it can also provide some commonly used controls, such as Figure 5 In the , evaluation controls, manual support, etc. are commonly used quick controls that users may need.
[0128] Figure 7 is a flowchart of another method for calling a configuration tool for human-computer interaction according to an embodiment of the present invention. Figure 7 As shown, the embodiment of the present invention also provides another method for calling a configuration tool for human-computer interaction. Optionally, the method for calling a configuration tool for human-computer interaction provided by the embodiment of the present invention can be used in step S103 provided in the above embodiment. In the above step S103, calling the target tool to perform an operation according to the calling information includes:
[0129] Step S701, generating a call instruction of a target tool according to the call information;
[0130] Step S702, sending a call instruction to a target tool, wherein the target tool is independently operated and maintained;
[0131] Step S703, receiving the result of the target tool performing operation processing in response to the calling instruction.
[0132] The above-mentioned human-computer interactive configuration tool calling method provided by the embodiment of the present invention generates a calling instruction through calling information, sends it to the target tool, receives the processing result of the target tool, and realizes the calling of the target tool.
[0133] When calling the target tool to perform operations according to the calling information and realizing the calling of the target tool, a calling instruction can be first generated according to the calling information, and then the calling instruction is sent to the target tool. The target tool runs according to the instructions of the calling instruction to obtain the required result. After the target tool obtains the result, it feeds back the result, and the received result is fed back to the user to realize the calling of the target tool.
[0134] As an optional embodiment, generating a calling instruction of a target tool according to the calling information includes: if the user modifies the calling parameters, generating the calling instruction according to the modified calling parameters; if the user does not modify the calling parameters, generating the calling instruction according to the default calling parameters.
[0135] The calling instruction is generated by the calling parameters modified by the user or the default calling parameters not modified by the user, so as to instruct the target tool to perform processing operations according to the calling parameters in the instruction and obtain corresponding results.
[0136] The above-mentioned calling instructions can be generated with reference to the command line and calling parameters. The command line can be understood as a template for the calling instructions. All data except the constants and variables of the calling parameters exist in the command line. When generating the calling instructions, you only need to determine the calling parameters and then fill in the command line to generate the corresponding calling instructions.
[0137] Since the call parameters may be modified by the user according to the needs, there are two cases when generating the call instruction. In the case where the user modifies the call parameters, the call instruction is generated according to the modified call parameters; in the case where the user does not modify the call parameters, the call instruction is generated according to the default call parameters.
[0138] The above default call parameters may already exist in the tool query table.
[0139] As an optional embodiment, after sending the call instruction to the target tool, the method also includes: sending the process information of sending the call instruction to the target tool to the user in an interactive manner; after receiving the result of the operation processed by the target tool in response to the call instruction, the method also includes: sending the result to the user in an interactive manner.
[0140] The process information of sending the calling instruction to the target tool is sent to the user, which can facilitate the user to timely understand the calling process. After receiving the result of the called target tool, the result is sent to the user to realize the calling of the target tool.
[0141] After sending the call instruction to the target tool and instructing the target tool to run, the corresponding process information can be sent to the user, and certain statements can be used to improve the user experience. For example, a message "The call instruction was sent successfully! Please wait patiently" can be sent to the user.
[0142] Furthermore, if the call instruction fails to be sent, it can also be fed back to the user, who can then check whether there are other call faults and eliminate the faults in a timely manner to ensure that the tool call can proceed normally.
[0143] After receiving the result of the target tool responding to the call instruction and performing the operation, the result is sent to the user through an interactive method. There are various ways to send the result. The result can be sent directly through an interactive method, or sent to a predetermined receiving terminal through a server, base station and other devices, which is more convenient for users to view the result of calling the target tool.
[0144] As an optional embodiment, the tool is a diagnostic tool, the calling instruction is a diagnostic instruction, and after receiving the result of the target tool performing operation processing in response to the calling instruction, the method also includes: when the result indicates the existence of a fault, determining the cause of the fault and / or treatment countermeasures based on the result; and sending the cause of the fault and / or treatment countermeasures to the user in an interactive manner.
[0145] In the case where the result indicates that there is a fault, the cause of the fault and / or a treatment measure can also be determined based on the result and sent to the user so that the user can handle the fault.
[0146] Whether the result represents a fault can be determined by a preset fault judgment rule, or by a machine learning model for fault identification. Taking a machine learning model as an example, it is necessary to train the machine learning model using multiple training data. Each set of training models can include the input result, whether the output is a fault, the cause of the fault if it is a fault, and the treatment countermeasures.
[0147] After the training is completed, it can be used. Specifically, the results are directly input into the machine learning model, and the machine learning model outputs the fault identification results, and when the fault is identified, the fault cause and / or treatment countermeasures are given.
[0148] Figure 8 is a schematic diagram of a configuration tool calling device for human-computer interaction according to an embodiment of the present invention, such as Figure 8 As shown, based on the above-mentioned human-computer interaction configuration tool calling method provided by an embodiment of the present invention, an embodiment of the present invention also provides a human-computer interaction configuration tool calling device, and the human-computer interaction configuration tool calling device includes: an acquisition module 801, a search module 802, and a calling module 803. The device is described in detail below.
[0149] The acquisition module 801 is used to acquire keywords input by the user in an interactive manner; the search module 802 is connected to the above-mentioned acquisition module 801, and is used to search for the target tool corresponding to the keyword and the calling information of the target tool from the query table according to the keyword, wherein the query table includes a mapping relationship between multiple keywords and the target tool, and the calling information of the tool; the calling module 804 is connected to the above-mentioned search module 802, and is used to call the target tool for operation according to the calling information.
[0150] The above-mentioned configuration tool calling device for human-computer interaction provided by the embodiment of the present invention obtains the calling information of the target tool to be called according to the input keywords through the keyword query table and the tool query table, and calls the target tool to operate according to the calling information. In this way, the required tool can be called according to the keywords in the human-computer interaction process, without writing the calling tool into the code, thereby improving the flexibility of tool calling. Moreover, by maintaining the keyword query table and the tool query table, the calling information of the maintenance keywords and tools can be more conveniently expanded and modified.
[0151] As an optional embodiment, the acquisition module 801 includes: an input unit, which is used to receive a sentence text input by a user in an interactive manner; and a word segmentation unit, which is used to segment the sentence text to obtain keywords.
[0152] By segmenting the input sentence text and obtaining the input keywords, the corresponding tool can be called automatically based on the content of the human-computer interaction dialogue, making the calling process automated without the need for users to specifically enter keywords.
[0153] As an optional embodiment, the query table includes a keyword query table and a tool query table, and the search module 802 includes: a tool search unit, used to search for a tool identifier corresponding to a keyword from the keyword query table according to the keyword, wherein the keyword query table includes a mapping relationship between multiple keywords and tool identifiers; an information search unit, used to search for the corresponding call information of the target tool in the tool query table according to the tool identifier, wherein the tool query table includes multiple tools and tool call information, and the multiple tools include the target tool.
[0154] Maintaining the mapping relationship between keywords and tools through the keyword query table and maintaining the tool call information through the tool query table can simplify the query table and improve query efficiency. Compared with maintaining the mapping relationship and call information in one query table, the table structure is simpler, convenient for maintenance and modification, and the amount of data in a single table is also reduced, thus improving query efficiency.
[0155] As an optional embodiment, the device also includes: a first creation module, which is used to create a keyword query table based on a background service interface before searching for a tool identifier corresponding to a keyword in the keyword query table according to the keyword, wherein the keyword query table is used to be called by the service interface; an editing module, which is used to edit the keyword query table in response to an editing operation, wherein the keyword query table includes multiple keywords and tool identifiers corresponding to the keywords, and the mapping relationship between the keywords and the tool identifiers is many-to-one.
[0156] Before performing a keyword query, you need to create a keyword query table based on the background service interface so that when you need to call it, you can call the keyword query table in a timely and effective manner to query the target tool. The keyword query table can also be modified according to the user's editing operations to meet usage needs and expansion needs.
[0157] As an optional embodiment, the device also includes: a second creation module, which is used to create a corresponding tool query table based on the tool identification in the keyword query table before searching for the calling information of the corresponding target tool in the tool query table according to the tool identification, wherein the tool query table includes tool identifications of multiple tools and the calling information corresponding to the tools; a modification module, which is used to respond to the modification operation of the calling information and modify the calling information.
[0158] After the corresponding tool identifier is found according to the keyword, the call information of the corresponding target tool needs to be obtained. Therefore, before obtaining the call information of the target tool in the tool query table, a tool query table needs to be created. The tool query table can also be modified according to the user's modification operation to meet the use requirements and expansion requirements.
[0159] As an optional embodiment, the device also includes: a tool display module, which is used to send the tool identification of the target tool to the user in an interactive manner; a details display module, which is used to display the details page of the target tool when the user needs to modify the calling parameters, wherein the details page user displays and modifies the calling parameters of the target tool, and the calling information includes the calling parameters; a parameter modification module, which is used to respond to the parameter modification operation on the details page and modify the calling parameters of the target tool.
[0160] After finding the calling information of the target tool, the tool identification of the target tool is sent to the user, and the calling parameters of the target tool are modified according to the user's modification requirements to meet the user's calling requirements and improve the applicability of the calling tool.
[0161] As an optional embodiment, the tool display module includes: a description unit, used to obtain the description information of the corresponding target tool from the calling information according to the tool identification, wherein the calling information includes the description information, and the description information is used to describe the target tool; a display unit, used to send the tool identification and description information of the target tool to the user in an interactive manner.
[0162] When the tool identification of the target tool is sent to the user, both the tool identification and description information of the target tool are sent to the user so that the user can confirm the target tool and modify the calling parameters of the target tool according to the needs.
[0163] As an optional embodiment, the calling module 804 includes: a generating unit, used to generate a calling instruction of the target tool according to the calling information; a calling unit, used to send the calling instruction to the target tool, wherein the target tool operates and is maintained independently; and a receiving unit, used to receive the result of the operation processed by the target tool in response to the calling instruction.
[0164] Generate a call instruction through the call information, send it to the target tool, receive the processing result of the target tool, and realize the call of the target tool.
[0165] As an optional embodiment, the generation unit includes: a first generation subunit, which is used to generate a call instruction according to the modified call parameters when the user modifies the call parameters; and a second generation subunit, which is used to generate a call instruction according to the default call parameters when the user does not modify the call parameters.
[0166] The calling instruction is generated by the calling parameters modified by the user or the default calling parameters not modified by the user, so as to instruct the target tool to perform processing operations according to the calling parameters in the instruction and obtain corresponding results.
[0167] As an optional embodiment, the calling module 804 also includes: a process display unit, which is used to send the process information of the calling instruction to the target tool after the calling instruction is sent to the target tool, and send it to the user in an interactive manner; a result display unit, which is used to send the result to the user in an interactive manner after receiving the result of the operation processed by the target tool in response to the calling instruction.
[0168] The process information of sending the calling instruction to the target tool is sent to the user, which can facilitate the user to timely understand the calling process. After receiving the result of the called target tool, the result is sent to the user to realize the calling of the target tool.
[0169] As an optional embodiment, the tool is a diagnostic tool, the calling instruction is a diagnostic instruction, and the calling module 804 also includes: a processing unit, which is used to determine the cause of the fault and / or the treatment countermeasure based on the result after receiving the result of the target tool responding to the calling instruction and performing operation processing, if the result indicates the existence of a fault; and a processing display unit, which is used to send the cause of the fault and / or the treatment countermeasure to the user in an interactive manner.
[0170] In the case where the result indicates that there is a fault, the cause of the fault and / or a treatment measure can also be determined based on the result and sent to the user so that the user can handle the fault.
[0171] An embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory in communication with the at least one processor. The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the method of the embodiment of the present invention.
[0172] An embodiment of the present invention further provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present invention.
[0173] An embodiment of the present invention further provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to enable the computer to execute the method of the embodiment of the present invention.
[0174] refer to Fig. 9 , a block diagram of an electronic device that can be used as a server or client of an embodiment of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0175] like Fig. 9As shown, the electronic device includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0176] Multiple components in the electronic device are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 can be any type of device that can input information to the electronic device, and the input unit 906 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 907 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 can include but is not limited to a disk, an optical disk. The communication unit 909 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0177] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present invention may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be stored in a ROM.
[0178] 902 and / or the communication unit 909 are loaded and / or installed on the electronic device. In some embodiments, the computing unit 901 can be configured to execute the above method in any other appropriate manner (for example, by means of firmware).
[0179] The computer programs for implementing the methods of the embodiments of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0180] In the context of an embodiment of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0181] It should be noted that the term "including" and its variations used in the embodiments of the present invention are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more".
[0182] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0183] The various steps described in the method implementation methods provided in the embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present invention is not limited in this respect.
[0184] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.
[0185] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.
Claims
1. A method for calling a configuration tool for human-computer interaction, comprising: Obtaining keywords input by the user in an interactive manner; According to the keyword, searching a query table for a target tool corresponding to the keyword and calling information of the target tool, wherein the query table includes a mapping relationship between a plurality of keywords and tools, and calling information of the tool; The target tool is called according to the calling information to perform an operation.
2. The method according to claim 1, wherein: The keywords entered by the user in an interactive manner include: Receiving sentence text inputted by the user in an interactive manner; The sentence text is segmented to obtain the keywords.
3. The method according to claim 1, wherein: The query table includes a keyword query table and a tool query table. Searching for a target tool corresponding to the keyword from the query table according to the keyword includes: searching the keyword query table for a tool identifier of a target tool corresponding to the keyword according to the keyword, wherein the keyword query table includes a mapping relationship between a plurality of keywords and tool identifiers; The calling information of the corresponding target tool is searched in a tool query table according to the tool identification, wherein the tool query table includes a plurality of tools and the calling information of the tools, and the plurality of tools includes the target tool.
4. The method according to claim 3, wherein: Before searching the keyword query table for a tool identifier corresponding to the keyword according to the keyword, the method further includes: Based on the background service interface, create a keyword query table, wherein the keyword query table is used to be called by the service interface; In response to the editing operation, the keyword query table is edited, wherein the keyword query table includes a plurality of keywords and tool identifiers corresponding to the keywords, and the mapping relationship between the keywords and the tool identifiers is many-to-one.
5. The method according to claim 3, wherein: Before searching for the call information of the corresponding target tool in the tool query table according to the tool identifier, the method further includes: Based on the tool identifiers in the keyword query table, creating a corresponding tool query table, wherein the tool query table includes tool identifiers of multiple tools and call information corresponding to the tools; In response to the modification operation of the calling information, the calling information is modified.
6. The method according to claim 3, wherein: After searching the tool query table for the call information of the corresponding target tool according to the tool identifier, and before calling the target tool to perform an operation according to the call information, the method further includes: Sending the tool identification of the target tool to the user in an interactive manner; In the case where the user needs to modify the calling parameters, displaying the details page of the target tool, wherein the details page allows the user to display and modify the calling parameters of the target tool, and the calling information includes the calling parameters; In response to the parameter modification operation on the details page, the calling parameters of the target tool are modified.
7. The method according to claim 6, wherein: Sending the tool identification of the target tool to the user in an interactive manner includes: According to the tool identifier, obtaining description information of the corresponding target tool from the calling information, wherein the calling information includes the description information, and the description information is used to describe the target tool; The tool identification and description information of the target tool are sent to the user in an interactive manner.
8. The method according to claim 1, wherein: Calling the target tool to perform an operation according to the calling information includes: Generate a calling instruction of the target tool according to the calling information; Sending the call instruction to the target tool, wherein the target tool is independently operated and maintained; Receive the result of the target tool performing operation processing in response to the calling instruction.
9. The method according to claim 8, wherein: Generating the calling instruction of the target tool according to the calling information includes: In the case where the user modifies the calling parameters, generating the calling instruction according to the modified calling parameters; In the case where the user does not modify the calling parameters, the calling instruction is generated according to the default calling parameters.
10. The method according to claim 8, wherein: After sending the call instruction to the target tool, the method further includes: Sending the process information of sending the calling instruction to the target tool to the user in an interactive manner; After receiving the result of the operation processed by the target tool in response to the call instruction, the method further includes: The result is sent to the user in an interactive manner.
11. The method according to claim 8, wherein: The tool is a diagnostic tool, the calling instruction is a diagnostic instruction, and after receiving the result of the target tool performing an operation in response to the calling instruction, the method further includes: In the case where the result indicates that a fault exists, determining the cause of the fault and / or a treatment measure according to the result; The fault cause and / or treatment countermeasure are sent to the user in an interactive manner.
12. A configuration tool calling device for human-computer interaction, comprising: An acquisition module is used to acquire keywords input by the user in an interactive manner; A search module, used to search a query table for a target tool corresponding to the keyword and the calling information of the target tool according to the keyword, wherein the query table includes a mapping relationship between a plurality of keywords and the target tool, and the calling information of the tool; A calling module is used to call the target tool to perform an operation according to the calling information.
13. An electronic device comprising: A processor, and a memory storing a program, wherein the program comprises instructions which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 11.
14. A non-transitory machine-readable medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 11.
Citation Information
Cited By
Tool determination method and device
CN121146046A
