Interaction method and device, electronic equipment, storage medium and program product

By introducing command creation interfaces and operation controls into the agent interaction system, users can customize and quickly apply the agent interaction function, solving the problem that the agent output does not meet the needs and improving the interaction efficiency and user experience.

CN119156593APending Publication Date: 2024-12-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202480002172.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

When users interact with the agent, it is difficult for the agent to quickly and effectively control the agent to output a specific type of response, resulting in reduced interaction efficiency and user experience.

Method used

Provide an interactive method. By displaying the instruction creation interface, the user enters information used to create target instructions, automatically generates prompt information, and generates operation controls. The user can call the interactive function of the agent through the operation control to improve interaction efficiency and convenience. .

Benefits of technology

It improves the interaction efficiency and user experience between users and agents, simplifies the instruction creation process, and enables users to quickly complete the application of interactive functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119156593A_ABST
    Figure CN119156593A_ABST
Patent Text Reader

Abstract

The invention relates to an interaction method and device, electronic equipment, a storage medium and a program product, and relates to the technical field of artificial intelligence. The interaction method comprises the steps of displaying an instruction creation interface in response to triggering of a user to an instruction creation function; according to information which is input by the user in the instruction creation interface and used for creating a target instruction, prompt information corresponding to the target instruction is determined, and the target instruction is used for representing demand information of the user for an interaction function of the intelligent agent; and generating and displaying an operation control of the target instruction according to the prompt information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to an interaction method, device, electronic device, storage medium and program product. Background Art

[0002] With the development of artificial intelligence (AI) technology, agents have gradually entered people's field of vision and are increasingly widely used in various fields. Agents can be used to interact with users, for example, to provide interactive services such as chatting and question-and-answering. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] According to some embodiments of the present disclosure, an interaction method is provided, including: displaying an instruction creation interface in response to a user triggering an instruction creation function; determining prompt information corresponding to the target instruction based on information input by the user in the instruction creation interface for creating the target instruction, wherein the target instruction is used to represent the user's demand information for the interactive function of the intelligent agent; and generating and displaying an operation control for the target instruction based on the prompt information.

[0005] According to other embodiments of the present disclosure, there is provided an interactive device, comprising: a first display module, configured to display an instruction creation interface in response to a user triggering an instruction creation function; a determination module, configured to determine prompt information corresponding to a target instruction based on information input by a user for creating a target instruction, wherein the target instruction is used to represent user demand information for an interactive function of an intelligent agent; and a second display module, configured to generate and display an operation control of the target instruction based on the prompt information.

[0006] According to some further embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory coupled to the processor, for storing instructions, wherein when the instructions are executed by the processor, the processor executes the interaction method of any embodiment of the present disclosure.

[0007] According to some further embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the interactive method of any embodiment of the present disclosure is performed.

[0008] According to some further embodiments of the present disclosure, a computer program product is provided, comprising: instructions, which implement the interactive method of any embodiment of the present disclosure when the instructions are executed by a processor.

[0009] According to some further embodiments of the present disclosure, a computer program is provided, comprising: instructions, which implement the interactive method of any embodiment of the present disclosure when the instructions are executed by a processor.

[0010] Other features, aspects and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The preferred embodiments of the present disclosure are described below with reference to the accompanying drawings. The drawings described herein are used to provide a further understanding of the present disclosure. Each of the drawings together with the following detailed description is included in this specification and forms a part of the specification, and is used to explain the present disclosure. It should be understood that the drawings described below only relate to some embodiments of the present disclosure and do not constitute a limitation on the present disclosure. In the drawings:

[0012] Figure 1 A schematic diagram showing a flow chart of an interaction method according to some embodiments of the present disclosure;

[0013] Figures 2A to 4C A schematic diagram showing an interactive interface of some embodiments of the present disclosure;

[0014] Figure 5 A schematic diagram showing the structure of an interactive device in some embodiments of the present disclosure;

[0015] Figure 6 A schematic diagram showing the structure of an electronic device according to some embodiments of the present disclosure;

[0016] Figure 7 A schematic diagram showing the structure of a computer system according to some embodiments of the present disclosure.

[0017] It should be understood that, for ease of description, the sizes of the various parts shown in the drawings are not necessarily drawn according to the actual proportional relationship. The same or similar reference numerals are used in the various drawings to represent the same or similar parts. Therefore, once an item is defined in one drawing, it may not be further discussed in subsequent drawings. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure, but it is obvious that the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The following description of the embodiments is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. It should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein.

[0019] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be performed in different orders, and / or performed in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown in the execution. The scope of the present disclosure is not limited in this respect. Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments should be interpreted as being merely exemplary and do not limit the scope of the present disclosure.

[0020] The term "include" and its variations used in the present disclosure mean an open term that includes at least the following elements / features but does not exclude other elements / features, that is, "including but not limited to". In addition, the term "include" and its variations used in the present disclosure mean an open term that includes at least the following elements / features but does not exclude other elements / features, that is, "including but not limited to". Therefore, include is synonymous with include. The term "based on" means "based at least in part on".

[0021] References throughout this specification to "one embodiment," "some embodiments," or "an embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. For example, the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments." Furthermore, the appearances of the phrases "in one embodiment," "in some embodiments," or "in an embodiment" in various places throughout this specification do not necessarily all refer to the same embodiment, but may do so.

[0022] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. Unless otherwise specified, the concepts of "first", "second", etc. are not intended to imply that the objects described in this way must be in a given order in time, space, ranking, or any other manner.

[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0025] The embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings, but the present disclosure is not limited to these specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In addition, in one or more embodiments, specific features, structures or characteristics can be combined in any suitable manner that will be clear from the present disclosure by a person of ordinary skill in the art.

[0026] When users interact with an agent, they often have some specific requirements for the agent's interactive functions and hope that the agent can output a specific type of response. For example, a user wants the agent to tell a story and hopes that the general content and word count of the story meet specific requirements.

[0027] If the user wants to control the intelligent agent to achieve specific interactive functions and meet specific needs, the user needs to input detailed demand information so that the intelligent agent can output a specific type of response based on the input information. If the user frequently uses a specific interactive function, the user needs to repeatedly input detailed demand information, which reduces the interaction efficiency and the user experience.

[0028] Based on the above problems, the present disclosure provides an interactive method. Figures 1 to 4C Give a description.

[0029] Figure 1 Flowcharts of some embodiments of the interactive method disclosed herein. Figure 1 As shown, the method of this embodiment includes: steps S102 to S106.

[0030] In step S102, in response to the user triggering the instruction creation function, an instruction creation interface is displayed.

[0031] The user can trigger the command creation function in any way, for example, by a control, by voice, by a preset action, etc., without limitation. The user can trigger the command creation function in a variety of distribution scenarios.

