Instruction information processing method and device, electronic equipment and storage medium
By introducing custom instruction creation function into the AIGC platform, users can create personalized instructions according to their own needs, solving the problem that built-in shortcut instructions in the existing technology cannot meet the specific needs of users, significantly expanding the platform functionality and improving the user experience.
Patent Information
- Application Number
- CN202411674194.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-07
AI Technical Summary
Users in the existing AIGC platform can only use built-in shortcuts and cannot meet the specific needs of users.
It provides a method of processing instruction information, allowing users to customize the creation instructions through the instruction creation interface, including inputting the instruction name and content, and generating target instructions, which are displayed in the current instruction list for users to select and execute.
Users can customize the creation instructions according to their own needs, which expands the functionality of the AIGC platform, meets users' personalized needs, and improves user experience.
Smart Images

Figure CN119576460A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to an instruction information processing method, device, electronic device and storage medium. Background Art
[0002] With the development of artificial intelligence technology, the intelligence level of artificial intelligence generated content (AIGC) products is also constantly improving. AIGC products refer to a series of tools or platforms that use artificial intelligence technology to generate content. They can accurately understand user needs based on user input data or instructions, and automatically generate the required content.
[0003] At present, the AIGC platform has built-in shortcut commands, and allows users to execute a shortcut command separately, which can help users quickly complete some common or repetitive tasks. However, currently users can only use the built-in shortcut commands on the AIGC platform, and there is still a problem that it cannot meet the specific needs of users. Summary of the invention
[0004] The purpose of this application is to provide a command information processing method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem that users in the prior art can only use the shortcut commands built into the platform in the AI GC platform, and there is still a problem that the specific needs of users cannot be met.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for processing instruction information, the method comprising:
[0007] In response to the instruction to create an instruction, an instruction creation interface is displayed, wherein the instruction creation interface includes an instruction name input area, an instruction content input area, and a create instruction control;
[0008] In response to the creation instruction control being triggered, obtaining the instruction name input in the name input area and the instruction content input in the instruction content input area;
[0009] A target instruction is generated according to the instruction name and the instruction content, and the instruction name of the target instruction is displayed in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
[0010] In a second aspect, an embodiment of the present application provides an instruction information processing device, the device comprising:
[0011] A display module, for responding to an instruction creation instruction, and displaying an instruction creation interface, wherein the instruction creation interface displays an instruction name input area, an instruction content input area, and a create instruction control;
[0012] An acquisition module, configured to respond to the creation instruction control being triggered and acquire the instruction name input in the name input area and the instruction content input in the instruction content input area;
[0013] A generation module is used to generate a target instruction according to the instruction name and the instruction content, and display the instruction name of the target instruction in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the instruction information processing method as described in any one of the first aspects above.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the instruction information processing method as described in any one of the first aspects above are executed.
[0016] According to the instruction information processing method, device, electronic device and storage medium of the embodiment of the present application, in response to the instruction creation instruction, the instruction creation interface is displayed, and the instruction creation interface displays the instruction name input area, the instruction content input area and the create instruction control; in response to the creation instruction control being triggered, the instruction name entered in the name input area and the instruction content entered in the instruction content input area are obtained; according to the instruction name and the instruction content, the target instruction is generated, and the instruction name of the target instruction is displayed in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction. According to the embodiment of the present application, a more flexible custom instruction creation function is designed in the AIGC platform, allowing users to create personalized instructions according to their specific needs. Specifically, based on the instruction name input area, the instruction content input area and the create instruction control displayed in the provided instruction creation interface, when the user triggers the create instruction control, a new custom instruction is generated by capturing the information entered by the user in the instruction name input area and the instruction content input area, and the newly generated custom instruction is added to the instruction list, and displayed in the form of an instruction name, and the user can select the instruction name of the target instruction in the instruction list to trigger the target instruction. In this way, users can not only use the basic shortcut commands built into the AIGC platform, but also customize them according to their own needs, effectively solving the problem that the built-in shortcut commands of the AIGC platform cannot fully meet the personalized needs of users, thereby greatly expanding the functionality of the AIGC platform and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of a flow chart of a method for processing instruction information provided by an embodiment of the present application is shown;
[0019] Figure 2 A schematic diagram of an instruction creation interface provided in an embodiment of the present application is shown;
[0020] Figure 3 A schematic diagram of an interface for a custom creation instruction provided in an embodiment of the present application is shown;
[0021] Figure 4 An interactive schematic diagram of generating a text-type instruction provided in an embodiment of the present application is shown;
[0022] Figure 5 An interactive schematic diagram of adjusting text type instructions provided in an embodiment of the present application is shown;
[0023] Figure 6 A schematic diagram of an interface for presetting an instruction distribution operation provided by an embodiment of the present application is shown;
[0024] Figure 7 A flowchart of an instruction combination method provided by an embodiment of the present application is shown;
[0025] Figure 8 A schematic diagram of an interface of a command combination provided in an embodiment of the present application is shown;
[0026] Fig. 9 A schematic diagram of an interface for command movement provided in an embodiment of the present application is shown;
[0027] Fig.10 A schematic diagram showing a flow chart of another instruction combination method provided in an embodiment of the present application is shown;
[0028] Fig.11 A schematic diagram of an interface for command fusion provided in an embodiment of the present application is shown;
[0029] Fig.12 A schematic diagram of an interface for selecting a command provided in an embodiment of the present application is shown;
[0030] Fig.13 A schematic diagram of an interface of a command application provided in an embodiment of the present application is shown;
[0031] Fig.14 A schematic diagram of the structure of an instruction information processing device provided in an embodiment of the present application is shown;
[0032] Fig.15 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0033] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0034] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0035] In order to enable those skilled in the art to use the content of this application, the following implementation is given in conjunction with a specific application scenario, "custom creation of instructions in AI GC instructions, and interaction of multi-level instruction combinations to generate new instruction sets." For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around the instruction information processing method, it should be understood that this is only an exemplary embodiment.
[0036] It should be noted that the term "including" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0037] The instruction information processing method provided in the present application not only supports users to customize the creation of instructions and combine multiple shortcut instructions to generate instruction sets, but also can apply instructions or instruction sets to multiple objects at the same time, breaking through the limitations of the existing AIGC platform that users can only input or select built-in basic shortcut instructions, and realizes the effect of users customizing the addition, creation and combination of instructions, and applying instructions to multiple objects at the same time.
[0038] Figure 1 A flow chart of a method for processing instruction information provided in an embodiment of the present application is shown.
[0039] Reference Figure 1 As shown, the method specifically comprises the following steps:
[0040] S101. Respond to an instruction to create an instruction and display an instruction creation interface.
[0041] Optionally, the instruction creation interface displays an instruction name input area, an instruction content input area, and a create instruction control. In the instruction name input area, an instruction name can be entered for the instruction to be created, so that the created instruction can be identified and managed based on the instruction name. The instruction content input area is a text input area that is used to describe in detail the specific content of the instruction to be created, such as defining the function, parameters, execution conditions and other parameters of the instruction. The create instruction control is, for example, a button. When the user completes filling in the instruction name and content, clicking the create instruction control can trigger the instruction creation.
[0042] S102: In response to the creation instruction control being triggered, the instruction name input in the name input area and the instruction content input in the instruction content input area are obtained.
[0043] Optionally, refer to Figure 2 As shown in the figure, the instruction creation interface is an interface for creating custom instructions in cube GPT. The instruction creation interface displays an instruction name input area, an instruction content input area, and a create instruction control. The instruction name can be entered in the instruction name input area, such as "Number from 10to 1000", and the instruction content can be entered in the instruction content input area, such as "Make a number from 10to 1000". After the user enters the instruction name in the instruction name input area and the instruction content in the instruction content input area, the user clicks the create instruction control to trigger the create instruction control, and the instruction name "Number from10to 1000" entered by the user in the instruction name input area and the instruction content "Make a number from 10to1000" entered in the instruction content input area can be obtained.
[0044] S103: Generate a target instruction according to the instruction name and instruction content, and display the instruction name of the target instruction in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
[0045] Optionally, continue to refer to Figure 2 As shown, the instruction creation interface provides users with the function of customizing instruction prompts "Add your own prompt". Based on this function, users can first select the mode Model for instruction creation. The mode Model includes the text generation class mode Create and the text adjustment class mode Rewrite. After the user selects the mode Model, for example, the text generation class mode Create, the user can enter the instruction name in the instruction name input area and the instruction content in the instruction content input area, and then click the Create Instruction control to trigger the generation of the target instruction belonging to the generated text class.
[0046] Optionally, the command name entered in the name input area and the command content entered in the command content input area are obtained, and the command name and command content are parsed to obtain information such as the name, command logic, parameters, and execution conditions specified by the user for the command, and the parsed information is converted into an internal representation that can be understood and executed by the electronic device, thereby generating a target command. Further, the user interface is updated so that the command name of the newly generated target command is displayed in the current command list, and the user can select the target command from the current command list and trigger the execution of the target command.
[0047] For example, refer to Figure 3 As shown, the user clicks the Create Instruction control to trigger the creation of a custom instruction, and the user interface jumps to Figure 3 In the interface shown in the right figure, in the prompt mode, the user can select the prompt text length based on the Select component, select "My Prompts" under the Prompts component, and select "Create A Profile" to complete the creation. It should be noted that the Prompt in AIGC is the instruction.
[0048] Based on this, according to the instruction information processing method provided in the embodiment of the present application, by designing a more flexible custom instruction creation function in the AIGC platform, users are allowed to create personalized instructions according to their specific needs. Specifically, based on the instruction name input area, instruction content input area, and create instruction control displayed in the provided instruction creation interface, when the user triggers the create instruction control, a new custom instruction is generated by capturing the information entered by the user in the instruction name input area and the instruction content input area, and the newly generated custom instruction is added to the instruction list and displayed in the form of an instruction name. The user can select the instruction name of the target instruction in the instruction list to trigger the target instruction. In this way, users can not only use the built-in basic shortcut instructions in the AIGC platform, but also customize the creation instructions according to their own needs, which effectively solves the problem that the built-in shortcut instructions of the AI GC platform cannot fully meet the personalized needs of users, thereby greatly expanding the functionality of the AIGC platform and improving the user experience.
[0049] As a possible implementation manner, the instruction content of the target instruction includes: executable text, and the method further includes:
[0050] In response to the target instruction being triggered, the instruction content of the target instruction is sent to the artificial intelligence module; the execution result obtained by the artificial intelligence module executing the instruction content is obtained, and the execution result is output.
[0051] Optionally, the user-defined instruction mode Model includes generating a text-type mode Create and adjusting a text-type mode Rewrite. Here, generating a text-type mode Create is taken as an example. In Create mode, when the user selects and triggers the target instruction in the current instruction list, the executable text content of the target instruction is sent to the artificial intelligence module AI. After receiving the instruction content, the artificial intelligence module AI will perform corresponding operations according to the logic, parameters and other information in the instruction content, and return the execution result.
[0052] For example, in Create mode, new text content can be generated according to the instruction. Figure 4 As shown, if the executable text content of the target instruction selected by the user is "Write something to generate a new content, eg: Suggest one Chinese name with Chinese in formal xxx", after sending the executable text content to the artificial intelligence module AI, the artificial intelligence module AI receives and parses the executable text content, determines that the logic and parameters in the instruction content are "write something to generate new content, for example: recommend a Chinese name with appropriate Chinese", then the artificial intelligence module AI will generate a Chinese name and return it to the user.
[0053] For example, if the user selects the target instruction whose executable text content is "Give one rand om city", after sending the executable text content to the artificial intelligence module AI, the artificial intelligence module AI receives and parses the executable text content, and determines that the logic and parameters in the instruction content are: "Randomly select a city", then the artificial intelligence module AI will generate a corresponding text content, such as "Beijing", and return the generated text content "Beijing" to the user.
[0054] Furthermore, the instruction content of the target instruction includes: an executable text and a replaceable identifier, the replaceable identifier is a character set in a preset format, and the method further includes:
[0055] In response to a target instruction being triggered, a target text selected by a user for the target instruction is obtained; a replaceable identifier in the instruction content is replaced with the target text to obtain the replaced instruction content; the replaced instruction content is sent to an artificial intelligence module, an execution result obtained by the artificial intelligence module executing the replaced instruction content is obtained, and the execution result is output.
[0056] Optionally, the user-defined instruction mode Model includes generating a text class mode Create and adjusting a text class mode Rewrite. Here, the text class mode Rewrite is adjusted as an example. In the Rewrite mode, when the user selects and triggers the target instruction in the current instruction list, the user is prompted to enter or select the specific text content to replace the replaceable identifier. The user can select or enter the target text, and replace the replaceable identifier in the instruction content with the target text selected by the user, generate the replaced instruction content, and then send the replaced instruction content to the artificial intelligence module AI. After receiving the replaced instruction content, the artificial intelligence module AI will perform corresponding operations according to the logic, parameters and other information in the replaced instruction content, and return the execution result.
[0057] For example, in Rewrite mode, fusion generation can be performed based on the selected target text according to the instructions. Figure 5 As shown, if the target instruction selected by the user is "Write something to generate a new content, eg: Make ##more funnier. ##refers to the target text", where "##" represents a replaceable identifier, the user enters or selects the specific text content to replace the replaceable identifier, and uses the specific text content to replace the replaceable representation, so as to generate the replaced instruction content, and after sending the replaced instruction content to the artificial intelligence module AI, the artificial intelligence module AI receives and parses the replaced instruction content, and determines that the logic and parameters in the replaced instruction content are "write something to generate new content, for example: make ##more funnier, ##refers to the target text", then the artificial intelligence module AI will generate a corresponding text content and return it to the user.
[0058] Exemplarily, if the user selects the target instruction as "Translate##into English", "##" represents a replaceable identifier, the user inputs or selects the specific text content to replace the replaceable identifier as "I'm very happy", and uses the text content "I'm very happy" to replace the replaceable identifier "##" to generate the replaced instruction content "Translate I'm very happy intoEnglish", and after sending the replaced instruction content "Translate I'm very happy into English" to the artificial intelligence module AI, the artificial intelligence module AI receives and parses the replaced instruction content, and determines that the logic and parameters in the instruction content are: "Translate "I'm very happy" into English", then the artificial intelligence module AI will generate a corresponding text content, such as "I'm so happy", and return the generated text content "I'm so happy" to the user.
[0059] Based on this, users can not only create and manage personalized instructions, but also efficiently interact with the artificial intelligence module AI to obtain the desired results, which not only improves the user experience, but also greatly enhances the flexibility and practicality of the AIGC platform.
[0060] As a possible implementation, the instruction content input area displays a default input box and an add step control, and the default input box is used as the input box corresponding to the first step. Optionally, before the above step S102 responds to the creation of an instruction control being triggered and obtains the instruction name entered in the name input area and the instruction content entered in the instruction content input area, the method further includes:
[0061] In response to the adding step control being triggered, the step identifier of the current step is determined, the step identifier is displayed, and an input box corresponding to the current step is displayed in the instruction content input area.
[0062] For example, refer to Figure 6 As shown, add step controls such as Figure 6 Click the "Add step" control in the Add step window to add more steps. Figure 6 As shown in the figure on the right, each step has a unique step identifier to distinguish different steps. For example, the step identifier of the first step is "Step1" and the step identifier of the second step is "Step2". In response to the adding step control being triggered, the identifiers of the current steps Step1 and Step2 are displayed in the interface. The text boxes below Step1 and Step2 are the input boxes corresponding to each step. Users can enter the specific content of the current step in the input boxes.
[0063] Furthermore, the above step S103 generates a target instruction according to the instruction name and instruction content, including:
[0064] According to the order of each step in the instruction content input area, read the input content in the input box corresponding to each step in turn, and use the input content as the step instruction content corresponding to each step; according to the order of each step, concatenate each step and the corresponding step instruction content into a target instruction.
[0065] For example, continue to refer to Figure 6As shown, according to the order of each step in the instruction content input area, the input content in the input box corresponding to each step is read in turn, and the input content of the first step Step1 is obtained as "Please changeyyy to xxx, and translate into english, in the result with ccc", and the input content of the first step Step2 is "Please improve ccc within 200 bytes". The input content of step Step1 is used as the step instruction content corresponding to step Step1, and the input content of step Step2 is used as the step instruction content corresponding to step Step2. In the order of steps Step1-Step2, the step instruction contents corresponding to steps Step1 and Step2 are serially combined to obtain the target instruction. The instruction content of the target instruction is "Step 1: Change yyy to xxx, and translate the result into English with ccc; Step 2: Please improve ccc within 200 bytes".
[0066] Exemplarily, for example, there is a multi-level operation instruction, including "grammar monitoring of the text, followed by expansion, and translation into three language versions: Chinese, English and Japanese", then "grammar monitoring of the text" is used as the step instruction content corresponding to step 1, "expansion" is used as the step instruction content corresponding to step 2, and "translation into three language versions: Chinese, English and Japanese" is used as the step instruction content corresponding to step 3. In the order of step 1, step 2 and step 3, the step instruction contents corresponding to steps 1, step 2 and step 3, "grammar monitoring of the text", "expansion", and "translation into three language versions: Chinese, English and Japanese" are concatenated and combined into a target instruction. The instruction content of the target instruction is "grammar monitoring and expansion of the text, and translation into three language versions: Chinese, English and Japanese".
[0067] Based on this, users can create complex instructions with multiple steps and dynamically replace the identification content when executing, thus realizing a wider range of application scenarios. In addition, multiple shortcuts can be combined into a new shortcut. When faced with a multi-level operation, users do not need to click on the instructions one by one to complete the multi-level operation, but can complete the steps that require multiple instructions with one click.
[0068] As a possible implementation manner, the method further includes:
[0069] Generate the instruction content to be sent corresponding to the current step according to the step instruction content corresponding to the current step, wherein the current step is any step except the last step in the target instruction; send the instruction content to be sent to the artificial intelligence module; in response to obtaining the execution result of the instruction content to be sent returned by the artificial intelligence module, take the next step of the current step as the new current step, and execute it in a loop until there is no next step of the current step.
[0070] Optionally, loop execution refers to loop execution to generate instruction content to be sent, send the instruction content to be sent to the artificial intelligence module, and obtain the execution result of the instruction content to be sent returned by the artificial intelligence module, and use the next step of the current step as the new current step, until the next step of the current step does not exist. In an embodiment of the present application, the user can make further distribution preset settings for the custom instructions, that is, support the input of multiple distribution instructions. Distributed instructions refer to creating a fixed multiple dialogues, such as sending an instruction A to GPT, and no matter what it replies, continue to send an instruction B, and so on. The user can create a fixed reply mode and then generate a fixed multiple correction template. The user does not need to type every time for GPT to adjust. It is very suitable for content generation / adjustment scenarios with less randomness of content.
[0071] Exemplarily, since the user-defined creation instruction mode Model includes two types: text generation class mode Create and text adjustment class mode Rewrite, the step instruction content corresponding to each step may be directly generated or obtained through adjustment and optimization. Then, based on the step instruction content corresponding to the current step, a to-be-sent instruction content corresponding to the current step is generated. The to-be-sent instruction content may be a direct reference to the step instruction content, or it may be a result of some processing or conversion based on the step instruction content.
[0072] Furthermore, the generated content of the instruction to be sent is sent to the artificial intelligence module AI, and the artificial intelligence module AI performs a response operation based on the content of the instruction to be sent, and returns an execution result, which includes but is not limited to indicating that the instruction is successfully executed, failed to execute, or requires additional information. On this basis, the next step of the current step is used as the new current step, which means that the reference of the "current step" needs to be updated so that the next step can be processed in the next iteration, and the above steps are executed in a loop, starting from the generation of the content of the instruction to be sent until the next step of the current step no longer exists. For example, for a target instruction including multiple steps, when the last step of the target instruction is reached, the iteration process ends.
[0073] Based on this, users can create complex instructions containing multiple steps and execute each step one by one in sequence to ensure that the execution results of each step can be processed correctly. This not only improves user efficiency, but also greatly enhances the flexibility and practicality of the AIGC platform.
[0074] Figure 7 A flowchart of an instruction combination method provided in an embodiment of the present application is shown. Figure 7 As shown, the method specifically comprises the following steps:
[0075] S701, responding to an instruction combination indication, obtaining multiple instructions to be combined currently selected by the user.
[0076] For example, the multiple instructions used to combine and generate a new instruction set in the embodiments of the present application are not necessarily all user-defined, and may also include shortcut instructions originally built into the AIGC platform. However, for the user, there is no need to re-enter a whole set of instructions, and only needs to select and combine new instructions from the existing library. For example, when a content group containing information such as name, avatar, email address, and address needs to be output, the user can select multiple instructions that meet the definition in the library to combine to achieve fast information output.
[0077] For example, refer to Figure 8 As shown, in response to the instruction combination indication, the user can select a plurality of instructions to be combined, such as Name, Email, Phone Number, Zip Code, Address, City, etc.
[0078] S702: Determine the order of the instructions to be combined.
[0079] Optionally, in response to an instruction position movement indication for a current instruction among multiple instructions to be combined, the current instruction is moved; and according to the positions of the instructions to be combined after the movement, the order of the instructions to be combined is determined.
[0080] For example, users can hide, delete, modify, and other operations on the custom commands they have generated to meet various usage scenarios. At the same time, users can drag and drop to change the order of commands. Fig. 9As shown, continuing to take instruction 1: Name, instruction 2: Email, instruction 3: Phone Number, instruction 4: Zip Code, instruction 5: Address, instruction 6: City as an example of multiple instructions to be combined, the original order of the multiple instructions to be combined is instruction 1-instruction 2-instruction 3-instruction 4-instruction 5-instruction 6. If instruction 4: Zip Code is taken as the current instruction in the multiple instructions to be combined, in response to the instruction position movement indication for instruction 4, instruction 4 is moved to the bottom of instruction 1, and the positions of the instructions to be combined after the move are obtained, and then the order between the instructions to be combined is determined to be instruction 1-instruction 4-instruction 2-instruction 3-instruction 5-instruction 6.
[0081] S703 , combining multiple instructions to be combined according to the order of the instructions to be combined and the instruction contents of the instructions to be combined to obtain a combined instruction.
[0082] For example, continue to refer to Fig. 9 As shown, the original order of the multiple instructions to be combined is instruction 1-instruction 2-instruction 3-instruction 4-instruction 5-instruction 6. Under this instruction order, the multiple instructions to be combined are combined, and the combined instruction obtained is "Suggest one us info, inside one name, email, phone number, zip code, full address, city". After adjusting the instruction order, the new order of the multiple instructions to be combined is instruction 1-instruction 4-instruction 2-instruction 3-instruction 5-instruction 6. Under this instruction order, the multiple instructions to be combined are combined, and the combined instruction obtained is "Suggest one us info, inside one name, zip code, email, phone number, full address, city".
[0083] It should be noted that the order of instructions has changed. For the newly generated instructions, the scope of the instructions has changed, for example, from name to name+email, but the implementation command of the instruction has not changed, for example, it is still "give mea xxx". In addition, multiple instructions can be combined at will, but the order of combination will affect the result of the instruction. For example, the order of generation and polishing will also affect whether the instruction is executed first or generation first.
[0084] Fig.10 FIG. 2 is a flow chart showing another instruction combination method provided in an embodiment of the present application. Fig.10As shown, the above step S703 combines multiple instructions to be combined according to the order between the instructions to be combined and the instruction content of each instruction to be combined to obtain a combined instruction, which specifically includes the following steps:
[0085] S1001. Extract the framework content of the combined instruction according to the instruction content of each instruction to be combined.
[0086] Optionally, each instruction to be combined is parsed, the instruction content of each instruction to be combined is read, and the common structure of each instruction to be combined, such as the order and format of the steps, is identified from the instruction content of each instruction to be combined, and the common structure and the step content of each instruction to be combined are combined to form an overall framework content.
[0087] For example, refer to Fig.11 As shown, continue to take instruction 1: Name, instruction 2: Email, instruction 3: Phone Number, instruction 4: Zip Code, instruction 5: Address, instruction 6: City as an example, the instruction content of instruction 1 is "Suggest one uniq first name and last name in the US", the instruction content of instruction 2 is "Suggest one random email address in the US", the instruction content of instruction 3 is "Make one random phone number in the US", the instruction content of instruction 4 is "Give one random zip code in the US", the instruction content of instruction 5 is "Give me one random full address in the US", and the instruction content of instruction 6 is "Give one random city in the US". For the instruction content of the above instructions to be combined, the framework content of the combined instruction is extracted, for example, "Suggest one...". Among them, "Suggest one..." is just a format definition, which can also be defined as "give a xxx". When multiple separate instructions are merged, the user only needs to control the order of the instructions, and the fusion will be integrated according to the user's instruction set during execution. In other words, when fusing instructions, it is sufficient to ensure that the key instructions are arranged in order. The specific text of the instruction framework is not important, as long as the instructions are executed as required.
[0088] In addition, refer to Fig.11As shown, the interaction logic and presentation form of each instruction are mainly used to improve efficiency and reuse the instruction framework, helping users who have not mastered the autonomous input of instructions to quickly use existing instructions to piece together a complex multi-command instruction.
[0089] It should be noted that for instruction 1: Name, its corresponding instruction content is "Suggest one uniq firstname and last name in the US". Name is equivalent to the instruction identifier. When the user selects this instruction, it means that the action of "Suggest one uniq first name and last name in the US" can be executed.
[0090] S1002 , according to the order of the instructions to be combined, sequentially splice the non-frame content in the instruction content of each instruction to be combined to obtain the non-frame content of the combined instruction.
[0091] Optionally, non-frame content refers to specific instruction content or logic, and the non-frame content of different instructions is different. By parsing the instruction content of each instruction to be combined, the instruction content is divided into a frame part and a non-frame part, and the non-frame content of each instruction to be combined is spliced according to the order dependency between the instructions to be combined to form an integral non-frame content, that is, the non-frame content of the combined instruction is obtained.
[0092] For example, continue to refer to Fig.11 As shown, taking instruction 1: Name, instruction 2: Email, instruction 3: Phone Number, instruction 4: Zip Code, instruction 5: Address, instruction 6: City as an example, the frame content of the combined instruction is extracted, for example, "Suggest one...", and in the order of instruction 1-instruction 2-instruction 3-instruction 4-instruction 5-instruction 6, the non-frame content of each instruction "name, email, phone number, zip Code, address, city" is spliced in turn to obtain the non-frame content of the combined instruction "name, email, phone number, zip Code, address, city".
[0093] S1003: splice the frame content of the combined instruction and the non-frame content of the combined instruction into the instruction content of the combined instruction.
[0094] Optionally, the frame content and non-frame content of the combined instruction are parsed separately, the step identifiers and structure in the frame content are read, and the specific instruction content in the non-frame content is read, and the non-frame content is inserted into the corresponding position of the frame content in the order of each step to form the instruction content of the combined instruction.
[0095] For example, taking the frame content of the combined instruction as “Suggest one…” and the non-frame content of the combined instruction as “name, email, phone number, zip Code, address, city” as an example, the frame content of the combined instruction and the non-frame content of the combined instruction are concatenated and combined, and the instruction content of the combined instruction is “Suggest one us info, inside name, email, phone number, zip Code, full address, city”.
[0096] For example, in the process of fusing instructions to generate combined instructions, you only need to fuse and expand the objects in the instructions. For example, the Prompt of the original instruction Name is "Suggest one uniq first name and lastname in us". After fusing the instruction email and the instruction zip Code, the basic instruction framework "Suggest onexxxx in us" can be shared to become "Suggest one us name, email, zip Code".
[0097] S1004. Obtain the instruction name of the combined instruction according to the name information input by the user.
[0098] Exemplarily, when the user inputs the name information, the name information input by the user is read and parsed, and the name information is used as the instruction name of the combined instruction. On this basis, the instruction name of the combined instruction is further combined with the instruction content of the combined instruction to obtain a complete combined instruction.
[0099] Based on this, common structures are extracted from multiple separate instructions and combined into an overall framework content, and non-framework contents are extracted from multiple separate instructions and spliced into an overall non-framework content in sequence, and then the framework content and non-framework content are spliced and combined so that the two are correctly combined to generate the final instruction content, thereby not only ensuring the structural and logical integrity of the instructions, but also realizing the combination and reuse of instructions.
[0100] As a possible implementation manner, the method further includes:
[0101] In response to the object layer selection instruction, the target layers of the multiple target objects selected by the user are obtained; the instructions to be executed selected by the user are obtained; in response to the batch execution instruction, the instructions to be executed are batch executed for the target layers of the target objects.
[0102] Optionally, the target layers of each target object are of the same type. In the embodiment of the present application, each object has a corresponding layer name, for example, an avatar is an image layer, all of which are called avatar, and a name is a text layer, all of which are called name, and so on. All elements can be identified as a group of objects. As long as instructions are added to the objects of each name, the instructions or instruction sets can be applied to multiple objects at the same time.
[0103] For example, refer to Fig.12 As shown, Fig.12 The first picture from left to right represents the initial target object. After the user selects the target object, the target object design tool (which can also be an editing tool on the web page) reads the text and image information contained in the selected target object. The text and image information refers to the text layer and image layer in a content set of the selected target object, and is displayed in the form of a list as shown in the second picture. By clicking the preset button, you can jump from the second picture to the interface shown in the third picture. The third picture is a selection object for the add operation. The share is a type of content source, not a sharing mode. Furthermore, since the target object design tool itself can identify various content attributes in the target content set, the user only needs to classify the content with the same attribute, that is, send an instruction to all objects under all content classification items at the same time. Content classification items include name, info, email, avatar, etc.
[0104] For example, refer to Fig.13 As shown, Fig.13 In the above example, object 1, object 2, object 3, object 4, object 5, and object 6 correspond to Fig.12 There is a one-to-one correspondence between each Name shown in Fig.12 and Fig.13 As shown, in response to the object layer selection indication, the user selects the layer to be operated on the interface and selects the instructions to be executed, and then responds to the batch execution indication. For example, the user clicks the batch execution button Generate, and sends multiple instructions to the target layer of each target object with one click. This includes sending one instruction to multiple objects at the same time, and sending multiple instructions to multiple objects at the same time, thereby realizing the application of instructions or instruction sets to multiple objects at the same time, so as to batch execute the instructions to be executed.
[0105] Based on this, the instruction information processing method provided in the embodiment of the present application significantly improves the efficiency of using Prompt in the AIGC platform, and can support users to quickly complete the dialogue interaction with the artificial intelligence module AI. At the same time, it can meet the user's Prompt usage needs in complex scenarios and help users create unlimited possibilities in AIGC applications. In addition, it also supports users to share customized instructions to the community. Sharing means creating a server (User Generated Content, UGC). After a user creates a shortcut instruction, it can be shared and uploaded to the UGC server. Other users can find and add these shared instructions to their own Prompt collection list in the community, so as to give full play to the value of sharing and greatly improve the efficiency of knowledge conversion.
[0106] Based on the same inventive concept, an instruction information processing device corresponding to the instruction information processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the instruction information processing device in the embodiment of the present application is similar to the above-mentioned instruction information processing method in the embodiment of the present application, the implementation of the instruction information processing device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0107] Reference Fig.14 , which is a schematic diagram of the structure of an instruction information processing device provided in an embodiment of the present application, the instruction information processing device 1400 includes: a display module 1401, an acquisition module 1402, and a generation module 1403, wherein:
[0108] Display module 1401, for responding to the instruction to create an instruction, and displaying an instruction creation interface, on which an instruction name input area, an instruction content input area, and a create instruction control are displayed;
[0109] An acquisition module 1402 is used for acquiring the instruction name input in the name input area and the instruction content input in the instruction content input area in response to the creation instruction control being triggered;
[0110] The generating module 1403 is used to generate a target instruction according to the instruction name and instruction content, and display the instruction name of the target instruction in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
[0111] Based on this, according to the instruction information processing device of the embodiment of the present application, a more flexible custom instruction creation function is designed in the AIGC platform to allow users to create personalized instructions according to their specific needs. Specifically, based on the instruction name input area, instruction content input area, and create instruction control displayed in the provided instruction creation interface, when the user triggers the create instruction control, a new custom instruction is generated by capturing the information entered by the user in the instruction name input area and the instruction content input area, and the newly generated custom instruction is added to the instruction list and displayed in the form of an instruction name. The user can select the instruction name of the target instruction in the instruction list to trigger the target instruction. In this way, users can not only use the built-in basic shortcut instructions in the AIGC platform, but also customize the creation instructions according to their own needs, which effectively solves the problem that the built-in shortcut instructions of the AIGC platform cannot fully meet the personalized needs of users, thereby greatly expanding the functionality of the AIGC platform and improving the user experience.
[0112] In a possible implementation manner, the instruction content of the target instruction includes: an executable text; the acquisition module 1402 is further used to:
[0113] In response to the target command being triggered, the command content of the target command is sent to the artificial intelligence module;
[0114] Obtain the execution result obtained by the artificial intelligence module executing the instruction content and output the execution result.
[0115] In a possible implementation manner, the instruction content of the target instruction includes: an executable text and a replaceable identifier, where the replaceable identifier is a character set in a preset format; the acquisition module 1402 is further used to:
[0116] In response to the target instruction being triggered, obtaining the target text selected by the user for the target instruction;
[0117] Replace the replaceable identifier in the instruction content with the target text to obtain the replaced instruction content;
[0118] The replaced instruction content is sent to the artificial intelligence module, the execution result obtained by the artificial intelligence module executing the replaced instruction content is obtained, and the execution result is output.
[0119] In a possible implementation, the instruction content input area displays a default input box and an add step control, and the default input box is used as the input box corresponding to the first step; the above-mentioned display module 1401 is also used to:
[0120] In response to the adding step control being triggered, the step identifier of the current step is determined, the step identifier is displayed, and an input box corresponding to the current step is displayed in the instruction content input area.
[0121] In a possible implementation manner, the generating module 1403 is specifically configured to:
[0122] According to the order of each step in the instruction content input area, the input content in the input box corresponding to each step is read in sequence, and the input content is used as the step instruction content corresponding to each step;
[0123] According to the order of each step, each step and each corresponding step instruction content are serially connected and combined into a target instruction.
[0124] In a possible implementation manner, the generating module 1403 is further configured to:
[0125] Generate the content of the instruction to be sent corresponding to the current step according to the content of the step instruction corresponding to the current step, wherein the current step is any step except the last step in the target instruction;
[0126] Send the contents of the instruction to be sent to the artificial intelligence module;
[0127] In response to obtaining the execution result of the instruction content to be sent returned by the artificial intelligence module, the next step of the current step is used as the new current step and executed in a loop until there is no next step of the current step.
[0128] In a possible implementation manner, the generating module 1403 is further configured to:
[0129] In response to the instruction combination indication, a plurality of instructions to be combined currently selected by the user are obtained;
[0130] Determine the order between the instructions to be combined;
[0131] According to the order of the instructions to be combined and the instruction content of the instructions to be combined, multiple instructions to be combined are combined to obtain a combined instruction.
[0132] In a possible implementation manner, the generating module 1403 is further configured to:
[0133] In response to an instruction position movement instruction for a current instruction among the plurality of instructions to be combined, the current instruction is moved;
[0134] The order of the instructions to be combined is determined according to the positions of the instructions to be combined after the movement.
[0135] In a possible implementation manner, the generating module 1403 is further configured to:
[0136] Extract the framework content of the combined instruction according to the instruction content of each instruction to be combined;
[0137] According to the order between the instructions to be combined, the non-frame contents in the instruction contents of the instructions to be combined are sequentially spliced to obtain the non-frame contents of the combined instruction;
[0138] The frame content of the combined instruction and the non-frame content of the combined instruction are spliced and combined into the instruction content of the combined instruction;
[0139] According to the name information input by the user, the command name of the combined command is obtained.
[0140] In a possible implementation manner, the generating module 1403 is further configured to:
[0141] In response to the object layer selection instruction, the target layers of the multiple target objects selected by the user are obtained, wherein the target layers of the target objects are of the same type;
[0142] Get the instructions to be executed selected by the user;
[0143] In response to the batch execution instruction, batch execute the pending instructions for the target layer of each target object.
[0144] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0145] The present application embodiment also provides an electronic device 1500, such as Fig.15 As shown, it is a schematic diagram of the structure of an electronic device 1500 provided in an embodiment of the present application, including: a processor 1501, a memory 1502, and optionally, a bus 1503. The memory 1502 stores machine-readable instructions executable by the processor 1501. When the electronic device 1500 is running, the processor 1501 communicates with the memory 1502 through the bus 1503. When the machine-readable instructions are executed by the processor 1501, the following processing is performed:
[0146] In response to the instruction to create an instruction, an instruction creation interface is displayed, on which an instruction name input area, an instruction content input area, and a create instruction control are displayed;
[0147] In response to the creation of a command control being triggered, the command name entered in the name input area and the command content entered in the command content input area are obtained;
[0148] A target instruction is generated according to the instruction name and instruction content, and the instruction name of the target instruction is displayed in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
[0149] In a possible implementation manner, the instruction content of the target instruction includes: an executable text; the processor 1501 is further configured to:
[0150] In response to the target command being triggered, the command content of the target command is sent to the artificial intelligence module;
[0151] Obtain the execution result obtained by the artificial intelligence module executing the instruction content and output the execution result.
[0152] In a possible implementation manner, the instruction content of the target instruction includes: an executable text and a replaceable identifier, where the replaceable identifier is a character set in a preset format; the processor 1501 is further configured to:
[0153] In response to the target instruction being triggered, obtaining the target text selected by the user for the target instruction;
[0154] Replace the replaceable identifier in the instruction content with the target text to obtain the replaced instruction content;
[0155] The replaced instruction content is sent to the artificial intelligence module, the execution result obtained by the artificial intelligence module executing the replaced instruction content is obtained, and the execution result is output.
[0156] In a possible implementation, the instruction content input area displays a default input box and an add step control, and the default input box is used as the input box corresponding to the first step; before the processor 1501 executes the instruction in response to the creation of the instruction control being triggered and obtaining the instruction name entered in the name input area and the instruction content entered in the instruction content input area, it is also used to:
[0157] In response to the adding step control being triggered, the step identifier of the current step is determined, the step identifier is displayed, and an input box corresponding to the current step is displayed in the instruction content input area.
[0158] In a possible implementation manner, when the processor 1501 executes an instruction for generating a target instruction according to an instruction name and instruction content, it is specifically configured to:
[0159] According to the order of each step in the instruction content input area, the input content in the input box corresponding to each step is read in sequence, and the input content is used as the step instruction content corresponding to each step;
[0160] According to the order of each step, each step and each corresponding step instruction content are serially connected and combined into a target instruction.
[0161] In a possible implementation manner, the processor 1501 is further configured to:
[0162] Generate the content of the instruction to be sent corresponding to the current step according to the content of the step instruction corresponding to the current step, wherein the current step is any step except the last step in the target instruction;
[0163] Send the contents of the instruction to be sent to the artificial intelligence module;
[0164] In response to obtaining the execution result of the instruction content to be sent returned by the artificial intelligence module, the next step of the current step is used as the new current step and executed in a loop until there is no next step of the current step.
[0165] In a possible implementation manner, the processor 1501 is further configured to:
[0166] In response to the instruction combination indication, a plurality of instructions to be combined currently selected by the user are obtained;
[0167] Determine the order between the instructions to be combined;
[0168] According to the order of the instructions to be combined and the instruction content of the instructions to be combined, multiple instructions to be combined are combined to obtain a combined instruction.
[0169] In a possible implementation manner, when executing the instruction for determining the order between the instructions to be combined, the processor 1501 is specifically configured to:
[0170] In response to an instruction position movement instruction for a current instruction among the plurality of instructions to be combined, the current instruction is moved;
[0171] The order of the instructions to be combined is determined according to the positions of the instructions to be combined after the movement.
[0172] In a possible implementation manner, when the processor 1501 executes an instruction to combine multiple instructions to be combined according to the order between the instructions to be combined and the instruction content of each instruction to be combined to obtain a combined instruction, it is specifically used to:
[0173] Extract the framework content of the combined instruction according to the instruction content of each instruction to be combined;
[0174] According to the order between the instructions to be combined, the non-frame contents in the instruction contents of the instructions to be combined are sequentially spliced to obtain the non-frame contents of the combined instruction;
[0175] The frame content of the combined instruction and the non-frame content of the combined instruction are spliced and combined into the instruction content of the combined instruction;
[0176] According to the name information input by the user, the command name of the combined command is obtained.
[0177] In a possible implementation manner, the processor 1501 is further configured to:
[0178] In response to the object layer selection indication, target layers of multiple target objects selected by the user are obtained, wherein the target layers of the target objects are of the same type;
[0179] Get the instructions to be executed selected by the user;
[0180] In response to the batch execution instruction, batch execute the pending instructions for the target layer of each target object.
[0181] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are performed:
[0182] In response to the instruction to create an instruction, an instruction creation interface is displayed, on which an instruction name input area, an instruction content input area, and a create instruction control are displayed;
[0183] In response to the creation of a command control being triggered, the command name entered in the name input area and the command content entered in the command content input area are obtained;
[0184] A target instruction is generated according to the instruction name and instruction content, and the instruction name of the target instruction is displayed in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
[0185] In a possible implementation manner, the instruction content of the target instruction includes: an executable text; and the processor is further configured to:
[0186] In response to the target command being triggered, the command content of the target command is sent to the artificial intelligence module;
[0187] Obtain the execution result obtained by the artificial intelligence module executing the instruction content and output the execution result.
[0188] In a possible implementation manner, the instruction content of the target instruction includes: an executable text and a replaceable identifier, where the replaceable identifier is a character set in a preset format; and the processor is further configured to:
[0189] In response to the target instruction being triggered, obtaining the target text selected by the user for the target instruction;
[0190] Replace the replaceable identifier in the instruction content with the target text to obtain the replaced instruction content;
[0191] The replaced instruction content is sent to the artificial intelligence module, the execution result obtained by the artificial intelligence module executing the replaced instruction content is obtained, and the execution result is output.
[0192] In a possible implementation, the instruction content input area displays a default input box and an add step control, and the default input box is used as the input box corresponding to the first step; before the processor executes the instruction in response to the creation of the instruction control being triggered and obtaining the instruction name entered in the name input area and the instruction content entered in the instruction content input area, it is also used to:
[0193] In response to the adding step control being triggered, the step identifier of the current step is determined, the step identifier is displayed, and an input box corresponding to the current step is displayed in the instruction content input area.
[0194] In a possible implementation manner, when the processor executes an instruction for generating a target instruction according to an instruction name and instruction content, the processor is specifically configured to:
[0195] According to the order of each step in the instruction content input area, the input content in the input box corresponding to each step is read in sequence, and the input content is used as the step instruction content corresponding to each step;
[0196] According to the order of each step, each step and each corresponding step instruction content are serially connected and combined into a target instruction.
[0197] In a possible implementation manner, the processor is further configured to:
[0198] Generate the content of the instruction to be sent corresponding to the current step according to the content of the step instruction corresponding to the current step, wherein the current step is any step except the last step in the target instruction;
[0199] Send the contents of the instruction to be sent to the artificial intelligence module;
[0200] In response to obtaining the execution result of the instruction content to be sent returned by the artificial intelligence module, the next step of the current step is used as the new current step and executed in a loop until there is no next step of the current step.
[0201] In a possible implementation manner, the processor is further configured to:
[0202] In response to the instruction combination indication, a plurality of instructions to be combined currently selected by the user are obtained;
[0203] Determine the order between the instructions to be combined;
[0204] According to the order of the instructions to be combined and the instruction content of the instructions to be combined, multiple instructions to be combined are combined to obtain a combined instruction.
[0205] In a possible implementation manner, when the processor executes the instruction for determining the order between the instructions to be combined, it is specifically configured to:
[0206] In response to an instruction position movement instruction for a current instruction among the plurality of instructions to be combined, the current instruction is moved;
[0207] The order of the instructions to be combined is determined according to the positions of the instructions to be combined after the movement.
[0208] In a possible implementation manner, when the processor executes an instruction to combine multiple instructions to be combined according to the order between the instructions to be combined and the instruction contents of the instructions to be combined to obtain a combined instruction, it is specifically used to:
[0209] Extract the framework content of the combined instruction according to the instruction content of each instruction to be combined;
[0210] According to the order between the instructions to be combined, the non-frame contents in the instruction contents of the instructions to be combined are sequentially spliced to obtain the non-frame contents of the combined instruction;
[0211] The frame content of the combined instruction and the non-frame content of the combined instruction are spliced and combined into the instruction content of the combined instruction;
[0212] According to the name information input by the user, the command name of the combined command is obtained.
[0213] In a possible implementation manner, the processor is further configured to:
[0214] In response to the object layer selection instruction, the target layers of the multiple target objects selected by the user are obtained, wherein the target layers of the target objects are of the same type;
[0215] Get the instructions to be executed selected by the user;
[0216] In response to the batch execution instruction, batch execute the pending instructions for the target layer of each target object.
[0217] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0218] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Mem ory), disk or optical disk and other media that can store program code.
[0219] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A method for processing instruction information, characterized in that: include: In response to the instruction to create an instruction, an instruction creation interface is displayed, wherein the instruction creation interface includes an instruction name input area, an instruction content input area, and a create instruction control; In response to the creation instruction control being triggered, obtaining the instruction name input in the name input area and the instruction content input in the instruction content input area; A target instruction is generated according to the instruction name and the instruction content, and the instruction name of the target instruction is displayed in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
2. The instruction information processing method according to claim 1, characterized in that: The instruction content of the target instruction includes: executable text; The method further comprises: In response to the target instruction being triggered, sending the instruction content of the target instruction to the artificial intelligence module; Obtain an execution result obtained by the artificial intelligence module executing the instruction content, and output the execution result.
3. The instruction information processing method according to claim 1, characterized in that: The instruction content of the target instruction includes: an executable text and a replaceable identifier, wherein the replaceable identifier is a character set in a preset format; The method further comprises: In response to the target instruction being triggered, obtaining a target text selected by a user for the target instruction; Replacing the replaceable identifier in the instruction content with the target text to obtain replaced instruction content; The replaced instruction content is sent to the artificial intelligence module, an execution result obtained by the artificial intelligence module executing the replaced instruction content is obtained, and the execution result is output.
4. The instruction information processing method according to claim 1, characterized in that: The instruction content input area displays a default input box and an add step control, and the default input box is used as the input box corresponding to the first step; In response to the creation instruction control being triggered, before obtaining the instruction name input in the name input area and the instruction content input in the instruction content input area, the method further includes: In response to the adding step control being triggered, the step identifier of the current step is determined, the step identifier is displayed, and an input box corresponding to the current step is displayed in the instruction content input area.
5. The instruction information processing method according to claim 4, characterized in that: The generating a target instruction according to the instruction name and the instruction content includes: According to the order of each step in the instruction content input area, the input content in the input box corresponding to each step is read in sequence, and the input content is used as the step instruction content corresponding to each step; According to the order of each step, each step and each corresponding step instruction content are serially connected and combined into the target instruction.
6. The instruction information processing method according to claim 1, characterized in that: The method further comprises: Generate the instruction content to be sent corresponding to the current step according to the step instruction content corresponding to the current step, wherein the current step is any step except the last step in the target instruction; Sending the content of the instruction to be sent to the artificial intelligence module; In response to obtaining the execution result of the to-be-sent instruction content returned by the artificial intelligence module, the next step of the current step is taken as the new current step and executed in a loop until there is no next step of the current step.
7. The instruction information processing method according to claim 1, characterized in that: Also includes: In response to the instruction combination indication, a plurality of instructions to be combined currently selected by the user are obtained; Determining the order between the instructions to be combined; The multiple instructions to be combined are combined according to the order between the instructions to be combined and the instruction content of the instructions to be combined to obtain a combined instruction.
8. The instruction information processing method according to claim 7, characterized in that: The determining the order between the instructions to be combined includes: In response to an instruction position movement instruction for a current instruction among the plurality of instructions to be combined, move the current instruction; The order of the instructions to be combined is determined according to the positions of the instructions to be combined after the movement.
9. The instruction information processing method according to claim 7, characterized in that: The step of combining the plurality of instructions to be combined according to the order between the instructions to be combined and the instruction contents of the instructions to be combined to obtain a combined instruction includes: Extracting the framework content of the combined instruction according to the instruction content of each instruction to be combined; According to the order between the instructions to be combined, the non-frame content in the instruction content of each instruction to be combined is sequentially spliced to obtain the non-frame content of the combined instruction; The frame content of the combined instruction and the non-frame content of the combined instruction are spliced and combined into the instruction content of the combined instruction; According to the name information input by the user, the instruction name of the combined instruction is obtained.
10. The instruction information processing method according to claim 1, characterized in that: Also includes: In response to the object layer selection instruction, the target layers of the multiple target objects selected by the user are obtained, wherein the target layers of the target objects are of the same type; Get the instructions to be executed selected by the user; In response to the batch execution instruction, the to-be-executed instructions are executed in batches for the target layers of the target objects.
11. An instruction information processing device, characterized in that: include: A display module, for responding to an instruction creation instruction, and displaying an instruction creation interface, wherein the instruction creation interface displays an instruction name input area, an instruction content input area, and a create instruction control; An acquisition module, configured to respond to the creation instruction control being triggered and acquire the instruction name input in the name input area and the instruction content input in the instruction content input area; A generation module is used to generate a target instruction according to the instruction name and the instruction content, and display the instruction name of the target instruction in the current instruction list, so that the user can select the target instruction in the current instruction list and trigger the execution of the target instruction.
12. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the steps of the instruction information processing method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the instruction information processing method according to any one of claims 1 to 10 are executed.