Interaction method, apparatus and electronic device
By displaying a parameter input area and receiving user input parameters during human-computer interaction, the problems of low efficiency and low user satisfaction in human-computer interaction are solved, achieving an efficient and personalized interactive experience.
Patent Information
- Application Number
- CN202310956371.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-07-31
AI Technical Summary
In existing technologies, human-computer interaction is inefficient and it is difficult to meet users' personalized needs, resulting in low user satisfaction.
By displaying a parameter input area, including parameter guidance information, the system receives parameters input by the user and executes shortcut commands based on the parameters, improving interaction efficiency and satisfaction by utilizing pre-set formats and personalized parameters.
It enables efficient expression of user intent, improves human-computer interaction efficiency, meets users' personalized needs, and enhances user satisfaction.
Smart Images

Figure CN119003058B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more particularly to an interactive method, apparatus, and electronic device. Background Technology
[0002] Artificial intelligence (AI) is a technology that simulates human intelligence, enabling computer systems to possess intelligent characteristics through learning, understanding, and decision-making abilities. With the development of AI technology, the application of intelligent assistants developed based on AI technology is becoming increasingly widespread.
[0003] Users can interact with the intelligent assistant, which will provide various services based on the user's interactions. Summary of the Invention
[0004] This disclosure provides an interaction method, apparatus, and electronic device.
[0005] In a first aspect, embodiments of this disclosure provide an interaction method, the method comprising: in response to receiving a trigger operation to execute a first shortcut instruction with parameters, displaying a parameter input area for inputting parameters of the first shortcut instruction, the parameter input area including parameter guidance information; receiving parameters input by a user according to the parameter guidance information; and executing the first shortcut instruction according to the parameters.
[0006] Secondly, embodiments of this disclosure provide an interactive device, comprising: a display unit, configured to display a parameter input area for inputting parameters of the first shortcut instruction in response to receiving a trigger operation for executing a first shortcut instruction with parameters, the parameter input area including parameter guidance information; a receiving unit, configured to receive parameters input by a user according to the parameter guidance information; and an execution unit, configured to execute the first shortcut instruction according to the parameters.
[0007] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, causing the at least one processor to perform the methods described in the first aspect above and various possible methods involved in the first aspect.
[0008] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the first aspect and various methods possibly involved in the first aspect.
[0009] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and various methods possibly involved in the first aspect.
[0010] The interactive method, device, and electronic device provided in this embodiment, in response to a trigger operation received for executing a first shortcut instruction with parameters, display a parameter input area for inputting parameters of the first shortcut instruction. The parameter input area includes parameter guidance information; it receives parameters input by the user according to the parameter guidance information; and executes the first shortcut instruction according to the parameters. This enables human-computer interaction by the user inputting parameters and then having the first shortcut instruction carrying those parameters perform the interaction. Since the first shortcut instruction can have a pre-set format, and these pre-set formats can help the model recognize the task of the first shortcut instruction, the parameterized first shortcut instruction can achieve efficient expression. The user only needs to fill in the parameters for the model to execute the first shortcut instruction in a pre-defined manner, which improves the efficiency of human-computer interaction. Furthermore, since the parameters are input by the user according to the parameter guidance information, the first shortcut instruction can carry personalized user parameters. Therefore, by executing the first shortcut instruction, a response information matching the personalized parameters can be obtained, which can improve user satisfaction. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 Schematic flow of the interaction method provided in this disclosure Figure 1 ;
[0013] Figure 2 This is a schematic diagram of an application scenario;
[0014] Figure 3A This is a schematic diagram of an application scenario;
[0015] Figure 3B This is a schematic diagram of an application scenario;
[0016] Figure 4 Schematic flow of the interaction method provided in this disclosure Figure 2 ;
[0017] Figure 5 Schematic flowchart three illustrating the interaction method provided in this disclosure;
[0018] Figure 6 This is a structural block diagram of the interactive device provided in this disclosure;
[0019] Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0021] A smart assistant is an application or device developed based on artificial intelligence technology. Users can send commands to the smart assistant via voice, images, or natural language text. The smart assistant can understand the user's input based on a model and respond accordingly. Prompts are the model's input or input templates, which can be natural language and / or other modalities of data. They are used to guide or prompt the model to complete specific processing to obtain the desired model output.
[0022] When interacting with the intelligent assistant, users can input commands (voice, images, or natural language text, etc.) and also use shortcuts provided by the system.
[0023] In some embodiments, shortcut commands encapsulate a finely tuned prompt and provide it to the user as a control (shortcut button). This allows the user to trigger the input of the encapsulated prompt to the model with a single click, thereby obtaining the corresponding output. Shortcut commands enable users to obtain relatively stable execution results at low cost.
[0024] Shortcuts include shortcuts without parameters and shortcuts with parameters.
[0025] For shortcuts with parameters, users can enter personalized parameters into the shortcuts. On the one hand, this allows them to send more precise commands to the smart assistant, and on the other hand, it allows users to send commands to the smart assistant that meet their personalized needs.
[0026] Please refer to Figure 1 It illustrates a schematic flow of the interaction method provided in this disclosure. Figure 1 .like Figure 1 As shown, the method includes:
[0027] S101: In response to receiving a trigger operation for executing a first shortcut command with parameters, a parameter input area for inputting parameters of the first shortcut command is displayed, the parameter input area including parameter guidance information.
[0028] In this embodiment, the executing entity can be a client running on a terminal device, such as a smart assistant client. In some application scenarios, the aforementioned smart assistant client can be integrated into other application clients, such as instant messaging application clients.
[0029] The aforementioned client's display interface can show the first shortcut command. Here, the first shortcut command refers to any shortcut command with parameters.
[0030] The first shortcut command with parameters refers to a shortcut command that requires the user to input parameters.
[0031] When a user executes a trigger operation on the first shortcut command in the aforementioned client display interface, a parameter input area for entering the parameters of the first shortcut command will be displayed on the interface. The parameter input area includes parameter guidance information, which guides the user in entering the parameters.
[0032] In some embodiments, the first shortcut command is displayed in the session window of the instant messaging application; step S101 above includes:
[0033] The input box in the session window displays a parameter input area for entering the parameters of the first shortcut command.
[0034] The instant messaging application mentioned here can be any instant messaging application. In these embodiments, the first shortcut command described above can be displayed in the conversation window of a session between the user and any contact. In some application scenarios, the contact may include a smart assistant. In these application scenarios, the first shortcut command described above can be displayed in the conversation window of a session between the user and a smart assistant.
[0035] In these embodiments, when a user performs a trigger operation on the first shortcut command with parameters, a parameter input area for inputting the parameters of the first shortcut command can be displayed in the input box of the instant messaging application.
[0036] By displaying the first shortcut command with parameters in the session window of the aforementioned instant messaging application, it provides convenience for users to execute the first shortcut command.
[0037] Please refer to Figure 2 and Figure 3A , Figure 2 This is a schematic diagram of an application scenario. Figure 3A This is a schematic diagram of an application scenario. For example... Figure 2As shown, the first shortcut command 202 with parameters can be displayed in the client interface 201. The identifier of the first shortcut command 202 can be, for example, "Generate drawing".
[0038] It should be noted that the identifier for the first shortcut command can include one or more of the following: text, letters, numbers, and symbols. The identifier of the first shortcut command allows users to quickly understand the function that the shortcut command can perform. The phrase "generate a picture" here is illustrative and does not constitute a limitation on the identifier of the shortcut command.
[0039] Figure 2 The first shortcut command 202 is actually associated with an operable control. When a user executes a trigger operation on the first shortcut command, it can be considered as the user executing a trigger operation on the operable control. The user can execute a trigger operation on the first shortcut command 202, thereby displaying the parameter input area of the first shortcut command's parameters on the client's display interface. For example... Figure 3A As shown, after the user executes the trigger operation on the first shortcut command, the parameter input area 203 of the first shortcut command can be displayed in the information input area of the interactive interface. The parameter input area 203 of the first shortcut command may include the identifier of the first shortcut command, "Generate Picture," and also parameter guidance information. This parameter guidance information refers to information used to guide the user in inputting parameters. For example... Figure 3A The parameter input area in the program contains the guide message "Add style keywords here" 204.
[0040] S102: Receive parameters input by the user based on the parameter guidance information.
[0041] After step S101 displays the parameter input area, the user can input the parameters of the first shortcut command in the client display interface according to the guidance information.
[0042] Users can, for example Figure 3A The guidance information in the parameter input area 203 shown indicates your parameters. Then, enter the parameters in the parameter input area.
[0043] Since the above parameters are input based on parameter guidance information, they can meet the requirements of shortcut commands and achieve the required accuracy. Furthermore, since these parameters are determined by the user, user-input parameters can also fulfill the user's personalized needs.
[0044] S103: Execute the first shortcut command according to the parameters.
[0045] Upon receiving the aforementioned parameters, the executing entity can generate a first shortcut instruction and then execute it. Specifically, the executing entity can send the first shortcut instruction to the server, which will then generate response information for that instruction. In some application scenarios, the server can input the first shortcut instruction into a machine learning model, which will then generate the response information for that instruction.
[0046] In this embodiment, in response to receiving a trigger operation to execute a parameterized first shortcut instruction, a parameter input area for inputting the parameters of the first shortcut instruction is displayed. The parameter input area includes parameter guidance information; the parameters input by the user according to the parameter guidance information are received; and the first shortcut instruction is executed according to the parameters. Since the aforementioned first shortcut instruction can have a pre-set format, and these pre-set formats can help the model recognize the task of the first shortcut instruction, the aforementioned parameterized first shortcut instruction can achieve efficient expression. The user only needs to fill in the parameters for the model to execute the first shortcut instruction in a pre-defined manner, which can improve the efficiency of human-computer interaction. Furthermore, since the parameters are input by the user according to the parameter guidance information, the aforementioned first shortcut instruction can carry personalized user parameters, thereby obtaining response information matching the personalized parameters by executing the aforementioned first shortcut instruction, which can improve user satisfaction.
[0047] In some embodiments, in step S102 above, the parameters input by the user based on the guidance information include: natural language parameters.
[0048] In these embodiments, the aforementioned natural language parameter refers to languages used for communication between people, including Chinese, English, etc., as opposed to "artificial" languages designed for computers, such as programming languages.
[0049] In these embodiments, the user inputs natural language parameters through the guidance information, rather than parameters composed of code designed for computers. Therefore, it provides convenience for the user to input the above parameters according to the guidance information.
[0050] In some embodiments, the above parameter keywords are highlighted.
[0051] The aforementioned highlighting includes, for example, displaying parameter keywords in a different font style and / or background color than the parameter guidance information. The font styles mentioned above include: color, size, bold, italics, etc. Figure 3A As shown, parameter keywords are displayed in bold to distinguish them from parameter guidance information.
[0052] Highlighting the above parameter keywords helps users quickly distinguish between parameter keywords and parameter guidance information.
[0053] In some embodiments, the parameter input area also includes parameter keywords, wherein parameter guidance information is set at a position adjacent to the parameter keywords.
[0054] like Figure 3A As shown, the parameter input area also includes the parameter keywords "description" and "style" 205. These parameter keywords can be fixed in the first shortcut instruction and are used to indicate to the model the category or attribute corresponding to the content following the keyword. The parameter guidance information is set in an adjacent position to the parameter keyword. This adjacent position can include one of the following: to the left, right, top, or bottom of the parameter keyword. For example... Figure 3A In this configuration, the parameter guidance information "Add style keyword here" 204 is positioned to the right of the parameter keyword "style," and the parameter guidance information "Add description here" 204 is positioned to the right of the parameter keyword "description." By placing the parameter guidance information adjacent to the parameter keyword, the aforementioned execution entity can easily associate the user-input parameters with the parameter keywords, thereby quickly generating a first shortcut instruction that includes the associated parameter keyword and the specific parameter.
[0055] In some embodiments, the parameter keywords include at least two parameter keywords; in the parameter input area, a corresponding parameter input entry is set at the position adjacent to each parameter keyword; wherein, the parameter guidance information corresponding to the parameter keyword is displayed in the parameter input entry corresponding to the parameter keyword.
[0056] like Figure 3A As shown, the parameter input area 203 of the first shortcut command "Generate Drawing" 202 can include two parameter keywords 205 "Description" and "Style", and a parameter input port is displayed to the right of each parameter keyword. Parameter guidance information is displayed in the parameter input port.
[0057] In these embodiments, by displaying multiple parameter keywords in the parameter input area, setting corresponding parameter input entries at the adjacent positions of each parameter keyword, and displaying parameter guidance information corresponding to the parameter keyword in the parameter input entries, it is convenient for the above-mentioned execution subject construction model to quickly identify multiple parameter shortcut commands, and also convenient for users to input parameters corresponding to different parameter keywords.
[0058] In some embodiments, step S102 above includes the following steps:
[0059] First, in response to the user's input operation on the parameter input field corresponding to the parameter keyword, the parameter guidance information corresponding to the parameter keyword is hidden.
[0060] Secondly, it receives the parameters entered by the user at the parameter input field based on the parameter guidance information.
[0061] In these embodiments, the parameter guidance information can be displayed before the user performs an input operation on the parameter input field, so that the user can understand what parameters to input. When a user is detected to have performed a trigger operation on the parameter input field, it can be considered that the user has started to perform a parameter input operation. Therefore, the parameter guidance information can be hidden at the parameter input field so that the user can input parameters at the parameter input field.
[0062] Within the input field where the aforementioned parameter guidance information is hidden, the user can input parameters. The aforementioned execution entity can receive the parameters input by the user.
[0063] Please refer to Figure 3B , Figure 3B This is a schematic diagram of an application scenario. For example... Figure 3B As shown, in parameter input area 203, the user enters the parameter "dog" 207 in the parameter input field corresponding to the parameter keyword "description" 205, and enters the parameter "sketch" 208 in the parameter input field corresponding to the parameter keyword "style" 205. After the above parameters are entered in the above parameter input fields, the parameter guidance information is no longer displayed in the above parameter input fields.
[0064] In these embodiments, parameter guidance information is displayed at the parameter input field before the user inputs parameters, which can prompt the user what parameters to input. The parameter guidance information is hidden when the user performs the parameter input operation, which can facilitate the user to input parameters at the parameter input field and improve the user experience.
[0065] In some embodiments, after receiving the parameters input by the user, the above interaction method further includes the following steps:
[0066] First, it receives the editing operations performed by the user on the parameters that have been entered in the parameter input field.
[0067] Secondly, after the editing operation is completed, determine the target parameter corresponding to the keyword.
[0068] In these embodiments, after the user inputs the parameters, the input parameters can be edited by adding, deleting, or modifying them at the parameter input field to improve the parameters.
[0069] In some application scenarios, the first shortcut command mentioned above is a multi-parameter shortcut command. For any parameter entered in any parameter input field, the user can edit the parameter individually without affecting the parameters already entered in other parameter input fields.
[0070] After the user has finished editing the parameters that have been entered as a parameter keyword, the target parameter corresponding to that parameter keyword can be determined. Then, the target parameter, the parameter keyword, and the parameters corresponding to other parameter keywords are used to construct a first shortcut command, and the first shortcut command is executed.
[0071] In these embodiments, the input parameters can be edited to improve them.
[0072] In some embodiments, the editing operation includes deleting the input parameter, where the target parameter is empty; and executing the first shortcut instruction based on the parameter further includes executing the first shortcut instruction for the empty parameter.
[0073] In these embodiments, the above-described editing operation can delete all the input parameters, at which point the target parameter of the first shortcut instruction is empty. If a first shortcut instruction for executing a run operation is received with empty parameters, the first shortcut instruction including empty parameters is sent to the server, and the server sends response information to the client according to a preset empty parameter response method.
[0074] In these embodiments, executing a first shortcut command with empty parameters based on user operation can execute the first shortcut command with empty parameters even if the user has not set any parameters, and return response information, thereby providing the user with some reference response information so that the user can better determine the parameters of the first shortcut command.
[0075] In some embodiments, the parameter input area includes parameter keywords and parameter input fields; the method further includes:
[0076] In response to receiving a trigger operation performed on the first keyword in the parameter keywords, highlight the parameter input entry corresponding to the first parameter keyword.
[0077] The first keyword mentioned above can be any keyword.
[0078] The above-mentioned highlighted parameter input field corresponding to the first parameter keyword includes a blinking cursor at the parameter input field corresponding to the first parameter keyword. Alternatively, the background color of the parameter input field corresponding to the first parameter keyword may be different from the background color of other areas.
[0079] In these embodiments, by highlighting the parameter input entry corresponding to the first parameter keyword triggered by the user, the user can find the corresponding parameter input entry by clicking on the first parameter keyword, making it convenient for the user to enter the corresponding parameter into the above parameter input entry.
[0080] In some embodiments, the method further includes:
[0081] In response to receiving a deletion operation for the second parameter keyword, check whether the first parameter corresponding to the keyword has been received;
[0082] If the detection result is yes, keep the first parameter and delete the keyword in the second parameter;
[0083] If the detection result is negative, delete the second parameter keyword and the corresponding parameter input entry.
[0084] In these embodiments, the second parameter keyword can be any pre-set parameter keyword. When a user performs a deletion operation on the second parameter keyword, the execution entity can determine whether it has received the parameter corresponding to the second parameter keyword. If the parameter has been received, it can retain the parameter and then delete the second parameter keyword.
[0085] The first shortcut command deletes the second parameter keyword, but still sets the parameter corresponding to the second parameter keyword at its original position. When executing the first shortcut command, the executing entity sends the first shortcut command with the parameter of the second parameter keyword retained but the second parameter keyword deleted to the server, and the server determines the response information based on the first shortcut command.
[0086] If no parameter corresponding to the second parameter keyword is received, the second parameter keyword, its corresponding parameter input field, and the parameter guidance information set in that parameter input field are directly deleted from the parameter input area. After deleting the second parameter keyword, if other parameter keywords are retained, the execution entity can generate a first shortcut instruction that does not include the second parameter keyword and its corresponding parameter.
[0087] In these embodiments, after a user deletes a parameter keyword, if a corresponding parameter already exists, the parameter is retained and the parameter keyword is deleted; if no parameter already exists, the parameter keyword is deleted. This supports the deletion of keywords in the parameter input area, thereby achieving the purpose of adjusting the first shortcut command.
[0088] In some embodiments, the method further includes the following steps:
[0089] First, in response to receiving a selection operation performed on the parameter input area, at least a portion of the parameter input area indicated by the selection operation is set to a selected state, wherein the portion of the parameter input area includes one or more of the following: a first shortcut instruction identifier, a parameter keyword, and a parameter input entry;
[0090] Secondly, it receives editing operations performed on at least a portion of the selected parameter input area;
[0091] Finally, perform the editing operation.
[0092] Taking "select all" as an example, users can perform actions on... Figure 3A or Figure 3B When a selection operation is performed on the parameter input area 203, if the selection operation selects all of the parameter input area 203, then the command name, parameter keyword, and the input parameters corresponding to the parameter keyword, and / or the parameter guidance information corresponding to the parameter keyword, all existing first shortcut commands in the parameter input area 203 will be selected.
[0093] The user can execute an editing operation using the first shortcut command located in the parameter input area when it is selected. The aforementioned execution entity can receive and execute the editing operation.
[0094] In some application scenarios, the above-mentioned editing operation can be a deletion operation. In these scenarios, the above-mentioned editing operation can delete at least a portion of the selected content in the parameter input area. This achieves the deletion of at least a portion of the content of the first shortcut command.
[0095] In some application scenarios, the above-mentioned editing operation can be a copy operation. In these scenarios, the above-mentioned editing operation can copy at least a portion of the selected content in the parameter input area. This allows at least a portion of the content of the first shortcut instruction to be copied, so that the content can be reused.
[0096] In these application scenarios, by selecting at least a portion of the first shortcut command in the parameter input area through a selection operation, and then performing an editing operation, users can quickly edit the first shortcut command with parameters.
[0097] In some embodiments, the first shortcut instruction with parameters is displayed in the interactive window of the session mode. The method further includes: displaying the first shortcut instruction carrying user-input parameters in the interactive window according to the user's operation.
[0098] In these embodiments, after a user enters parameters in the parameter input area, the user can trigger a operation on the "Send" control in the parameter input area. Upon receiving the trigger operation, the executing entity sends the first shortcut instruction carrying the parameters to the server to execute the first shortcut instruction, and simultaneously displays the first shortcut instruction in the interactive window. Thus, the user can browse the first shortcut instruction carrying the parameters.
[0099] exist Figure 3AIn the illustrated embodiment, a first shortcut command with parameters is displayed in the interactive window of the session mode, and when the shortcut command with parameters is triggered, a parameter input area for inputting the parameters of the first shortcut command is displayed in the input box of the interactive window of the session window mode.
[0100] In other embodiments of this disclosure, the first shortcut command may also be displayed in a floating window interactive window; and when the parameterized shortcut command is triggered, a parameter input area for inputting the parameters of the first shortcut command is displayed in the input box of the floating window interactive window.
[0101] Please refer to Figure 4 , Figure 4 Schematic flow of the interaction method provided in this disclosure Figure 2 .like Figure 4 As shown, the interaction method includes the following steps:
[0102] S401: In response to receiving a trigger operation for executing a first shortcut command with parameters, a parameter input area for inputting parameters of the first shortcut command is displayed, the parameter input area including parameter guidance information.
[0103] In this embodiment, the executing entity can be a client.
[0104] For the specific implementation of step S401 above, please refer to Figure 1 The relevant parts of the illustrated embodiments will not be repeated here.
[0105] S402: Obtain at least one recommended parameter.
[0106] The parameter input area may include the identifier of the first shortcut command, at least one parameter keyword, parameter input entries corresponding to each parameter keyword, and parameter guidance information set in the parameter input entries.
[0107] In some application scenarios, after a user clicks on the parameter input area, the aforementioned execution entity can obtain recommended parameters that match the parameter keywords from the local machine or the server.
[0108] For illustrative purposes, when the keyword for the above parameter is "style", the recommended parameters could be, for example, realism, surrealism, or dark art.
[0109] In some application scenarios, the aforementioned recommended parameters are related to the page content of the page where the parameterized first shortcut instruction is currently located. In these embodiments, the executing entity can determine the aforementioned recommended parameters based on the page content of the page where the first shortcut instruction is currently located.
[0110] To illustrate, the page content described above represents meeting-related content, and the first shortcut command could be, for example, a shortcut command for generating meeting minutes. Parameter keywords could include, for example, the topic, and the executing entity could extract recommended information from the titles in the meeting content, such as using the meeting title as recommended information, or a portion of the title as recommended information.
[0111] It is understandable that, for each parameter keyword, the aforementioned execution entity can determine at least one recommended parameter for that parameter keyword in the manner described above.
[0112] S403: Display at least one recommended parameter.
[0113] After obtaining at least one recommended parameter in step S402, at least one recommended parameter can be displayed. Specifically, when the user performs a trigger operation on the parameter input field in the parameter input area, the aforementioned at least one recommended parameter can be displayed.
[0114] S404: Receive the user's selection operation on at least one recommended parameter, and use the target recommended parameter indicated by the user's selection operation as the parameter input based on the parameter guidance information.
[0115] Users can perform a selection operation on one or more of the displayed recommended parameters. After receiving the selection operation, the executing entity can use the one or more recommended parameters indicated by the selection operation as the target parameter.
[0116] S405: Execute the first shortcut command according to the parameters.
[0117] The aforementioned execution entity can integrate the aforementioned parameter keywords with the input parameters into a first shortcut command, and then execute the first shortcut command.
[0118] and Figure 1 Compared to the illustrated embodiment, this embodiment describes obtaining and displaying recommended parameters, and using the target recommended parameters indicated by the user's selection operation as the content of the parameters corresponding to the parameter keywords input by the user. This provides convenience for the user to input parameters corresponding to the parameter keywords and can improve the efficiency of executing the first shortcut command.
[0119] Please refer to Figure 5 This illustrates a schematic flowchart three of the interaction method provided in this disclosure. Figure 5 As shown, the interaction method includes the following steps:
[0120] S501: In response to receiving a trigger operation for executing a first shortcut command with parameters, a parameter input area for inputting parameters of the first shortcut command is displayed, the parameter input area including parameter guidance information.
[0121] In this embodiment, the executing entity can be a client.
[0122] For the specific implementation of step S501 above, please refer to Figure 1 The relevant parts of the illustrated embodiments will not be repeated here.
[0123] The parameter input area may include the identifier of the first shortcut command, at least one parameter keyword, parameter input entries corresponding to each parameter keyword, and parameter guidance information set in the parameter input entries.
[0124] S502: Receives the search operation performed by the user using preset search terms in the parameter input area and displays the search results.
[0125] In this embodiment, the parameter input area supports search operations.
[0126] In some embodiments, a search entry can be set in the parameter input field of the parameter input area described above. Users can enter search terms in the search entry.
[0127] Schematic illustration: The first shortcut command mentioned above is a shortcut command for generating text summaries. The parameter input area may display the parameter keyword "text," and the parameter guidance information displayed in the parameter input field may include, for example, "Enter text content." The parameter input field may also display a search entry. Users can enter text keywords in the search entry.
[0128] Upon receiving the aforementioned keywords, the executing entity can search for matching search results from either its local machine or the server. Then, it will display the search results.
[0129] In some embodiments, the parameter input field supports the "@" instruction. When a user enters "@" in the parameter input field, the user identifiers corresponding to at least one of the user's contacts can be displayed.
[0130] In some embodiments, the search results described above include one or more of the following:
[0131] Document identifier, user identifier, task identifier, schedule identifier, meeting identifier.
[0132] In some application scenarios, when a user enters the above search terms into the above search entry point, the above execution entity can determine one or more items from the above search results based on the above search terms, and then display one or more of the above search results for the user to choose from.
[0133] As an illustration, after a user enters keywords for their search text according to the "Enter text content" prompt, the aforementioned execution entity can match these keywords with information stored as documents or meeting content. Multiple matching results are then displayed from top to bottom or left to right, ordered by match strength from highest to lowest.
[0134] S503: Receive the user's selection operation on the search results, and use the target search result determined by the selection operation as the parameter input according to the parameter guidance information.
[0135] Users can perform a selection operation on one or more of the displayed search results. The executing entity can use one or more search results indicated by the selection operation as parameters input according to the parameter guidance information.
[0136] S504: Execute the first shortcut command according to the above parameters.
[0137] The aforementioned execution entity can integrate the aforementioned parameter keywords with the input parameters into a first shortcut command, and then execute the first shortcut command.
[0138] and Figure 1 Compared to the illustrated embodiment, this embodiment describes providing a search function in the parameter input area and determining the content of the user-input parameters based on the search results, thereby facilitating user parameter input and improving the efficiency of executing the first shortcut command.
[0139] In some embodiments of the interaction method provided in this disclosure, the aforementioned parameterized first shortcut command may be pre-registered on the server. The server can receive the user's first shortcut command registration application information and display a shortcut command editing page to the user. The user can enter information such as the shortcut command identifier, parameter keywords, and parameter acquisition method on the shortcut command editing page. The server can receive the first shortcut command identifier, parameter keywords, and parameter acquisition method entered by the user on the shortcut command editing page.
[0140] When the first shortcut is a multi-parameter shortcut, the server can display a parameter list on the editing page for inputting multiple parameters. Users can then enter the corresponding keyword and method for retrieving each parameter from this list.
[0141] The above parameters can be obtained through user input or automatic acquisition.
[0142] When the user sets the parameter acquisition method to user input, a parameter guidance information input control can be displayed to the user. The user can enter parameter guidance information in the control.
[0143] Once the server obtains the shortcut identifier, parameter keywords, parameter acquisition method, and parameter guidance information corresponding to the parameter acquisition method being user input, it can generate the first shortcut corresponding to the shortcut identifier based on the preset shortcut template, store the first shortcut, and then publish the aforementioned first shortcut.
[0144] Corresponding to the above text Figure 1 The interaction method of the embodiment shown, Figure 6 This is a structural block diagram of an interactive device provided according to embodiments of the present disclosure. For ease of explanation, only the parts relevant to embodiments of the present disclosure are shown. (Refer to...) Figure 6 The device 60 includes a display unit 601, a receiving unit 602, and an execution unit 603.
[0145] Display unit 601 is configured to display a parameter input area for inputting parameters of the first shortcut instruction in response to receiving a trigger operation for executing a first shortcut instruction with parameters, the parameter input area including parameter guidance information;
[0146] The receiving unit 602 is used to receive parameters input by the user based on parameter guidance information;
[0147] Execution unit 603 is used to execute the first shortcut instruction according to the parameters.
[0148] In one embodiment of this disclosure, the parameters input by the user based on the guidance information include:
[0149] Natural language parameters.
[0150] In one embodiment of this disclosure, the parameter input area further includes parameter keywords, wherein parameter guidance information is set at a position adjacent to the parameter keywords.
[0151] In one embodiment of this disclosure, parameter keywords are highlighted.
[0152] In one embodiment of this disclosure, the parameter keywords include multiple parameter keywords;
[0153] In the parameter input area, a corresponding parameter input entry is set next to each parameter keyword; the parameter guidance information corresponding to the parameter keyword is displayed in the parameter input entry corresponding to the parameter keyword.
[0154] In one embodiment of this disclosure, the receiving unit 602 is further configured to:
[0155] In response to the user's input operation at the parameter input entry corresponding to the parameter keyword, hide the parameter guidance information corresponding to the parameter keyword;
[0156] Receives parameters entered by the user at the parameter input field based on the parameter guidance information.
[0157] In one embodiment of this disclosure, the receiving unit 602 is further configured to:
[0158] Receive editing operations performed by the user on parameters that have been entered in the parameter input field;
[0159] After the editing operation is completed, determine the target parameter corresponding to the keyword.
[0160] In one embodiment of this disclosure, the apparatus further includes an acquisition unit (not shown in the figures), the acquisition unit being configured to:
[0161] Obtain at least one recommended parameter;
[0162] Display at least one recommended parameter; accordingly, the receiving unit 602 is further configured to:
[0163] Receive the user's selection operation on at least one recommended parameter, and use the target recommended parameter indicated by the user's selection operation as the parameter input based on the parameter guidance information.
[0164] In one embodiment of this disclosure, the recommended parameters are related to the page content of the page where the first shortcut instruction with parameters is currently located.
[0165] In one embodiment of this disclosure, the receiving unit 602 is further configured to:
[0166] Receive search commands from users using preset search terms in the parameter input area and display the search results;
[0167] It receives the user's selection action on the search results and uses the target search result determined by the selection action as a parameter.
[0168] In one embodiment of this disclosure, the search results include one or more of the following:
[0169] Document identifier, user identifier, task identifier, schedule identifier, meeting identifier.
[0170] In one embodiment of this disclosure, the first shortcut command is displayed in the session window of an instant messaging application; the display unit 601 is further configured to: display a parameter input area for inputting parameters of the first shortcut command in the input box of the session window;
[0171] or,
[0172] The first shortcut command is displayed in the interactive window in floating window mode; the display unit 601 is further configured to: display a parameter input area for inputting parameters of the first shortcut command in the input box of the interactive window in floating window mode.
[0173] In one embodiment of this disclosure, the editing operation includes deleting the input parameter, where the target parameter is empty; and the execution unit 603 is further configured to:
[0174] Execute the first shortcut command with no arguments.
[0175] In one embodiment of this disclosure, the parameter input area includes parameter keywords and parameter input fields; the display unit 601 is further configured to:
[0176] In response to receiving a trigger operation performed on the first keyword in the parameter keywords, highlight the parameter input entry corresponding to the first parameter keyword.
[0177] In one embodiment of this disclosure, the device 60 further includes a first editing unit (not shown). The first editing unit is used for:
[0178] In response to receiving a deletion operation for the second parameter keyword, check whether the first parameter corresponding to the keyword has been received;
[0179] If the detection result is yes, keep the first parameter and delete the keyword in the second parameter;
[0180] If the detection result is negative, delete the second parameter keyword and the corresponding parameter input entry.
[0181] In one embodiment of this disclosure, the device 60 further includes a second editing unit (not shown). The second editing unit is used for:
[0182] In response to receiving a selection operation performed on the parameter input area, at least a portion of the parameter input area indicated by the selection operation is set to a selected state, wherein the portion of the parameter input area includes one or more of the following: a first shortcut command name, parameter keywords, and parameter input entries;
[0183] Receive editing operations performed on at least a portion of the selected parameter input area;
[0184] Perform the editing operation.
[0185] To implement the above embodiments, this disclosure also provides an electronic device.
[0186] refer to Figure 7The diagram illustrates a structural schematic of an electronic device 700 suitable for implementing embodiments of the present disclosure. The electronic device 700 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0187] like Figure 7 As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0188] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0189] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of embodiments of this disclosure.
[0190] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program (computer-executable instructions) that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0191] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0192] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0193] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0194] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0195] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The names of the units are not necessarily limiting in certain circumstances; for example, a receiving unit can also be described as "a unit that receives parameters input by a user based on parameter guidance information."
[0196] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0197] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0198] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0199] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0200] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. An interaction method, comprising: In response to a trigger operation received for executing a first shortcut command with parameters, a parameter input area is displayed for inputting the parameters of the first shortcut command. The parameter input area includes parameter guidance information and parameter keywords. The parameter keywords are fixed within the first shortcut command and are used to indicate the category or attribute corresponding to the content following the keyword. The first shortcut command is a control encapsulated with a finely tuned Prompt. The parameter guidance information is located adjacent to the parameter keywords and corresponds to the parameter keywords to guide the user to input parameters matching the parameter keywords. The parameter keywords include multiple parameter keywords. In the parameter input area, a corresponding parameter input entry is set adjacent to each parameter keyword. The parameter guidance information corresponding to the parameter keyword is displayed in the parameter input entry corresponding to the parameter keyword. Receive parameters input by the user based on the parameter guidance information; The first shortcut command is executed according to the parameters.
2. The method according to claim 1, characterized in that, The parameters input by the user based on the guidance information include: Natural language parameters.
3. The method according to claim 1, characterized in that, The parameters are highlighted.
4. The method according to any one of claims 1, characterized in that, The parameters input by the user based on the parameter guidance information include: In response to the user's input operation on the parameter input field corresponding to the parameter keyword, hide the parameter guidance information corresponding to the parameter keyword; Receives parameters entered by the user at the parameter input field based on the parameter guidance information.
5. The method according to claim 4, characterized in that, The method further includes: Receive editing operations performed by the user on parameters that have been entered in the parameter input field; After the editing operation is completed, determine the target parameter corresponding to the keyword.
6. The method according to claim 1, characterized in that, The method further includes: Obtain at least one recommended parameter; Displaying at least one recommended parameter; correspondingly, receiving parameters input by the user based on the parameter guidance information includes: The system receives a selection operation performed by the user on at least one recommended parameter, and uses the target recommended parameter indicated by the user's selection operation as the parameter input based on the parameter guidance information.
7. The method according to claim 6, characterized in that, The recommended parameters are related to the page content of the page where the parameterized first shortcut command is currently located.
8. The method according to claim 1, characterized in that, The parameters input by the user based on the parameter guidance information also include: Receive the search operation performed by the user using preset search terms in the parameter input area, and display the search results; Receive the user's selection operation on the search results, and use the target search result determined by the selection operation as the parameter.
9. The method according to claim 8, characterized in that, The search results include one or more of the following: Document identifier, user identifier, task identifier, schedule identifier, meeting identifier.
10. The method according to any one of claims 1-9, characterized in that, The first shortcut is displayed in the instant messaging application's session window; The parameter input area for displaying parameters for inputting the first shortcut command includes: displaying a parameter input area for inputting parameters for inputting the first shortcut command in the input box of the session window; or, The first shortcut command is displayed in the interactive window in floating window mode; the parameter input area for inputting the parameters of the first shortcut command includes: displaying a parameter input area for inputting the parameters of the first shortcut command in the input box of the interactive window in floating window mode.
11. The method according to claim 5, characterized in that, The editing operation includes deleting the input parameters, and the target parameter is empty; and the execution of the first shortcut instruction based on the parameters further includes: Execute the first shortcut command with no arguments.
12. The method according to claim 1, characterized in that, The parameter input area includes parameter keywords and parameter input fields; the method further includes: In response to receiving a trigger operation performed on the first keyword among the parameter keywords, the parameter input entry corresponding to the first parameter keyword is highlighted.
13. The method according to claim 1, characterized in that, The method further includes: In response to receiving a deletion operation for the second parameter keyword, it checks whether the first parameter corresponding to the keyword has been received; If the detection result is yes, retain the first parameter and delete the keyword in the second parameter; If the detection result is negative, delete the second parameter keyword and the parameter input entry corresponding to the second parameter keyword.
14. The method according to any one of claims 1-9, characterized in that, The method further includes: In response to receiving a selection operation performed on the parameter input area, at least a portion of the parameter input area indicated by the selection operation is set to a selected state, wherein the portion of the parameter input area includes one or more of the following: a first shortcut command name, parameter keywords, and parameter input entries; Receive editing operations performed on the selected at least part of the parameter input area; Perform the editing operation.
15. An interactive device, comprising: The display unit is configured to respond to a trigger operation received from a first shortcut command with parameters, and to display a parameter input area for inputting the parameters of the first shortcut command. The parameter input area includes parameter guidance information and parameter keywords. The parameter keywords are fixed within the first shortcut command and are used to indicate the category or attribute corresponding to the content following the keyword. The first shortcut command is a control encapsulated with a finely tuned Prompt. The parameter guidance information is located adjacent to the parameter keywords and corresponds to the parameter keywords to guide the user to input parameters matching the parameter keywords. The parameter keywords include multiple parameter keywords. In the parameter input area, a corresponding parameter input entry is set adjacent to each parameter keyword. The parameter guidance information corresponding to the parameter keyword is displayed in the parameter input entry corresponding to the parameter keyword. A receiving unit is used to receive parameters input by the user based on the parameter guidance information; An execution unit is used to execute the first shortcut instruction according to the parameters.
16. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method as described in any one of claims 1 to 14.
Citation Information
Patent Citations
Session interaction method and device in robot group, equipment and storage medium
CN113239172A
Information recommendation method and apparatus, electronic device and storage medium
WO2020258082A1