[0032] In step S104, prompt information corresponding to the target instruction is determined according to the information for creating the target instruction input by the user in the instruction creation interface.

[0033] Users can input information for creating target instructions in various forms such as text and voice, which are not limited here. The information used to create target instructions can be directly used as the prompt information (Prompt) corresponding to the target instruction. However, under normal circumstances, the information input by ordinary users for creating target instructions cannot control the output of the intelligent agent very well, and it is necessary to repeatedly modify and adjust it according to the output of the intelligent agent so that the output of the intelligent agent meets the needs. Therefore, the prompt information corresponding to the target instruction can be automatically generated based on the information used to create the target instruction. Compared with the information used to create the target instruction, the prompt information type is easier for the machine learning model corresponding to the intelligent agent to understand, which can make the output of the intelligent agent more in line with the needs and improve operational efficiency.

[0034] The agent can be implemented based on a machine learning model and can interact with the user. The content of the interaction may include various forms of content such as text, voice, and image, which are not limited here. The machine learning model is, for example, LLM (Large Language Model), which is not limited to the example given. The prompt information is used to input the machine learning model corresponding to the agent, so that the machine learning model can output a specific type of response according to the prompt information.

[0035] The target instruction is used to indicate the user's demand information for the interactive function of the agent. For example, the target instruction is used to indicate that the user hopes that the agent can realize the interactive function of Chinese-French translation. For example, the target instruction is used to indicate that the user hopes that the user can realize the interactive function of writing a copy, etc. The information used to create the target instruction can be the description information of the target instruction, for example, the demand description information for the number of words and expressions of the output French in the Chinese-French translation process.

[0036] In step S106, an operation control of the target instruction is generated and displayed according to the prompt information.

[0037] For example, prompt information is displayed, and in response to the user's confirmation operation on the prompt information, an operation control of the target instruction is generated. The operation control of the target instruction can be displayed in one or more distribution scenarios. For example, the operation control of the target instruction is used to respond to the user's trigger and send the target instruction to the agent corresponding to the target instruction, so that the agent corresponding to the target instruction generates reply information according to the target instruction.

[0038] The above embodiment provides a method for creating instructions for the user. In response to the user triggering the instruction creation function, the instruction creation interface is displayed. The user can enter information for creating a target instruction in the instruction creation interface, and the prompt information corresponding to the target instruction is automatically determined, thereby generating the operation control of the target instruction according to the prompt information, and displaying the operation control of the target instruction. Based on the method of the above embodiment, the user can customize personalized instructions, and the operation of creating instructions is simple and convenient, and the creation of instructions can be completed quickly. Since the operation control of the target instruction is generated, when the user wants to use the interactive function corresponding to the target instruction, it only needs to trigger the operation control to call the interactive function corresponding to the target instruction for interaction. Especially when the operation control of the target instruction is frequently used, the convenience and efficiency of the operation can be greatly improved, the interaction efficiency between the user and the intelligent body is improved, and the user experience is improved.

[0039] The user can trigger the instruction creation function in a variety of ways to display the instruction creation interface, which is described below in conjunction with some embodiments.

[0040] In some embodiments, an operation control of the instruction creation function is displayed; in response to the user triggering the operation control of the instruction creation function, an instruction creation interface is displayed.

[0041] The operation control of the instruction creation function can be displayed in one or more pages. For example, the operation control of the instruction creation function is displayed in the interaction page between the user and the agent; for another example, the operation control of the instruction creation function is displayed on the homepage of the application, but is not limited to the examples given.

[0042] In some embodiments, a user-agent interaction page is displayed, and an instruction viewing control is displayed in the user-agent interaction page. In response to the user triggering the instruction viewing control, an instruction display interface is displayed, and an operation control of the instruction creation function is displayed in the instruction display interface. The instruction display interface may also include one or more instructions that have been created.

[0043] like Figure 2A The interactive page shown is between the user and agent a. The interactive page can be divided into a display area 201 for displaying the interactive information between the user and agent a. The interactive page can also include an input area 202, where the user can input information in the input area, which can be input in the form of text, voice, etc. The "instruction" control 203 can be displayed in the display area 201, and of course, the "instruction" control 203 can also be displayed in the input area. The "instruction" control 203 can be an instruction viewing control or an operation control for an instruction creation function. In the case where the "instruction" control 203 is an instruction viewing control, in response to the user triggering the "instruction" control 203, the following can be displayed Figure 2B Or the command display interface shown in 2C.

[0044] like Figure 2A As shown, one or more candidate instructions 204 may also be displayed in the interactive page, for example, "travel clothing matching", "fitness plan". One or more candidate instructions are instructions created by the user or recommended instructions. The recommended instructions may be created by other users or provided by the application.

[0045] like Figure 2B As shown, the instruction display interface can be a half-screen page, or a full-screen page, a window, a floating layer, or any other form, which is not limited here. The instruction display interface may include a first tab page, for example, the first tab page is a "My" tab page. In the "My" tab page, the operation control "Create My Instructions" 211 of the instruction creation function can be displayed, and the created instructions 212 can also be displayed. The instruction display interface may also include a second tab page, for example, the second tab page is a "Recommended" tab page. One or more recommended instructions can be displayed in the "Recommended" tab page. The recommended one or more instructions may be created by other users or provided by an application, and instructions can be selected as one or more recommended instructions based on indicators such as the number of uses, frequency of use, popularity (for example, evaluation, etc.) of all instructions.

[0046] like Figure 2C As shown, when the user has no created instructions, the instruction creation function operation control "Create" 221 can be directly displayed on the instruction display interface, and corresponding guidance information can be displayed to guide the user to customize instructions or save common dialogues as instructions.

[0047] In response to the user triggering the "Create My Instructions" or "Create" controls, the following may be displayed: Figure 2D Alternatively, in the case where the "instruction" control 203 is an operation control for the instruction creation function, in response to the user triggering the "instruction" control 203, the following may be displayed: Figure 2D The instruction creation interface shown.

[0048] In some embodiments, the instruction creation interface includes a title input area and an instruction content input area. Of course, the instruction creation interface may also include only one area for inputting information for creating a target instruction. Figure 2D As shown, the instruction creation interface includes a title input area 231 and an instruction content input area 232. When the title input area is in an unoperated state, the first guide information is displayed. For example, the first guide information includes an example of a title, such as Figure 2D As shown, the first guidance information is "for example, summarize website information". When the instruction content input area is in an unoperated state, the second guidance information is displayed. For example, the second guidance information includes an example of prompt information, such as Figure 2D As shown, the first guiding information is “For example, you will analyze and summarize the content of the website…” The first guiding information and the second guiding information can be used to guide the user to input the title and instruction content, thereby improving the convenience of user operation.

