Workflow generation method and device, equipment and storage medium
By displaying and configuring action controls and object controls in the control area, a workflow is generated, which solves the problem that users have difficulty describing complex requirements and improves the accuracy and flexibility of demand descriptions.
Patent Information
- Application Number
- CN202311396618.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2025-04-25
AI Technical Summary
When the requirements are complex, it is difficult for users to directly describe the requirements in natural language, resulting in insufficient accuracy and flexibility in the description of the requirements.
By displaying action controls and object controls in the control area, users can select and configure corresponding controls based on target requirements, and perform line processing to generate workflows to characterize the execution process when the pre-trained model processes requirements.
Improves the accuracy and flexibility of requirements descriptions, and eliminates the need for natural language descriptions, and can more accurately characterize the execution process of pre-trained models when processing requirements.
Smart Images

Figure CN119883072A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a workflow generation method, apparatus, device and storage medium. Background Art
[0002] With the rapid development of computer technology, artificial intelligence (AI) models can be applied to process large-scale data and complex problems. At present, users need to use natural language to describe their needs so that AI models can process based on the demand description information, thereby using AI models to solve the problems that users need to deal with. However, when the needs are more complex, it is not convenient to directly use natural language to describe them, and the accuracy of the demand description cannot be effectively guaranteed. Summary of the invention
[0003] The present disclosure provides a workflow generation method, apparatus, device and storage medium, which utilize workflow to describe requirements without requiring users to use natural language descriptions, thereby effectively improving the accuracy and flexibility of requirement descriptions.
[0004] In a first aspect, an embodiment of the present disclosure provides a workflow generation method, comprising:
[0005] Displaying action controls and object controls in the control area, wherein the action controls are used to describe input actions or output actions in the requirements, and the object controls are used to describe input objects or output objects in the requirements;
[0006] In response to a control selection operation triggered based on a target requirement in the control area, displaying a selected target control in the editing area, the target control including a selected target action control and a target object control;
[0007] In response to a property value configuration operation triggered based on a target requirement, configuring a property value of the target control;
[0008] In response to a control connection operation triggered based on a target requirement, the configured target control is connected to generate a target workflow including the target control, wherein the target workflow is used to characterize an execution flow when the pre-trained model processes the target requirement.
[0009] In a second aspect, the present disclosure also provides a workflow generation device, including:
[0010] A control display module, used to display action controls and object controls in the control area, wherein the action controls are used to describe input actions or output actions in the requirements, and the object controls are used to describe input objects or output objects in the requirements;
[0011] A control selection module, for displaying a selected target control in the editing area in response to a control selection operation triggered based on a target requirement in the control area, wherein the target control includes a selected target action control and a target object control;
[0012] A property value configuration module, configured to configure the property value of the target control in response to a property value configuration operation triggered based on a target requirement;
[0013] A connection processing module is used to respond to a control connection operation triggered based on a target requirement, perform connection processing on the configured target control, and generate a target workflow including the target control, wherein the target workflow is used to characterize the execution process when the pre-trained model processes the target requirement.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the workflow generation method as described in any one of the embodiments of the present disclosure.
[0018] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a workflow generation method as described in any one of the embodiments of the present disclosure.
[0019] The disclosed embodiments display action controls and object controls in a control area, wherein the action controls are used to describe input actions or output actions in requirements, and the object controls are used to describe input objects or output objects in requirements, so that a user can select corresponding controls in the control area based on target requirements, and in response to a triggered control selection operation, the selected target controls are displayed in the editing area, the target controls include the selected target action controls and target object controls, and in response to a property value configuration operation triggered based on the target requirements, and in response to a control connection operation triggered based on the target requirements, the configured target controls are connected to generate a target workflow including all target controls, and the target workflow can be used to accurately characterize the execution process of the pre-trained model when processing the target requirements, so that the target workflow can be used to accurately describe the target requirements without using natural language descriptions, thereby effectively improving the accuracy and flexibility of the requirement description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 It is a flowchart of a workflow generation method provided by an embodiment of the present disclosure;
[0022] Figure 2 It is a flowchart of another workflow generation method provided by an embodiment of the present disclosure;
[0023] Figure 3 It is an example of generating a workflow involved in the embodiment of the present disclosure;
[0024] Figure 4 It is a flowchart of another workflow generation method provided by an embodiment of the present disclosure;
[0025] Figure 5 It is a structural schematic diagram of a workflow generation device provided by an embodiment of the present disclosure;
[0026] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, 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 described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0029] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0030] It should be noted that the concepts such as "first" and "second" 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.
[0031] 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".
[0032] 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.
[0033] Figure 1 A flowchart of a workflow generation method provided in an embodiment of the present disclosure is provided. The embodiment of the present disclosure is applicable to the case of generating a workflow for describing requirements. The method can be executed by a workflow generation device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0034] like Figure 1 As shown, the workflow generation method specifically includes the following steps:
[0035] S110. Displaying action controls and object controls in the control area, wherein the action controls are used to describe input actions or output actions in the requirements, and the object controls are used to describe input objects or output objects in the requirements.
[0036] Among them, the control area can be used to display workflow controls that users can select. Requirements can refer to the user's requirements for the model, that is, the tasks that the user needs the model to handle. For example, the requirements can be: imitate the website about the XX industry and generate code that makes the website more beautiful. The action control can be a display module corresponding to the action involved in the description. The action control can include input action controls and output action controls. The input action control can be an action control that is used to describe the input object input to the model. The output action control can be an action control that is used to describe the object output by the model. The object control can be a display module corresponding to the material involved in the description. The object control can include input object controls and output object controls. The input object control can be an object control that is used to describe the object that needs to be input to the model in the requirements. The output object control can be an object control that is used to describe the output of the model in the requirements.
[0037] Specifically, the action controls and object controls that can be selected by the user are loaded into the control area for control display, so that the user can select the desired controls based on the target requirements. The display of the controls can be implemented in at least two ways including but not limited to the following:
[0038] As a display method, the action control corresponding to each optional action type and the object control corresponding to each optional object type are directly displayed in the control area, so that the user can directly select the desired action control and object control. For example, the action controls displayed in the control area may include: imitation control, conversion control, summary control, merger control, basis control, discrete control, generation control, conversion to control, improvement to control, modification to control and summary to control, etc. The displayed object controls may include: text control, code control, picture control, video control, website control and presentation PPT control, etc.
[0039] As another display method, the optional action types associated with the action control and the optional object types associated with the object control are displayed in the control area, so that the user can select specific action controls and object controls by selecting the types, thereby simplifying the display interface of the control area. Among them, the optional action types and optional object types can be displayed and selected by means of drop-down boxes. For example, the optional action types may include: imitate, convert, summarize, merge, base on, discrete, generate, convert to, improve to, modify to and summarize to, etc. The optional object types may include: text, code, picture, video, URL and presentation PPT, etc.
[0040] S120: In response to a control selection operation triggered based on a target requirement in the control area, display a selected target control in the editing area, where the target control includes a selected target action control and a target object control.
[0041] The target requirement may refer to the task that the user currently needs the model to process, that is, the user's current idea. The editing area may be a display area for editing controls. The target control may include a target action control with a specific action selected by the user and a target object control with a specific object. The target control may include at least one target action control and at least two target object controls. The at least two target object controls may include at least one target input object control and at least one target output object control.
[0042] Specifically, the user can select a suitable control in the control area based on the target requirements, such as triggering a control selection operation by clicking, etc. Based on the control selection operation triggered by the user, the specific target control selected by the user is synchronously displayed in the editing area.
[0043] For example, if the target requirement is to imitate a website related to the XX industry and generate code to make the website more beautiful, the selected target controls may include: imitation controls, generation controls, website controls, and code controls.
[0044] S130: In response to the property value configuration operation triggered based on the target requirement, configure the property value of the target control.
[0045] Among them, the attribute value can be used to describe the specific information of the control attribute. For example, the attribute value can include at least one of the control modification attribute value and the control type attribute value. The control modification attribute value can be used to describe the model processing requirement information associated with the control. The control type attribute value can include an input object or an output object. The control type attribute value can be used to characterize whether the control is an input control or an output control. For example, the control type attribute value corresponding to the object control includes an input object or an output object. The control type attribute value corresponding to the action control includes an input action or an output action. Each action control and each object control can be configured with corresponding control modification attribute values and control type attribute values to improve the requirements.
[0046] Specifically, the user can trigger a property value configuration operation for a target control that needs to be configured with a property value based on target requirements in the editing area, such as triggering the property value configuration operation by inputting a property value in a property value input box of the target control. By responding to the property value configuration operation, the property value of the target control can be configured as the property value information input by the user.
[0047] Exemplarily, S130 may include: in response to a type property value configuration operation triggered based on target requirements, configuring the control type property value of the target control; in response to a modification property value configuration operation triggered based on target requirements, configuring the control modification property value of the target control.
[0048] Specifically, by triggering the type attribute value configuration operation in the editing area, the control type attribute value of the target control can be configured as the control type information input by the user. By triggering the modification attribute value configuration operation in the editing area, the control modification attribute value of the target control can be configured as the control modification information input by the user, thereby realizing personalized configuration of the control type attribute value and the control modification attribute value, meeting different personalized needs, and further improving the needs.
[0049] For example, if the target requirement is: to accurately imitate the URL about XX industry and generate code that makes the website more beautiful, then configure the "imitation control" as the input action control, the "generate control" as the output action control, the "URL control" as the input object control, and the "code control" as the output object control. The control modification attribute value corresponding to the "imitation control" is configured as: "Accurate", the control modification attribute value corresponding to the "URL control" is configured as: "About XX industry", and the control modification attribute value corresponding to the "code control" is configured as: "Make the website more beautiful".
[0050] S140. In response to the control connection operation triggered based on the target requirement, the configured target control is connected to generate a target workflow including the target control, where the target workflow is used to characterize the execution process when the pre-trained model processes the target requirement.
[0051] The pre-trained model may be an AI model obtained by pre-training with a large amount of data. For example, the pre-trained model may be, but is not limited to, a pre-trained language model, such as the ChatGPT model. The ChatGPT model is a pre-trained model of the Transformer architecture, and its training process requires a large amount of high-quality text data.
[0052] Specifically, in the editing area, users can make directed connections from beginning to end for all configured target controls based on the data flow in the target requirements, thereby triggering the control connection operation. By responding to the control connection operation, the displayed target controls can be connected synchronously to obtain a target workflow containing all target controls, and the target workflow can be visualized. By using the target workflow, the execution process of the pre-trained model when processing the target requirements can be accurately characterized. By using a workflow that can be personalized, the requirements can be described more flexibly and accurately, improving the accuracy and flexibility of the requirement description.
[0053] The technical solution of the disclosed embodiment displays action controls and object controls in a control area, wherein the action controls are used to describe input actions or output actions in requirements, and the object controls are used to describe input objects or output objects in requirements, so that users can select corresponding controls in the control area based on target requirements, and in response to a triggered control selection operation, the selected target controls are displayed in the editing area, wherein the target controls include the selected target action controls and target object controls, and in response to a property value configuration operation triggered based on the target requirements, and in response to a control connection operation triggered based on the target requirements, the configured target controls are connected to generate a target workflow including all target controls, and the target workflow can be used to accurately characterize the execution process of the pre-trained model when processing the target requirements, so that the target workflow can be used to accurately describe the target requirements without using natural language descriptions, thereby effectively improving the accuracy and flexibility of the requirement description.
[0054] Based on the above technical solution, the method further includes: displaying a custom control in the control area. The custom control includes: at least one of a logic control and a service control; the logic control is used to describe the logical processing relationship of an input object or an output object; the service control implements the corresponding service function by calling a third-party interface. The target control displayed in the editing area also includes the selected target custom control.
[0055] Among them, the custom control can be a control customized by the user based on the needs. The logical processing relationship can include a loop processing relationship, a recursive processing relationship, etc. For example, if it is necessary to perform statistical processing on the transcripts of all classes separately to obtain the average score of each class, the input object is the transcripts of all classes, and the logical control can be a loop processing control. The service control can be used to describe the intermediate processing operations in the requirements, that is, the functions implemented by the third-party interface other than the model. For example, the service control can be an article search control, which can search and return a complete article content based on the input article title or article code by calling the article search interface provided by a third party. Alternatively, the service control can also be an information sending control, which can send the specified information to the specified object by calling the information sending interface provided by a third party.
[0056] Specifically, in addition to displaying action controls and object controls in the control area, custom controls, such as at least one of logic controls and service controls, can also be displayed. For example, the display method of logic controls and service controls can be: directly display the custom controls corresponding to each custom type in the control area, so that the user can directly select a specific custom control. Alternatively, the optional custom types associated with the custom controls are displayed in the control area, so that the user can select a specific custom control by selecting the type. By displaying custom controls in the control area, users can be supported to select custom controls, so that the requirements can be further improved by using custom controls, and the flexibility of the requirement description can be further improved, thereby accurately describing different personalized requirements.
[0057] Figure 2 This is a flowchart of another workflow generation method provided by an embodiment of the present disclosure. Based on the above disclosed embodiments, the present disclosed embodiment describes in detail the display mode, selection mode and configuration mode of the control. The explanations of the terms that are the same or corresponding to the above disclosed embodiments are not repeated here.
[0058] like Figure 2 As shown, the workflow generation method specifically includes the following steps:
[0059] S210: Display, in the control area, optional input action types associated with the input action control, optional output action types associated with the output action control, and optional object types associated with the object control.
[0060] Among them, the optional input action type refers to the input action type that the user can select. For example, the optional input action type may include but is not limited to: at least one of imitation, conversion, induction, merging, basis and discreteness. The optional output action type refers to the output action type that the user can select. For example, the optional output action type may include but is not limited to: at least one of generation, conversion, improvement, modification and induction. The optional object type refers to the object type that the user can select. For example, the optional object type may include but is not limited to: at least one of text, code, picture, video, website and presentation PPT.
[0061] Specifically, see Figure 3 In the control area, you can display the optional types of the corresponding control by displaying a selection drop-down box below the control. For example, display the optional input action type in the selection drop-down box below the input action control, display the optional output action type in the selection drop-down box below the output action control, and display the optional object type in the selection drop-down box below the object control. By displaying the optional types of controls, the interface of the control area can be made simpler and clearer.
[0062] For example, since input actions and output actions are different types of actions, you can directly select whether to use an input action control or an output action control in the control area. Since input objects and output objects can be objects of the same type, object controls can be uniformly displayed in the control area, and then type configuration can be performed later.
[0063] S220: In response to a type selection operation triggered based on a target requirement in the control area, display a target control corresponding to the selected type in the editing area.
[0064] The target control includes the selected target input action control, target output action control and target object control.
[0065] Specifically, the user can trigger the type selection operation by selecting the desired control type in the selection drop-down box based on the target requirements. In response to the triggered type selection operation, the target control corresponding to the selected type can be displayed in the editing area. It should be noted that the displayed target control is a specific control with a specific action or a specific object.
[0066] For example, see Figure 3 , the user selects the imitation type corresponding to the input action control, and the input action control-basis (i.e. basis control) is displayed in the editing area. By selecting the generation type corresponding to the output action control, the output action control-generation (i.e. generation control) is displayed in the editing area. By selecting the modification type corresponding to the output action control, the output action control-modification (i.e. modification control) is displayed in the editing area. By selecting the URL type corresponding to the object control, the object control-URL (i.e. URL control) is displayed in the editing area. By selecting the text type corresponding to the object control, the object control-text (i.e. text control) is displayed in the editing area. By selecting the image type corresponding to the object control, the object control-image (i.e. text control) is displayed in the editing area. By selecting the code type corresponding to the object control, the object control-code (i.e. code control) is displayed in the editing area.
[0067] S230. In response to the property value configuration operation triggered based on the target requirement, configure the control modification property values of the displayed target input action control and the target output action control, and configure the control type property value and the control modification property value of the displayed target object control.
[0068] Among them, the control type attribute value includes input object or output object, and the control modification attribute value is used to describe the processing requirement information associated with the control. Input action control, output action control, input object control and output object control can all be configured with corresponding control modification attribute values to improve the requirements.
[0069] Specifically, it has been determined in the control area whether the displayed action control is an input control or an output control, so that during configuration, only the displayed target input action control and the target output action control can be configured with the control modifier property value. The displayed target object control needs to be configured with the control type property value and the control modifier property value to determine whether the displayed target object control is an input object control or an output object control. For example, in response to the modifier property value configuration operation triggered on the displayed target input action control, the control modifier property value of the displayed target input action control is configured; in response to the modifier property value configuration operation triggered on the displayed target output action control, the control modifier property value of the displayed target output action control is configured; in response to the modifier property value configuration operation triggered on the displayed target object control, the control modifier property value of the displayed target object control is configured; in response to the type property value configuration operation triggered on the displayed target object control, the control type modifier property value of the displayed target object control is configured.
[0070] For example, see Figure 3 , based on the target requirements, configure the "URL control" as an input object control, and configure the "text control", "image control", and "code control" as output object controls. The control modifier value corresponding to the "URL control" is configured as: "About the automotive industry", the control modifier value corresponding to the first "text control" is configured as: "Advertisement format", the control modifier value corresponding to the first "image control" is configured as: "PS design draft format", the control modifier value corresponding to the second "text control" and the second "image control" are configured as: "With XX brand characteristics", and the control modifier value corresponding to the "code control" is configured as: "About XX website".
[0071] S240: In response to the control connection operation triggered based on the target demand, the configured target control is connected to generate a target workflow including the target control.
[0072] Specifically, see Figure 3 Based on the target requirements, the data flows between all displayed target controls are connected to generate a visual target workflow. Users can check the target workflow to ensure that the target workflow can accurately represent the target requirements, so that the requirements can be accurately described using a clear and concise workflow. For example, Figure 3 The target requirements described by the target workflow in the example are: first, based on the website address about the automobile industry, generate text in the form of an advertisement and pictures in the form of a PS design draft, then modify the generated text and pictures into text and pictures with the characteristics of the XX brand, and finally generate the website code for the XX website based on the text and pictures with the characteristics of the XX brand.
[0073] It should be noted that in the target workflow, the output object control can also be regarded as the input object control of the subsequent process for further processing, so as to describe more complex requirements.
[0074] The technical solution of the disclosed embodiment makes the display interface more concise by displaying the optional input action types associated with the input action control, the optional output action types associated with the output action control, and the optional object types associated with the object control in the control area, and the user can trigger the type selection operation based on the target demand in the control area, so that the target control corresponding to the type selected by the user is displayed in the editing area, and the control modifier attribute values of the displayed target input action control and target output action control are configured, and the control type attribute value and the control modifier attribute value of the displayed target object control are configured, thereby realizing the flexible generation of the target workflow to meet the personalized demand description.
[0075] Figure 4 This is a flowchart of another workflow generation method provided by the embodiment of the present disclosure. Based on the above disclosed embodiments, the present disclosed embodiment describes the operation and debugging process of the workflow in detail. The explanations of the terms that are the same or corresponding to the above disclosed embodiments are not repeated here.
[0076] like Figure 4 As shown, the workflow generation method specifically includes the following steps:
[0077] S410. Displaying action controls and object controls in the control area, wherein the action controls are used to describe input actions or output actions in the requirements, and the object controls are used to describe input objects or output objects in the requirements.
[0078] S420: In response to a control selection operation triggered based on a target requirement in the control area, display a selected target control in the editing area, where the target control includes a selected target action control and a target object control.
[0079] S430: In response to the property value configuration operation triggered based on the target requirement, configure the property value of the target control.
[0080] S440. In response to the control connection operation triggered based on the target requirement, the configured target control is connected to generate a target workflow including the target control, and the target workflow is used to characterize the execution process when the pre-trained model processes the target requirement.
[0081] S450: In response to the triggered object upload operation, obtain a target object to be input in the target workflow.
[0082] The target object may refer to the actual object content that needs to be input by the input object control in the target workflow.
[0083] Specifically, after the target workflow is generated, the target workflow needs to be run and converted so as to generate input information that the model can accept. Specifically, the input object control in the target workflow may include an upload button and / or an input box. The user may trigger the object upload operation by clicking the upload button of the input object control, thereby uploading the target object that needs to be processed by the model. Alternatively, the user may also directly input the target object in the input box of the input object control, thereby uploading the target object.
[0084] S460: In response to the triggered workflow running operation, the target workflow and the target object are parsed to generate target requirement description information.
[0085] The target requirement description information may be target requirement information described in natural language, for example, in text format.
[0086] Specifically, if the input format acceptable to the pre-trained model is text format, the target workflow and target object need to be parsed to obtain the target requirement description information in text format. For example, the workflow run operation can be triggered by clicking the run button in the function area, and the target workflow in the editing area and the uploaded target object are parsed to obtain the target requirement description information in text format, thereby automatically converting the target workflow into the target requirement description information in text format, so that the pre-trained model can process based on the target requirement description information, thereby solving the problem that needs to be processed.
[0087] Exemplarily, S450 may include: in response to a triggered workflow running operation, parsing the target object to obtain a parsed target text; parsing the target workflow to obtain parsed target control description information; and generating target requirement description information based on the target control description information and the target text.
[0088] Specifically, in response to the triggered workflow running operation, the target object is parsed into a target text in text format. For example, if the target object is a URL, the website corresponding to the URL is parsed to obtain the code text of the website, that is, the parsed target text is the code text. Contents of all controls in the target workflow are parsed to obtain target control description information. For example, the target control description information is: [Input action control: imitate] [Modified attribute value: accurate] [Input object control: URL] [Modified attribute value: about XX industry] [Output action control: generate] [Output object control: code] [Modified attribute value: makes the website more beautiful]. The parsed target text is added to the parsed target control description information and the information is spliced to generate the target demand description information corresponding to the target demand. For example, the target demand description information is: accurately imitate the "code text" about the XX industry to generate code that makes the website more beautiful.
[0089] S470: Input the target requirement description information into the pre-training model to process the target requirement, and obtain the target processing result output by the pre-training model.
[0090] The pre-trained model may be an AI model obtained by pre-training with a large amount of language data. For example, the pre-trained model may be, but is not limited to, a pre-trained language model. During the training phase, the main task of the model is to master the ability of language generation and understanding by learning a large amount of text data.
[0091] Specifically, the target requirement description information can be used as prompt information and input into the pre-trained model to process the target requirement, and the target processing result can be output, so that the problem in the target requirement can be automatically solved by using the pre-trained model.
[0092] S480: Display the target processing result at the associated position corresponding to the output object control in the target workflow.
[0093] The associated position of the output object control may be a display position associated with the output object control.
[0094] Specifically, after obtaining the target processing result, the target processing result can be displayed at the associated position of the output object control in the target workflow, so that the user can view the target processing result at the associated position. For example, each output object control can include a download button and a display area. The target processing result can be directly displayed in the display area of the output object control, or the target processing result can be downloaded and viewed by clicking the download button. If the target workflow includes multiple output object controls, the target processing result corresponding to each output object control can be obtained based on the pre-trained model, and the corresponding target processing result can be displayed at the associated position corresponding to each output object control, so that the user can view the processing result at each processing link.
[0095] Exemplarily, S480 may include: performing type conversion on the target processing result based on the output object type corresponding to the output object control in the target workflow; and displaying the converted target processing result at the associated position corresponding to the output object control.
[0096] Specifically, since the target processing result output by the pre-trained model itself is a result in text format, it is necessary to convert the target processing result output by the model into a processing result corresponding to the output object type based on the output object type corresponding to the output object control, so as to display the processing result that conforms to the output object type, and further meet the target requirements. For example, if the output object type corresponding to the output object control is a presentation PPT, the target processing result output by the model is converted into a processing result of the PPT type through a program, and the processing result of the PPT type is displayed at the associated position of the output object control, so that the user can directly view the processing result of the PPT type, and further meet the target requirements.
[0097] The technical solution of the disclosed embodiment parses the target workflow and the uploaded target object in the editing area to obtain the target requirement description information in text format, thereby automatically converting the target workflow into the target requirement description information in text format, and inputting the target requirement description information into the pre-trained model to process the target requirement, obtaining the target processing result output by the pre-trained model, and displaying the target processing result at the associated position corresponding to the output object control in the target workflow, thereby automatically processing using the pre-trained model and the target requirement description information to quickly solve the problem that needs to be processed.
[0098] Based on the above technical solutions, after step S480, it may also include: in response to the triggered application export operation, generating a target interface based on the input parameters and output parameters in the target workflow; in response to the call operation of the target interface, processing the received information request and returning the processing result.
[0099] Specifically, after the target workflow runs and debugs successfully, the user can trigger the application export operation by clicking the export button in the function area. In response to the application export operation, the parameters required by the input object control in the target workflow can be used as input parameters, and the parameters required by the output object control in the target workflow can be used as output parameters, which are encapsulated as a target interface, so that online access can be achieved through the target interface. When an application such as a web page or an APP client needs to handle a problem consistent with the target demand, an information request can be sent by calling the target interface. By responding to the call operation of the target interface, an information request can be received, and the information request is parsed to obtain the input parameters transmitted by the application end through the target interface. The target workflow and input parameters corresponding to the target interface are parsed, and processed using a pre-trained model to obtain the final processing result, and the final processing result is returned through the target interface, so that the application can quickly obtain the processing result based on the target interface, thereby realizing the reuse of the target interface, facilitating all applications to reuse the target demand, and thus improving the processing efficiency.
[0100] Figure 5 A schematic diagram of the structure of a workflow generation device provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the device specifically includes: a control display module 510, a control selection module 520, a property value configuration module 530 and a connection processing module 540.
[0101] Among them, the control display module 510 is used to display action controls and object controls in the control area, wherein the action control is used to describe the input action or output action in the requirement, and the object control is used to describe the input object or output object in the requirement; the control selection module 520 is used to display the selected target control in the editing area in response to the control selection operation triggered based on the target requirement in the control area, and the target control includes the selected target action control and target object control; the attribute value configuration module 530 is used to configure the attribute value of the target control in response to the attribute value configuration operation triggered based on the target requirement; the connection processing module 540 is used to perform connection processing on the configured target control in response to the control connection operation triggered based on the target requirement, and generate a target workflow including the target control, and the target workflow is used to characterize the execution process when the pre-trained model processes the target requirement.
[0102] The technical solution provided by the embodiment of the present disclosure displays action controls and object controls in the control area, wherein the action controls are used to describe the input actions or output actions in the requirements, and the object controls are used to describe the input objects or output objects in the requirements, so that the user can select the corresponding controls in the control area based on the target requirements, and in response to the triggered control selection operation, the selected target controls are displayed in the editing area, the target controls include the selected target action controls and target object controls, and in response to the attribute value configuration operation triggered based on the target requirements, and in response to the control connection operation triggered based on the target requirements, the configured target controls are connected to generate a target workflow including all target controls, and the target workflow can be used to accurately characterize the execution process of the pre-trained model when processing the target requirements, so that the target workflow can be used to accurately describe the target requirements without using natural language descriptions, thereby effectively improving the accuracy and flexibility of the requirement description.
[0103] On the basis of the above technical solution, the control display module 510 is specifically used to: display the optional input action types associated with the input action control, the optional output action types associated with the output action control, and the optional object types associated with the object control in the control area;
[0104] The control selection module 520 is specifically used to: in response to a type selection operation triggered based on target requirements in the control area, display the target control corresponding to the selected type in the editing area, and the target control includes the selected target input action control, target output action control and target object control.
[0105] Based on the above technical solutions, the workflow generation module 530 is specifically used to:
[0106] In response to a type property value configuration operation triggered based on target requirements, the control type property value of the target control is configured; in response to a modification property value configuration operation triggered based on target requirements, the control modification property value of the target control is configured; wherein the control type property value includes an input object or an output object, and the control modification property value is used to describe model processing requirement information associated with the control.
[0107] Based on the above technical solutions, the control display module 510 is also used for:
[0108] Displaying a custom control in the control area; the custom control includes: at least one of a logic control and a service control; the logic control is used to describe the logical processing relationship of an input object or an output object; the service control implements a corresponding service function by calling a third-party interface;
[0109] The target control displayed in the editing area also includes the selected target custom control.
[0110] On the basis of the above technical solutions, the device also includes:
[0111] A target object acquisition module, configured to acquire a target object to be input in the target workflow in response to a triggered object upload operation after generating the target workflow corresponding to the target requirement;
[0112] A description information generating module, used for parsing the target workflow and the target object in response to a triggered workflow running operation, and generating target requirement description information;
[0113] A demand processing module is used to, after generating target demand description information corresponding to the target demand, input the target demand description information into a pre-training model to process the target demand, and obtain a target processing result output by the pre-training model;
[0114] The processing result display module is used to display the target processing result at the associated position corresponding to the output object control in the target workflow.
[0115] On the basis of the above-mentioned technical solutions, the description information generation module is specifically used to: in response to a triggered workflow running operation, parse the target object to obtain the parsed target text; parse the target workflow to obtain the parsed target control description information; based on the target control description information and the target text, generate the target requirement description information corresponding to the target requirement.
[0116] Based on the above technical solutions, the processing result display module is specifically used to: perform type conversion on the target processing result based on the output object type corresponding to the output object control in the target workflow; and display the converted target processing result at the associated position corresponding to the output object control.
[0117] The workflow generation device provided in the embodiments of the present disclosure can execute the workflow generation method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the workflow generation method.
[0118] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0119] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 , which shows an electronic device (eg, Figure 5 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, 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. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0120] like Figure 6 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0121] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0122] In particular, 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 non-transitory computer-readable medium, and the computer program contains 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 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0123] 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.
[0124] The electronic device provided in the embodiment of the present disclosure and the workflow generation method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0125] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the workflow generation method provided by the above embodiment is implemented.
[0126] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. 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, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The 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, apparatus 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.
[0127] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0128] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0129] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays action controls and object controls in the control area, wherein the action controls are used to describe the input actions or output actions in the requirements, and the object controls are used to describe the input objects or output objects in the requirements; in response to a control selection operation triggered based on the target requirements in the control area, displays the selected target controls in the editing area, and the target controls include the selected target action controls and target object controls; in response to a property value configuration operation triggered based on the target requirements, configures the property values of the target controls; in response to a control connection operation triggered based on the target requirements, connects the configured target controls to generate a target workflow including the target controls, and the target workflow is used to characterize the execution flow when the pre-trained model processes the target requirements.
[0130] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through 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., through the Internet using an Internet service provider).
[0131] 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.
[0132] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0133] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0134] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0135] The above description is only a preferred embodiment 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, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0136] 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.
[0137] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A workflow generation method, characterized in that: include: Displaying action controls and object controls in the control area, wherein the action controls are used to describe input actions or output actions in the requirements, and the object controls are used to describe input objects or output objects in the requirements; In response to a control selection operation triggered based on a target requirement in the control area, displaying a selected target control in the editing area, the target control including a selected target action control and a target object control; In response to a property value configuration operation triggered based on a target requirement, configuring a property value of the target control; In response to a control connection operation triggered based on a target requirement, the configured target control is connected to generate a target workflow including the target control, wherein the target workflow is used to characterize an execution flow when the pre-trained model processes the target requirement.
2. The workflow generation method according to claim 1, characterized in that: The displaying of the action control and the object control in the control area includes: Displaying in the control area optional input action types associated with the input action control, optional output action types associated with the output action control, and optional object types associated with the object control; In response to the control selection operation triggered based on the target requirement in the control area, displaying the selected target control in the editing area includes: In response to a type selection operation triggered based on target requirements in the control area, a target control corresponding to the selected type is displayed in the editing area, and the target control includes the selected target input action control, target output action control and target object control.
3. The workflow generation method according to claim 1, characterized in that: The configuring of the property value of the target control in response to the property value configuration operation triggered based on the target requirement includes: In response to a type attribute value configuration operation triggered based on a target requirement, configuring a control type attribute value of the target control; In response to a modification property value configuration operation triggered based on a target requirement, configuring a control modification property value of the target control; The control type attribute value includes an input object or an output object, and the control modification attribute value is used to describe model processing requirement information associated with the control.
4. The workflow generation method according to claim 1, characterized in that: The method further comprises: Displaying a custom control in the control area; the custom control includes: at least one of a logic control and a service control; the logic control is used to describe the logical processing relationship of an input object or an output object; the service control implements a corresponding service function by calling a third-party interface; The target control displayed in the editing area also includes the selected target custom control.
5. The workflow generation method according to claim 1, characterized in that: After generating the target workflow including the target control, the method further includes: In response to the triggered object upload operation, obtaining a target object to be input in the target workflow; In response to the triggered workflow running operation, the target workflow and the target object are parsed to generate target requirement description information; Inputting the target requirement description information into the pre-training model to process the target requirement, and obtaining the target processing result output by the pre-training model; The target processing result is displayed at the associated position corresponding to the output object control in the target workflow.
6. The workflow generation method according to claim 5, characterized in that: The step of parsing the target object and the target workflow in response to the triggered workflow running operation to generate target requirement description information includes: In response to the triggered workflow running operation, the target object is parsed to obtain a parsed target text; Parsing the target workflow to obtain parsed target control description information; Based on the target control description information and the target text, target requirement description information is generated.
7. The workflow generation method according to claim 5, characterized in that: Displaying the target processing result at the associated position corresponding to the output object control in the target workflow includes: Based on the output object type corresponding to the output object control in the target workflow, performing type conversion on the target processing result; The converted target processing result is displayed at the associated position corresponding to the output object control.
8. A workflow generation device, characterized in that: include: A control display module, used to display action controls and object controls in the control area, wherein the action controls are used to describe input actions or output actions in the requirements, and the object controls are used to describe input objects or output objects in the requirements; A control selection module, for displaying a selected target control in the editing area in response to a control selection operation triggered based on a target requirement in the control area, wherein the target control includes a selected target action control and a target object control; A property value configuration module, configured to configure the property value of the target control in response to a property value configuration operation triggered based on a target requirement; A connection processing module is used to respond to a control connection operation triggered based on a target requirement, perform connection processing on the configured target control, and generate a target workflow including the target control, wherein the target workflow is used to characterize the execution process when the pre-trained model processes the target requirement.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the workflow generation method according to any one of claims 1 to 7.
10. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to execute the workflow generation method according to any one of claims 1 to 7.