[0049] The information for creating the target instruction can be input in the title input area and the instruction content input area in the form of text or voice. In some embodiments, the information for creating the target instruction includes at least one of the title of the target instruction and the content of the target instruction; in response to the information for creating the target instruction including the title of the target instruction, the title of the target instruction is displayed in the operation control of the target instruction; in response to the information for creating the target instruction not including the title of the target instruction, the title generated according to the prompt information is displayed in the operation control of the target instruction.

[0050] The user can enter only the title of the target instruction or only the content of the target instruction. The title of the target instruction can be displayed in the operation control of the target instruction, for example, Figure 2A The "Fitness Plan" shown in the figure is the title of the instruction, which is convenient for users to view and quickly select instructions. If the user does not enter the title of the target instruction, the title of the target instruction can be generated according to the prompt information corresponding to the target instruction. For example, a machine learning model is used to summarize the prompt information and generate the title of the target instruction.

[0051] In the above embodiment, the user can directly trigger the display of the instruction creation interface through the control of the trigger instruction creation function, and then input information for creating the target instruction, thereby improving the convenience and efficiency of user operation.

[0052] The user can also create the target instruction using the information that has been input. In some embodiments, in response to the user inputting the first interaction information, the first interaction information is displayed; in response to the user triggering the instruction creation function for the first interaction information; the instruction creation interface is displayed, and the first interaction information is displayed in the instruction creation interface as information for creating the target instruction.

[0053] The first interaction information input by the user is displayed in the interaction interface between the user and the agent, for example, Figure 2A , Figure 3A As shown, the first interaction information is "Tell a bedtime story". For example, in response to the user's preset operation on the first interaction information, the information operation interface is displayed, and a save instruction control is displayed in the information operation interface. In response to the user triggering the save instruction control (i.e., triggering the instruction creation function for the first interaction information), an instruction creation interface is displayed, and the first interaction information is displayed in the instruction creation interface as information for creating a target instruction.

[0054] like Figure 3AAs shown, the user can trigger the display of the information operation interface 301 through preset operations such as long pressing and double-clicking. The information operation interface can be displayed in the form of a floating layer, a window, etc., not limited to the example in the figure. While displaying the information operation interface, the first interactive information can be displayed with a prominent effect, and a mask can be added to the interactive interface to avoid the displayed content from affecting each other. In the information operation interface, a save instruction control 302 of "Save as instruction" can be displayed, and in response to the user triggering the save instruction control 302, an instruction creation interface is displayed. Other controls can also be displayed in the information operation interface, for example, a "Create a new dialogue" control for sending the first interactive information to other interactive objects and creating a new dialogue, a "Copy" control for copying the first exchange information, a "Modify" control for modifying the first interactive information that has been sent, and a "Select text" control for selecting part or all of the text in the first interactive information.

[0055] like Figure 3B As shown, in response to the user triggering the save instruction control 302, the first interaction information can be displayed in the instruction content input area of ​​the instruction creation interface. The user can continue to edit the first interaction information and input information for creating the target instruction.

[0056] The user may also trigger the instruction creation function for the first interaction information through voice or other operations, which is not limited to the examples given. The user may also trigger the instruction creation function through other methods such as voice, preset actions, etc., which will not be repeated here.

[0057] The following describes how to determine prompt information corresponding to a target instruction based on information for creating a target instruction input by a user in an instruction creation interface in conjunction with some embodiments.

[0058] In some embodiments, structured prompt information corresponding to the target instruction is generated based on information input by the user in the instruction creation interface for creating the target instruction.

[0059] Structured prompt information can make the prompt information more standardized, clear and specific, which can enable the machine learning model to better understand the context and constraints of the task, and enable the machine learning model to output more accurate and demand-oriented responses.

[0060] In some embodiments, information used to create a target instruction is parsed to determine the content of at least one of the tasks and outputs included in the information used to create the target instruction; the content of at least one of the tasks and outputs is expanded to generate task description information and output description information in the prompt information; and structured prompt information corresponding to the target instruction is generated based on the task description information and the output description information.

[0061] In many cases, the information input by the user to create the target instruction is not well understood by the machine learning model due to its simple content or inadequate structure, resulting in the agent's interactive function not meeting the requirements, that is, the output information does not meet the requirements. Therefore, the information used to create the target instruction can be expanded and improved so that the machine learning model can better understand it and output a more accurate response that meets the requirements.

[0062] A machine learning model can be used to parse the information used to create the target instructions to obtain at least one of the tasks and outputs. For example, the task is "analyze and summarize the information on the website", and the task can be a definition of the task to be completed or the role to be played by the machine learning model. For example, the output is "output summary information", and the output can include the format and style of the output. The information used to create the target instructions can also include constraints, which are used to constrain the machine learning model to comply with when performing the task. The constraints can also serve as constraints on the output. The information used to create the target instructions can also include examples, such as output samples. The more detailed the information used to create the target instructions, the more accurate the generated prompt information, the better the machine learning model understands, and the final output is more in line with user needs.

[0063] When the user only inputs the task or output, the machine learning model can also be used to expand and generate task description information and output description information. The task output information and output description information are more detailed than the tasks and outputs in the information used to create the target instruction, so that the generated prompt information is more accurate. When the information used to create the target instruction also includes constraints, the constraints can also be expanded.

[0064] If the information used to create the target instruction only includes the title of the target instruction, the task in the title can be identified and at least one of the outputs can be output. For example, if the title is "Chinese-French translation", "Chinese-French translation" can be used as a task. When the user only inputs the title, it can also be automatically expanded to obtain the prompt information corresponding to the target instruction.

[0065] In some embodiments, the content of at least one of the task and the output is expanded based on the content of at least one of the task and the output and sample prompt information, wherein the sample prompt information includes sample task description information and sample output description information.

[0066] The sample task description information and sample output description information in the sample prompt information are more accurate and in line with the standard. Based on the sample prompt information, the machine learning model can better understand what content should be expanded, so as to obtain more accurate prompt information. For example, when the output is "output summary information", the output can be expanded, the word count requirement of the output can be expanded, and other content of the output can be expanded.

[0067] In some embodiments, structured prompt information corresponding to the target instruction is generated based on the task description information and output description information in the generated prompt information, and a preset structure corresponding to the sample prompt information.

[0068] The sample prompt information may include multiple parts according to a preset structure, for example, including task description information and sample output description information, and the sample output description information may include format, style, constraint conditions, etc. The sample prompt information and its structure may be set according to actual needs. According to the sample prompt information, the structured prompt information corresponding to the target instruction generated by the machine learning model can be made more accurate.

[0069] In some embodiments, in response to a user triggering an information completion control in an instruction creation interface, structured prompt information corresponding to the target instruction is generated based on information input by the user in the instruction creation interface for creating the target instruction.

[0070] like Figure 2D Or as shown in 3B, an information completion control, i.e., "one-click completion", is displayed in the instruction content input area. In response to the user triggering the information completion control, the information used to create the target instruction can be expanded and completed, and the prompt information corresponding to the target instruction can be obtained and displayed.

[0071] "One-click completion" may correspond to an information completion instruction, which may be created by a user or provided by an application. In response to a user triggering an information completion control, an information completion instruction may be sent to an agent, so that a machine learning model corresponding to the agent expands the information used to create a target instruction and obtains prompt information corresponding to the target instruction. Sending an information completion instruction to an agent may include inputting prompt information corresponding to the information completion instruction into a machine learning model, and the prompt information corresponding to the information completion instruction may include the above-mentioned sample prompt information.

[0072] The prompt information generated after expanding and improving the information used to create the target instruction will be displayed, and the user can modify the prompt information to obtain the prompt information corresponding to the final target instruction. In some embodiments, the prompt information is displayed; in response to the user's modification operation on the prompt information, the prompt information is updated according to the modification operation.

[0073] The method of the above embodiment automatically expands and improves the information used to create the target instruction to obtain prompt information corresponding to the target instruction, thereby improving the convenience and efficiency of user operation, and the generated prompt information is more accurate, thereby improving the accuracy of generating the target instruction.

[0074] The user may also choose not to expand or improve the information used to create the target instruction, and directly determine to use the information used to create the target instruction as the prompt information corresponding to the target instruction.

[0075] After the prompt information corresponding to the target instruction is generated, the operation control of the target instruction can be automatically generated and displayed according to the prompt information. In some embodiments, in response to the user's confirmation operation on the prompt information, the operation control of the target instruction is generated, the prompt information corresponding to the target instruction and the operation control of the target instruction are associated, and the operation control of the target instruction is displayed.

[0076] In some embodiments, in response to the user triggering the operation control of the target instruction, the prompt information corresponding to the target instruction is input into the machine learning model corresponding to the intelligent agent, and the interactive function corresponding to the target instruction is generated, and the intelligent agent interacts with the user based on the interactive function.

[0077] Sending a target instruction to an agent can be sending a prompt message to the agent and inputting it into a machine learning model. After the machine learning model understands the prompt message, it can output a corresponding reply according to the requirements expressed in the prompt message, that is, it has the interactive function corresponding to the target instruction. The target instruction can include a title and a prompt message, and a unique identifier can also be set. The title is used to display in the corresponding control and other locations for user identification, and the prompt message is used to control the agent to generate a specific type of response.

[0078] In some embodiments, in response to the user's confirmation operation on the prompt information, an interactive function corresponding to the target instruction and an operation control of the target instruction associated with the interactive function are generated according to the prompt information; and the operation control of the target instruction is displayed.

[0079] For example, users can click Figure 2D Or the "Create" control in 3B, triggering the generation of the operation control of the target instruction. After the user confirms the prompt information, the interactive function corresponding to the target instruction can be directly generated. The interactive function can be an interactive function of a new intelligent agent, that is, creating a new intelligent agent with the interactive function. For example, create an intelligent agent that plays a certain role. The operation control of the target instruction can be a control that calls a new intelligent agent. In response to the user triggering the operation control of the target instruction, the new intelligent agent is called to interact with the user.

[0080] The method of the above embodiment automatically generates an operation control for the target instruction according to the prompt information corresponding to the target instruction, thereby improving the convenience and efficiency of user operation, facilitating the user's subsequent application of the target instruction, and improving the user experience.

[0081] After the target instruction operation control is generated, it can be distributed in different scenes. In some embodiments, in response to the user's setting of the distribution scene or according to the target instruction, the distribution scene of the control of the target instruction is determined; and the target instruction operation control is displayed in the distribution scene.

[0082] For example, in the case of multiple agents, the user can set the agent corresponding to the target instruction, and display the operation control of the target instruction in the interactive interface of the agent corresponding to the target instruction according to the user's setting. For another example, the user can set one or more pages for displaying the target instruction, and display the operation control of the target instruction in one or more pages according to the user's setting. For another example, according to the prompt information corresponding to the target instruction, determine the agent or page associated with the target instruction, display the operation control of the target instruction in the interactive interface of the agent associated with the target instruction, or display the operation control of the target instruction in the page associated with the target instruction.

[0083] By flexibly setting the distribution scenario of the target instruction's operation controls, users can more conveniently operate the target instruction's operation controls, thereby improving interaction efficiency.

[0084] The following describes how to apply the operation controls of the target instructions in conjunction with some embodiments.

[0085] In some embodiments, in response to the user triggering the operation control of the target instruction, information corresponding to the target instruction is sent to the agent, and reply information generated by the agent based on the target instruction is output.

[0086] like Figure 4A As shown, the operation control of the target instruction is, for example, a "bedtime story" control. In response to the user triggering the "bedtime story", a message of "tell a bedtime story" can be sent to the agent, and the message can be displayed with a preset effect. After that, the agent will generate and display a bedtime story.

[0087] In some embodiments, in response to the user triggering the operation control of the target instruction, guidance information for starting the interaction based on the target instruction is displayed, and in response to the user inputting the second interaction information, reply information generated by the intelligent agent based on the target instruction and the second interaction information is output.

[0088] Some interactive functions corresponding to target instructions do not require the user to input information to generate reply information, while some interactive functions corresponding to target instructions require the user to input specific information to generate reply information. Therefore, different types of target instructions will have different display and interaction effects.

[0089] like Figure 4B As shown, the operation control of the target instruction is, for example, a control of "Chinese-French translation". In response to the user triggering "Chinese-French translation", the guidance information of "Chinese-French translation" can be displayed in a preset manner in the input area, and the guidance information such as "Start Chinese-French translation now" can also be displayed in the display area of ​​the interactive information, without limitation to the examples given. In response to the user inputting and sending the second interactive information "existentialism", the second interactive information is displayed in the display area of ​​the interactive information, and the second interactive information can be displayed in a specific manner, for example, "Chinese-French translation" is displayed together with "existentialism", and an identifier is displayed.

[0090] In the method of the above embodiment, the user can directly

[0091] In some embodiments, in response to the third interaction information input by the user matching the target instruction, guidance information for enabling the target instruction is displayed, in response to the user's confirmation operation, information for sending the target instruction to the agent is displayed, and reply information generated by the agent based on the target instruction is output.

[0092] Not only can the interactive function corresponding to the target instruction be enabled by the user triggering the operation control of the target instruction, but also the interactive function corresponding to the target instruction can be enabled by identifying whether the input third interactive information matches the target instruction. For example, if the user inputs "tell a bedtime story", "tell a bedtime story" can be displayed with a preset effect (for example, in the form of highlighting, specific fonts, colors, adding identifiers, etc.) as a guide information to prompt the user that "tell a bedtime story" corresponds to an instruction. After the user confirms, the bedtime story can be directly generated according to the target instruction. Of course, after the user enters the third interactive information, the guide information for enabling the target instruction may not be displayed. Instead, after the user confirms sending the third interactive information, the guide information for enabling the target instruction is displayed in the display area of ​​the interactive information.

[0093] In some embodiments, in response to the user inputting fourth interaction information that matches the target instruction, guidance information for starting interaction based on the target instruction is displayed, and in response to the user inputting fourth interaction information, reply information generated by the intelligent agent based on the target instruction and the fourth interaction information is output.

[0094] For example, in response to the fourth interactive information input by the user being "Chinese-French translation", the guidance information of "Chinese-French translation" can be displayed in the input area with a preset effect, and the guidance information such as "Start Chinese-French translation now" can also be displayed in the interactive information display area, without limitation to the examples given. In response to the user inputting and sending the fourth interactive information "Existentialism", the fourth interactive information is displayed in the interactive information display area, and the fourth interactive information can be displayed in a specific manner, for example, "Chinese-French translation" is displayed together with "Existentialism", and an identifier is displayed, etc.

[0095] In the method of the above embodiment, the interaction information input by the user can be directly matched with the target instruction, and the target instruction is called to interact with the intelligent agent, which is convenient for users to use and improves the efficiency and convenience of operation.

[0096] The user can perform various operations on the created instructions, which are described below in conjunction with some embodiments.

[0097] In some embodiments, in response to a user triggering an instruction viewing function, one or more created instructions are displayed; in response to a user editing operation on a first instruction among one or more instructions, a title and prompt information corresponding to the first instruction are displayed; in response to a user modifying at least one of the title and prompt information corresponding to the first instruction, the title and prompt information corresponding to the first instruction are updated and displayed; in response to a user confirming the title and prompt information corresponding to the updated first instruction, an operation control for the updated first instruction is displayed.

[0098] In some embodiments, in response to a user triggering an instruction viewing function, one or more created instructions are displayed; in response to a user deleting a second instruction among the one or more instructions, an operation control of the second instruction is deleted.

[0099] For example, Figure 2B As shown in FIG4C, in response to the user's triggering of the instruction viewing control, the instruction display interface is displayed, and the created instructions are displayed in the first tab page. Figure 4C As shown, each created instruction can correspond to an operation control 401. In response to the user triggering the operation control of the first instruction, an operation window (or interface) is displayed. The operation window includes an edit control and a delete control. The user can modify the title and / or prompt information of the first instruction by triggering the edit control, and the user can delete the second instruction by triggering the delete control.

[0100] According to the method of the above embodiment, the user can edit and delete the created instructions, flexibly manage the created instructions, and improve the user experience.

[0101] The present disclosure also provides an interactive device, Figure 5 Give a description.

[0102] Figure 5 FIG. 1 is a structural diagram of some embodiments of the interactive device disclosed in the present invention. Figure 5 As shown, the interaction device 50 of this embodiment includes: a first display module 510 , a determination module 520 , and a second display module 530 .

[0103] The first display module 510 is configured to display an instruction creation interface in response to a user triggering an instruction creation function.

[0104] The determination module 520 is configured to determine prompt information corresponding to the target instruction based on information input by the user for creating the target instruction, wherein the target instruction is used to represent the user's demand information for the interactive function of the intelligent agent.

[0105] The second display module 530 is configured to generate and display an operation control of the target instruction according to the prompt information.

[0106] In some embodiments, the second display module 530 is configured to determine a distribution scene of controls of a target instruction in response to a user setting of a distribution scene or according to a target instruction; and display the operation controls of the target instruction in the distribution scene.

[0107] In some embodiments, the determination module 520 is configured to generate structured prompt information corresponding to the target instruction according to the information for creating the target instruction input by the user in the instruction creation interface.

[0108] In some embodiments, the determination module 520 is configured to parse the information used to create the target instruction, determine the content of at least one of the tasks and outputs included in the information used to create the target instruction; expand the content of at least one of the tasks and outputs to generate task description information and output description information in the prompt information; and generate structured prompt information corresponding to the target instruction based on the task description information and the output description information.

[0109] In some embodiments, the determination module 520 is configured to expand the content of at least one of the task and the output according to the content of at least one of the task and the output and sample prompt information, wherein the sample prompt information includes sample task description information and sample output description information.

[0110] In some embodiments, the determination module 520 is configured to generate structured prompt information corresponding to the target instruction based on the task description information and output description information in the generated prompt information and a preset structure corresponding to the sample prompt information.

[0111] In some embodiments, the determination module 520 is configured to generate structured prompt information corresponding to the target instruction in response to the user triggering the information completion control in the instruction creation interface and according to the information input by the user in the instruction creation interface for creating the target instruction.

[0112] In some embodiments, the instruction creation interface includes a title input area and an instruction content input area; the information used to create the target instruction includes at least one of the title of the target instruction and the content of the target instruction; the second display module 530 is configured to display the title of the target instruction in the operation control of the target instruction in response to the information used to create the target instruction including the title of the target instruction; and to display the title generated according to the prompt information in the operation control of the target instruction in response to the information used to create the target instruction not including the title of the target instruction.

[0113] In some embodiments, the second display module 530 is configured to respond to the user's confirmation operation on the prompt information, generate an interactive function corresponding to the target instruction and an operation control of the target instruction associated with the interactive function according to the prompt information; and display the operation control of the target instruction.

[0114] In some embodiments, the first display module 510 is configured to display an operation control of the instruction creation function; in response to the user triggering the operation control of the instruction creation function, an instruction creation interface is displayed.

[0115] In some embodiments, the first display module 510 is configured to display the first interaction information in response to the user inputting the first interaction information; in response to the user triggering an instruction creation function for the first interaction information; display an instruction creation interface, and display the first interaction information as information for creating a target instruction in the instruction creation interface.

[0116] In some embodiments, the interactive device 50 further includes: a third display module 540, configured to display prompt information; in response to a user's modification operation on the prompt information, the prompt information is updated according to the modification operation.

[0117] In some embodiments, the interaction device 50 also includes: an interaction module 550, which is configured to display information corresponding to the target instruction sent to the intelligent agent in response to the user triggering the operation control of the target instruction, and output reply information generated by the intelligent agent based on the target instruction; or to display guidance information for starting interaction based on the target instruction in response to the user triggering the operation control of the target instruction, and output reply information generated by the intelligent agent based on the target instruction and the second interaction information in response to the user inputting the second interaction information.

[0118] In some embodiments, the interaction module 550 is configured to, in response to a third interaction information input by the user matching the target instruction, display guidance information for enabling the target instruction, in response to a confirmation operation by the user, display information corresponding to the target instruction sent to the agent, and output reply information generated by the agent based on the target instruction; or, in response to a fourth interaction information input by the user matching the target instruction, display guidance information for starting interaction based on the target instruction, in response to a fourth interaction information input by the user, output reply information generated by the agent based on the target instruction and the fourth interaction information.

[0119] In some embodiments, the interactive device 50 also includes: an editing module 560, which is configured to display one or more created instructions in response to a user triggering an instruction viewing function; display a title and prompt information corresponding to the first instruction in response to a user editing operation on a first instruction among one or more instructions; update and display the title and prompt information corresponding to the first instruction in response to a user modifying at least one of the title and prompt information corresponding to the first instruction; and display the operation controls of the updated first instruction in response to a user confirming an operation on the title and prompt information corresponding to the updated first instruction.

[0120] In some embodiments, the interactive device 50 also includes: a deletion module 570, which is configured to display one or more created instructions in response to the user triggering the instruction viewing function; and delete the operation control of the second instruction in response to the user deleting the second instruction in one or more instructions.

[0121] It should be noted that the above-mentioned units (modules) are only logical modules divided according to the specific functions they implement, and are not used to limit the specific implementation methods. For example, they can be implemented in software, hardware, or a combination of software and hardware. In actual implementation, the above-mentioned units can be implemented as independent physical entities, or can also be implemented by a single entity (for example, a processor (CPU or DSP, etc.), an integrated circuit, etc.). In addition, the above-mentioned units are shown with dotted lines in the drawings to indicate that these units may not actually exist, and the operations / functions they implement can be implemented by the processing circuit itself.

[0122] In addition, although not shown, the device may also include a memory, which may store various information generated by the device, various units contained in the device during operation, programs and data for operation, data to be sent by the communication unit, etc. The memory may be a volatile memory and / or a non-volatile memory. For example, the memory may include, but is not limited to, a random access memory (RAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a read-only memory (ROM), and a flash memory. Of course, the memory may also be located outside the device. Optionally, although not shown, the device may also include a communication unit, which may be used to communicate with other devices. In one example, the communication unit may be implemented in a suitable manner known in the art, such as including communication components such as an antenna array and / or a radio frequency link, various types of interfaces, communication units, etc. It will not be described in detail here. In addition, the device may also include other components not shown, such as a radio frequency link, a baseband processing unit, a network interface, a processor, a controller, etc. It will not be described in detail here.

[0123] Some embodiments of the present disclosure also provide an electronic device. Figure 6 Block diagrams of some embodiments of the electronic device of the present disclosure are shown. For example, in some embodiments, the electronic device 60 can be various types of devices, for example, can include but are not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. For example, the electronic device 60 can include a display panel for displaying data and / or execution results used in the scheme of the present disclosure. For example, the display panel can be in various shapes, such as a rectangular panel, an elliptical panel, or a polygonal panel, etc. In addition, the display panel can be not only a flat panel, but also a curved panel, or even a spherical panel.

[0124] like Figure 6 As shown, the electronic device 60 of this embodiment includes: a memory 61 and a processor 62 coupled to the memory 61. It should be noted that Figure 6 The components of the electronic device 60 shown are only exemplary and non-limiting. The electronic device 60 may also have other components according to actual application requirements. The processor 62 may control other components in the electronic device 60 to perform desired functions.

[0125] In some embodiments, the memory 61 is used to store one or more computer-readable instructions. When the processor 62 is used to execute the computer-readable instructions, the computer-readable instructions are executed by the processor 62 to implement the interaction method according to any of the above embodiments. For the specific implementation of each step of the method and the related explanation content, please refer to the above embodiments, and the repetition will not be repeated here.

[0126] For example, the processor 62 and the memory 61 may communicate with each other directly or indirectly. For example, the processor 62 and the memory 61 may communicate with each other through a network. The network may include a wireless network, a wired network, and / or any combination of a wireless network and a wired network. The processor 62 and the memory 61 may also communicate with each other through a system bus, which is not limited by the present disclosure.

[0127] For example, the processor 62 may be embodied as various appropriate processors, processing devices, etc., such as a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The central processing unit (CPU) may be an X86 or ARM architecture, etc. For example, the memory 61 may include any combination of various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The memory 61 may include, for example, a system memory, which may store, for example, an operating system, an application, a boot loader (Boot Loader), a database, and other programs. Various applications and various data may also be stored in the storage medium.

[0128] In addition, according to some embodiments of the present disclosure, various operations / processes according to the present disclosure, when implemented by software and / or firmware, can be transmitted from a storage medium or a network to a computer system having a dedicated hardware structure, such as Figure 7 The computer system (or electronic device) 70 shown is installed with the programs constituting the software, and when the various programs are installed, the computer system can execute various functions, including the functions described above and the like. Figure 7 is a block diagram illustrating an example structure of a computer system that can be employed in an embodiment according to the present disclosure.

[0129] exist Figure 7In the embodiment, the central processing unit (CPU) 701 performs various processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703. In the RAM 703, data required when the CPU 701 performs various processes, etc. are also stored as needed. The central processing unit is only exemplary, and it can also be other types of processors, such as the various processors mentioned above. The ROM 702, RAM 703 and the storage part 708 can be various forms of computer-readable storage media, as described below. It should be noted that although Figure 7 ROM 702, RAM 703 and storage device 708 are shown separately in FIG. 7 , but one or more of them may be combined or located in the same or different memory or storage modules.

[0130] The CPU 701, the ROM 702, and the RAM 703 are connected to one another via a bus 704. An input / output interface 705 is also connected to the bus 704.

[0131] The following components are connected to the input / output interface 705: an input portion 706, such as a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output portion 707, including a display, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage portion 708, including a hard disk, a magnetic tape, etc.; and a communication portion 709, including a network interface card such as a LAN card, a modem, etc. The communication portion 709 allows communication processing to be performed via a network such as the Internet. It is easy to understand that although Figure 7 The various devices or modules in the computer system 70 are shown to communicate via a bus 704, but they may also communicate via a network or other means, wherein the network may include a wireless network, a wired network, and / or any combination of wireless networks and wired networks.

[0132] A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0133] In the case where the above-described series of processing is implemented by software, a program constituting the software can be installed from a network such as the Internet or a storage medium such as the removable medium 711 .

[0134] According to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the CPU 701, the above-mentioned functions defined in the interactive method of the embodiment of the present disclosure are executed.

[0135] It should be noted that in the context of the present disclosure, a computer-readable medium may be a tangible medium that may contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer-readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by an instruction execution system, device or device or used in combination with it. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0136] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0137] In some embodiments, a computer program is further provided, comprising: instructions, which, when executed by a processor, cause the processor to execute the interaction method of any of the above embodiments. For example, the instructions may be embodied as computer program codes.

[0138] In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In situations involving a remote computer, the remote computer may 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 may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).

[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] The modules, components or units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.

[0141] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0142] According to some embodiments of the present disclosure, an interaction method is provided, including: displaying an instruction creation interface in response to a user triggering an instruction creation function; determining prompt information corresponding to the target instruction based on information input by the user in the instruction creation interface for creating the target instruction, wherein the target instruction is used to represent the user's demand information for the interactive function of the intelligent agent; and generating and displaying an operation control for the target instruction based on the prompt information.

[0143] In some embodiments, displaying the operation control of the target instruction includes: determining the distribution scene of the control of the target instruction in response to the user's setting of the distribution scene or according to the target instruction;

[0144] In some embodiments, determining prompt information corresponding to the target instruction based on information input by the user in the instruction creation interface for creating the target instruction includes: generating structured prompt information corresponding to the target instruction based on information input by the user in the instruction creation interface for creating the target instruction.

[0145] In some embodiments, generating structured prompt information corresponding to the target instruction based on information input by a user in an instruction creation interface for creating a target instruction includes: parsing the information used to create the target instruction to determine the content of at least one of the tasks and outputs included in the information used to create the target instruction; expanding the content of at least one of the tasks and outputs to generate task description information and output description information in the prompt information; and generating structured prompt information corresponding to the target instruction based on the task description information and the output description information.

[0146] In some embodiments, expanding the content of at least one of the task and the output includes: expanding the content of at least one of the task and the output according to the content of at least one of the task and the output and sample prompt information, wherein the sample prompt information includes sample task description information and sample output description information.

[0147] In some embodiments, the sample prompt information is structured prompt information generated by generating sample task description information and sample output description information according to a preset structure, and generating structured prompt information corresponding to the target instruction includes: generating structured prompt information corresponding to the target instruction based on the task description information and output description information in the generated prompt information, and the preset structure corresponding to the sample prompt information.

[0148] In some embodiments, generating structured prompt information corresponding to the target instruction based on information input by a user in an instruction creation interface for creating the target instruction includes: in response to the user triggering an information completion control in the instruction creation interface, generating structured prompt information corresponding to the target instruction based on information input by the user in the instruction creation interface for creating the target instruction.

[0149] In some embodiments, the instruction creation interface includes a title input area and an instruction content input area; the information used to create the target instruction includes at least one of the title of the target instruction and the content of the target instruction; in response to the information used to create the target instruction including the title of the target instruction, the title of the target instruction is displayed in the operation control of the target instruction; in response to the information used to create the target instruction not including the title of the target instruction, the title generated according to the prompt information is displayed in the operation control of the target instruction.

[0150] In some embodiments, generating and displaying operation controls for a target instruction based on prompt information includes: in response to a user's confirmation operation on the prompt information, generating, based on the prompt information, an interactive function corresponding to the target instruction and an operation control for the target instruction associated with the interactive function; and displaying the operation control for the target instruction.

[0151] In some embodiments, in response to a user triggering an instruction creation function, displaying an instruction creation interface includes: displaying an operation control of the instruction creation function; in response to a user triggering an operation control of the instruction creation function, displaying the instruction creation interface.

[0152] In some embodiments, in response to a user triggering an instruction creation function, displaying an instruction creation interface includes: in response to a user inputting first interaction information, displaying the first interaction information; in response to a user triggering an instruction creation function for the first interaction information; displaying the instruction creation interface, and displaying the first interaction information as information for creating a target instruction in the instruction creation interface.

[0153] In some embodiments, the interaction method further includes: displaying prompt information; and in response to a user's modification operation on the prompt information, updating the prompt information according to the modification operation.

[0154] In some embodiments, the interaction method also includes: in response to the user triggering the operation control of the target instruction, displaying information corresponding to the target instruction sent to the intelligent agent, and outputting reply information generated by the intelligent agent based on the target instruction; or in response to the user triggering the operation control of the target instruction, displaying guidance information for starting the interaction based on the target instruction, and in response to the user inputting the second interaction information, outputting the reply information generated by the intelligent agent based on the target instruction and the second interaction information.

[0155] In some embodiments, the interaction method also includes: in response to third interaction information input by the user matching the target instruction, displaying guidance information for enabling the target instruction, in response to the user's confirmation operation, displaying information corresponding to the target instruction sent to the agent, and outputting reply information generated by the agent based on the target instruction; or in response to fourth interaction information input by the user matching the target instruction, displaying guidance information for starting interaction based on the target instruction, and in response to fourth interaction information input by the user, outputting reply information generated by the agent based on the target instruction and the fourth interaction information.

[0156] In some embodiments, the interaction method also includes: in response to a user triggering an instruction viewing function, displaying one or more created instructions; in response to a user editing operation on a first instruction among one or more instructions, displaying a title and prompt information corresponding to the first instruction; in response to a user modifying at least one of the title and prompt information corresponding to the first instruction, updating and displaying the title and prompt information corresponding to the first instruction; in response to a user confirming the title and prompt information corresponding to the updated first instruction, displaying the operation controls of the updated first instruction.

[0157] In some embodiments, the interaction method further includes: in response to a user triggering an instruction viewing function, displaying one or more created instructions; in response to a user deleting a second instruction in the one or more instructions, deleting an operation control of the second instruction.

[0158] According to other embodiments of the present disclosure, an interactive device is provided, comprising: a first display module, configured to display an instruction creation interface in response to a user triggering an instruction creation function; a determination module, configured to determine prompt information corresponding to a target instruction based on information input by a user for creating a target instruction, wherein the target instruction is used to represent user demand information for an interactive function of an intelligent agent; and a second display module, configured to generate and display an operation control of the target instruction based on the prompt information.

[0159] According to some further embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory coupled to the processor, for storing instructions, wherein when the instructions are executed by the processor, the processor executes the interaction method of any embodiment of the present disclosure.

[0160] According to some further embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the interactive method of any embodiment of the present disclosure is performed.

[0161] According to some further embodiments of the present disclosure, a computer program product is provided, comprising: instructions, which implement the interactive method of any embodiment of the present disclosure when the instructions are executed by a processor.

[0162] According to some further embodiments of the present disclosure, a computer program is provided, comprising: instructions, which implement the interactive method of any embodiment of the present disclosure when the instructions are executed by a processor.

[0163] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).

[0164] In the description provided herein, many specific details are set forth. However, it is understood that embodiments of the present invention can be implemented without these specific details. In other cases, well-known methods, structures, and techniques are not presented in detail in order not to obscure the understanding of the description.

[0165] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0166] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. An interactive method, comprising: In response to the user triggering the instruction creation function, displaying the instruction creation interface; Determine prompt information corresponding to the target instruction according to information for creating a target instruction input by the user in the instruction creation interface, wherein the target instruction is used to indicate the user's requirement information for an interactive function of an intelligent agent; According to the prompt information, an operation control of the target instruction is generated and displayed.

2. The interactive method according to claim 1, wherein: The operation control for displaying the target instruction includes: In response to the user's setting of the distribution scenario or according to the target instruction, determining the distribution scenario of the control of the target instruction; An operation control of the target instruction is displayed in the distribution scene.

3. The interactive method according to claim 1, wherein: The determining, based on the information input by the user on the instruction creation interface for creating the target instruction, prompt information corresponding to the target instruction includes: According to the information for creating the target instruction input by the user in the instruction creation interface, structured prompt information corresponding to the target instruction is generated.

4. The interactive method according to claim 3, wherein: The step of generating structured prompt information corresponding to the target instruction according to the information for creating the target instruction input by the user in the instruction creation interface includes: Parsing the information for creating the target instruction, and determining the content of at least one of the task and the output included in the information for creating the target instruction; Expanding the content of at least one of the task and the output to generate task description information and output description information in the prompt information; According to the task description information and the output description information, structured prompt information corresponding to the target instruction is generated.

5. The interactive method according to claim 4, wherein: The expanding the content of at least one of the task and the output includes: The content of at least one of the task and the output is expanded according to the content and sample prompt information of at least one of the task and the output, wherein the sample prompt information includes sample task description information and sample output description information.

6. The interactive method according to claim 5, wherein: The sample prompt information is structured prompt information generated by using the sample task description information and the sample output description information according to a preset structure. The structured prompt information corresponding to the target instruction is generated including: According to the task description information and the output description information in the generated prompt information, and the preset structure corresponding to the sample prompt information, structured prompt information corresponding to the target instruction is generated.

7. The interactive method according to any one of claims 3 to 6, wherein: The step of generating structured prompt information corresponding to the target instruction according to the information for creating the target instruction input by the user in the instruction creation interface includes: In response to the user triggering the information completion control in the instruction creation interface, structured prompt information corresponding to the target instruction is generated according to the information input by the user in the instruction creation interface for creating the target instruction.

8. The interactive method according to any one of claims 1 to 7, wherein: The instruction creation interface includes a title input area and an instruction content input area; The information used to create the target instruction includes at least one of a title of the target instruction and a content of the target instruction; In response to the information for creating the target instruction including the title of the target instruction, displaying the title of the target instruction in the operation control of the target instruction; In response to the information used to create the target instruction not including the title of the target instruction, displaying the title generated according to the prompt information in the operation control of the target instruction.

9. The interactive method according to any one of claims 1 to 8, wherein: The generating and displaying the operation control of the target instruction according to the prompt information includes: In response to the user's confirmation operation on the prompt information, generating an interactive function corresponding to the target instruction and an operation control of the target instruction associated with the interactive function according to the prompt information; Display the operation control of the target instruction.

10. The interactive method according to any one of claims 1 to 9, wherein: In response to the user triggering the instruction creation function, displaying the instruction creation interface includes: Displaying the operation control of the instruction creation function; In response to the user triggering the operation control of the instruction creation function, the instruction creation interface is displayed.

11. The interactive method according to any one of claims 1 to 10, wherein: In response to the user triggering the instruction creation function, displaying the instruction creation interface includes: In response to the user inputting first interaction information, displaying the first interaction information; In response to the user triggering an instruction creation function for the first interaction information; The instruction creation interface is displayed, and the first interaction information is displayed in the instruction creation interface as the information for creating the target instruction.

12. The interactive method according to any one of claims 1 to 11, further comprising: Display the prompt information; In response to the user's modification operation on the prompt information, the prompt information is updated according to the modification operation.

13. The interactive method according to any one of claims 1 to 12, further comprising: In response to the user triggering the operation control of the target instruction, displaying information corresponding to the target instruction sent to the agent, and outputting reply information generated by the agent based on the target instruction; or In response to the user triggering the operation control of the target instruction, guidance information for starting the interaction based on the target instruction is displayed; in response to the user inputting second interaction information, reply information generated by the agent based on the target instruction and the second interaction information is output.

14. The interactive method according to any one of claims 1 to 13, further comprising: In response to the third interaction information input by the user matching the target instruction, displaying guidance information for enabling the target instruction, and in response to the user's confirmation operation, displaying information corresponding to the target instruction being sent to the agent, and outputting reply information generated by the agent based on the target instruction; or In response to the user inputting the fourth interaction information matching the target instruction, guidance information for starting the interaction based on the target instruction is displayed; in response to the user inputting the fourth interaction information, reply information generated by the agent based on the target instruction and the fourth interaction information is output.

15. The interactive method according to any one of claims 1 to 14, further comprising: In response to the user triggering the instruction viewing function, displaying one or more instructions that have been created; In response to the user's editing operation on a first instruction among the one or more instructions, displaying a title and prompt information corresponding to the first instruction; In response to a modification operation by the user on at least one of the title and the prompt information corresponding to the first instruction, updating and displaying the title and the prompt information corresponding to the first instruction; In response to the user's confirmation operation on the updated title and prompt information corresponding to the first instruction, an updated operation control of the first instruction is displayed.

16. The interactive method according to any one of claims 1 to 15, further comprising: In response to the user triggering the instruction viewing function, displaying one or more instructions that have been created; In response to the user's deletion operation on a second instruction among the one or more instructions, an operation control of the second instruction is deleted.

17. An interactive device, comprising: A first display module is configured to display an instruction creation interface in response to a user triggering an instruction creation function; A determination module, configured to determine prompt information corresponding to the target instruction according to information input by the user for creating the target instruction, wherein the target instruction is used to indicate the user's requirement information for the interactive function of the agent; The second display module is configured to generate and display the operation control of the target instruction according to the prompt information.

18. An electronic device comprising: processor; as well as A memory coupled to the processor, for storing instructions, wherein when the instructions are executed by the processor, the processor executes the interaction method according to any one of claims 1 to 16.

19. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the interactive method described in any one of claims 1 to 16 is implemented.

20. A computer program product comprising: An instruction, which, when executed by a processor, implements the interactive method described in any one of claims 1-16.

Citation Information

Cited By

  • Interaction method, interaction device and computer readable storage medium

    CN120144012A

  • Interactive response method, electronic device and computer program product

    CN120671812A

  • Component generation method and device, electronic equipment and storage medium

    CN121008715A

  • Intelligent interaction control management method and system, terminal and storage medium

    CN121657917A