Workflow creation method and apparatus, device, and storage medium
By adding question-and-answer nodes to the workflow, the system can obtain user responses and execute corresponding actions, thus solving the problem of traditional workflows struggling to dynamically adjust execution logic and enhancing workflow flexibility and user interactivity.
Patent Information
- Application Number
- PCT/CN2025/103558
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-30
- Filing Date
- 2025-06-25
- Publication Date
- 2026-01-08
AI Technical Summary
Traditional workflows struggle to dynamically adjust their execution logic based on user input, making it difficult for users to control the workflow's execution logic during the process.
By adding question-and-answer nodes, the system can obtain the user's response content and execute corresponding actions based on that response content, thus dynamically adjusting the workflow's execution logic.
It enables dynamic adjustment of workflow execution logic based on user input during workflow execution, enhancing workflow flexibility and user interactivity.
Smart Images

Figure CN2025103558_08012026_PF_FP_ABST
Abstract
Description
Method, device, apparatus and storage medium for creating workflow
[0001] The present application claims priority to the Chinese patent application No. 202410870549.X, filed on June 30, 2024, entitled “Method, device, apparatus and storage medium for creating workflow”, the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] Example embodiments of the present disclosure generally relate to the field of computer, and in particular, to a method, device, apparatus and computer readable storage medium for creating workflow. BACKGROUND
[0003] With the development of computer technology, people can create and publish various types of applications through some platforms. In the development process of the application, the creation and management of the workflow is an important task. For example, a user can indicate the processing flow of a request by editing nodes in a workflow. SUMMARY
[0004] In a first aspect of the present disclosure, a method for creating a workflow is provided. The method comprises: in response to a received editing operation, adding a first node associated with a question and answer interaction to a node connection graph; obtaining configuration information of the first node via a set of input controls associated with the first node, the configuration information indicating: a target question provided when the first node is triggered, and a target action required to be performed based on response content of the first node to the target question; and creating a target workflow based on the node connection graph.
[0005] In a second aspect of the present disclosure, a device for creating a workflow is provided. The device comprises: an adding module configured to, in response to a received editing operation, add a first node associated with a question and answer interaction to a node connection graph; an obtaining module configured to obtain configuration information of the first node via a set of input controls associated with the first node, the configuration information indicating: a target question provided when the first node is triggered, and a target action required to be performed based on response content of the first node to the target question; and a creating module configured to create a target workflow based on the node connection graph.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device comprises at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. The instructions, when executed by the at least one processor, cause the device to perform the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer readable storage medium is provided. The computer readable storage medium has stored thereon a computer program, the computer program being executable by a processor to implement the method of the first aspect.
[0008] In a fifth aspect of the present disclosure, a computer program product is provided. The computer program product includes computer executable instructions, wherein the computer executable instructions implement the method of the first aspect when executed by a processor.
[0009] It should be understood that nothing in the Summary is to be construed as a limitation on the scope of the embodiments of the present disclosure. Other features, aspects, and advantages of the present disclosure will become apparent from the following description, which is given by way of example only, with reference to the attached drawings. BRIEF DESCRIPTION OF DRAWINGS
[0010] The above and other features, aspects, and advantages of embodiments of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like reference numerals refer to like elements, in which:
[0011] FIG. 1 shows a schematic diagram of an example environment in which embodiments according to the present disclosure can be implemented;
[0012] FIG. 2 shows a flowchart of an example process of creating a workflow according to some embodiments of the present disclosure;
[0013] FIG. 3A shows an example editing interface according to some embodiments of the present disclosure;
[0014] FIG. 3B shows an example interaction interface according to some embodiments of the present disclosure;
[0015] FIG. 3C shows an example question and answer node according to some embodiments of the present disclosure;
[0016] FIG. 3D shows an example interaction interface according to yet other embodiments of the present disclosure;
[0017] FIG. 4 shows a schematic structural block diagram of an example apparatus for creating a workflow according to some embodiments of the present disclosure; and
[0018] FIG. 5 shows a block diagram of an electronic device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so that the present disclosure can be more thoroughly and completely understood. 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.
[0020] It should be noted that the titles of any sections / sub-sections provided herein are not limiting. Various embodiments are described throughout this document and any type of embodiment can be included under any section / sub-section. Furthermore, embodiments described in any section / sub-section can be combined with any other embodiments described in the same section / sub-section and / or different section / sub-section in any manner.
[0021] In the description of embodiments of the present disclosure, the term "includes" and its derivatives, such as "including," should be understood in an open, inclusive sense, that is, "including, but not limited to." The term "based on" should be understood as "based at least in part on." The term "one embodiment" or "an embodiment" should be understood as "at least one embodiment." The term "some embodiments" should be understood as "at least some embodiments." Other explicitly and implicitly recited definitions can also be found below. The terms "first," "second," and the like can refer to different or identical objects. Other explicit and implicit definitions can also be found below.
[0022] Data of users, acquisition and / or use of data, etc. can be involved in embodiments of the present disclosure. These aspects all comply with corresponding laws and regulations and relevant provisions. In embodiments of the present disclosure, all collection, acquisition, processing, processing, forwarding, use, etc. of data are performed on the premise that users are aware of and confirm. Accordingly, when implementing embodiments of the present disclosure, the type of data or information that can be involved, the range of use, the scenario of use, etc. should be informed to users and authorized by users in a proper manner according to relevant laws and regulations. The specific informing and / or authorization manner can vary according to actual situations and application scenarios, and the scope of the present disclosure is not limited in this respect.
[0023] In the present specification and embodiments, if personal information processing is involved, it will be processed on the premise of legality (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and only within the prescribed or agreed range. Users refuse to process personal information other than the necessary information required for basic functions, which will not affect the user's use of basic functions.
[0024] Traditionally, a user can quickly create a workflow by configuring different processing nodes in the workflow. However, during the execution of the workflow, such a workflow is usually executed according to the preset logic configured, and it is difficult for the user to control the execution logic of the workflow during the execution.
[0025] Embodiments of the present disclosure propose a scheme for creating a workflow. According to the scheme, in response to a received editing operation, a first node associated with a question-and-answer interaction is added to a node connection graph; configuration information of the first node is acquired via a set of input controls associated with the first node, the configuration information indicating: a target question provided when the first node is triggered, and a target action required to be performed based on response content of the first node to the target question; and based on the node connection graph, a target workflow is created.
[0026] In this way, embodiments of the present disclosure can support obtaining response content of a user about a specific question in a workflow to be executed by adding a question-and-answer node, and triggering a corresponding action to be performed.
[0027] Various example implementations of the scheme are described in further detail below in conjunction with the accompanying drawings.
[0028] Example Environment
[0029] FIG. 1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG. 1, the example environment 100 can include an electronic device 110.
[0030] In this example environment 100, the electronic device 110 can run an application 120 that supports interface interaction. The application 120 can be any appropriate type of application for interface interaction, examples of which can include but are not limited to: a development application or other appropriate application that supports workflow creation. A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices.
[0031] In the environment 100 of FIG. 1, if the application 120 is in an active state, the electronic device 110 can present an interface 150 for supporting the creation of a workflow through the application 120.
[0032] In some embodiments, the electronic device 110 communicates with the server 130 to implement provisioning of services of the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a tablet computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a palmtop computer, a portable gaming terminal, a VR / AR device, a Personal Communication System (PCS) terminal, a personal navigation device, a Personal Digital Assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a game device, or any combination thereof, including an accessory or peripheral device for the foregoing, or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface to a user (such as “wearable” circuitry, etc.).
[0033] The server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and basic cloud computing services such as big data and artificial intelligence platforms. The server 130 may, for example, include a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 can provide background services for the application 120 in the electronic device 110 that supports a virtual scene.
[0034] A communication connection can be established between the server 130 and the electronic device 110. The communication connection can be established by wired or wireless means. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, and the like, and embodiments of the present disclosure are not limited in this regard. In embodiments of the present disclosure, the server 130 and the electronic device 110 can implement signaling interaction through the communication connection therebetween.
[0035] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only, and do not imply any limitation on the scope of the present disclosure.
[0036] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0037] Example process
[0038] FIG. 2 illustrates a flowchart of a process 200 of creating a workflow, according to some embodiments of the present disclosure. In the context of the present disclosure, “creating a workflow” can include various forms, for example, a new workflow can be created using the example process 200, or an existing workflow can be opened and edited using an editing interface as introduced below. The process 200 can be implemented at the electronic device 110. The process 200 is described below with reference to FIG. 1.
[0039] As shown in FIG. 2, at block 210, in response to the received editing operation, the electronic device 110 adds a first node associated with a question-answer interaction to the node connection graph.
[0040] The process 200 is described below with reference to FIG. 3A. FIG. 3A illustrates an example editing interface 300A, according to some embodiments of the present disclosure.
[0041] As shown in FIG. 3A, the interface 300A can be a node editing interface for creating a workflow. As shown, the electronic device 110 can present, in the interface 300A, a plurality of interface elements corresponding to a plurality of node types, for example, interface element 305-1 to interface element 305-6. As an example, the interface element 305-1 can be used to add a knowledge base node, the interface element 305-2 can be used to add a code node, the interface element 305-3 can be used to add a message node, the interface element 305-4 can be used to add a question-answer node, the interface element 305-5 can be used to add an image flow node, and the interface element 305-6 can be used to add a database node.
[0042] In some embodiments, in addition to the above specific nodes, embodiments of the present disclosure can also support addition of other appropriate types of nodes. For example, the electronic device 110 can support a user to add an already created other workflow as a single processing node to the node connection graph.
[0043] As an example, the electronic device 110 can receive a user selection of the interface element 305-4 to add the first node 315 to the node connection graph. The first node 315 is also referred to as a question-answer node, for triggering a question-answer interaction in execution.
[0044] At block 220, the electronic device 110 obtains, via a set of input controls associated with the first node, configuration information of the first node, the configuration information indicating a target question to be provided when the first node is triggered, and a target action to be performed based on response content of the first node to the target question.
[0045] As shown in FIG. 3A, the electronic device 110 can display an editing window of the first node 315, and can provide one or more input controls in the editing window for editing the configuration information of the first node 315.
[0046] In some embodiments, the electronic device 110 may, for example, connect the first node 315 to the second node 310 in the node connection graph to indicate that the first node 315 can be triggered after the second node 310 based on the user’s editing operation. In some embodiments, the second node 310 can include any appropriate type of node described above.
[0047] In some instances, the first node 315 can be triggered for execution upon completion of execution of one or more predecessor nodes (e.g., the second node 310) directly connected to the first node 315 in the node connection graph.
[0048] Additionally, the electronic device 110 can provide an input control 320 for configuring an input parameter of the first node 315. In some embodiments, the electronic device 110 may, for example, support the user to define the input parameter by referencing a data object defined in an associated other node (e.g., the second node 310). As another example, the electronic device 110 may, for example, also support the creation of a new parameter in the first node 315.
[0049] Taking FIG. 3A as an example, the electronic device 110 may, for example, configure the input parameter “output” through the control 320, which may, for example, be referenced by the output parameter of the second node 310.
[0050] Additionally, the electronic device 110 can provide an input control 325 for configuring a question type corresponding to the first node 315. In some embodiments, the input control 325 may, for example, provide two candidate question types. As shown in FIG. 3A, the first question type may, for example, be referred to as an open question, which indicates that the user can answer the proposed question through free input.
[0051] Further, the electronic device 110 may, for example, obtain a question description text through the input control 330, e.g., “What do you think the name of {{output}} is appropriate?”. Further, the first node 315 may, for example, determine the question presented to the user at the time of triggering execution based on the question description text.
[0052] In some embodiments, the question description text may, for example, include a reference to the input parameter, e.g., “{{output}}”. Further, as introduced above, the input parameter is referenced from a data object in the associated second node 310. In some embodiments, the question description text may, for example, also include a reference to a new parameter declared at the first node 315. It should be understood that such an associated node can include any appropriate predecessor node of the first node 315 in the node connection graph, which does not require the associated node to be directly connected to the first node 315.
[0053] Additionally, when the input control 325 indicates that the first node 315 corresponds to a first question type (i.e., an open question), the electronic device 110 can further obtain parameter description information through the input control 335. The parameter description information may, for example, be used to indicate at least one parameter (or field) to be determined based on the response content of the user to the proposed question.
[0054] Taking FIG. 3A as an example, the electronic device 110 may, for example, determine through the input control 335 that the name of the parameter to be extracted is “Name”, which is a string type and is used to describe the name of the role. As an example, the parameter may, for example, also be a field that must be extracted.
[0055] In some embodiments, the first node 315 can be configured to process the response content by using any appropriate model to extract the value of the parameter from the response content according to the parameter description information.
[0056] In some embodiments, during the execution of the target application, if the first node 315 fails to extract the value of the parameter from the response content 335 of the user, the first node 315 may, for example, trigger the target application to perform one or more rounds of follow-up questioning processes to the user. In some embodiments, the questions proposed in the follow-up questioning process can be the same as the target question configured by the first node, or the questions proposed in the follow-up questioning process can also be regenerated questions based on the response content of the user.
[0057] In some embodiments, the first node 315 can also configure the maximum number of rounds of follow-up questioning allowed. As an example, if the first node 315 still fails to extract the value of the parameter after a predetermined number of rounds of follow-up questioning, the target application may, for example, end the execution of the first node 315.
[0058] As shown in FIG. 3B, when the workflow including the first node 315 is triggered for execution, the first node 315 can trigger the provision of a target question 355. The target question can be determined based on the question description text introduced above.
[0059] For example, the second node 310 may, at runtime, determine that the value of the variable “output” is “Role X”. Accordingly, the content of the target question 355 can be “What do you think is a suitable name for Role X?”.
[0060] Further, the first node 315 can obtain the response content 360 input by the user. The response content 360 may, for example, include text content, voice content, expression content, video content, image content, and the like input by the user through the input control.
[0061] Further, the first node 315 can process the response content 360 with a language model to extract the parameters matching the parameter description information. For example, the first node 315 can utilize the language model to determine the parameter value of the parameter “Name” as “Name A” based on the response content 360.
[0062] In this case, the target action to be performed by the first node 315 based on the response content of the target question can include determining the values of the configured one or more parameters from the response content.
[0063] With reference to FIG. 3A, the node connection graph can further include, for example, a third node 340 connected with the first node 315. The third node 340 can support, for example, referencing the parameter extracted by the first node 315, e.g., “Name”.
[0064] Accordingly, during the workflow runtime, the parameter value of the parameter “Name” (e.g., “Name A”) determined based on the response content 360 can be provided to the third node 340 for further processing by subsequent nodes in the workflow.
[0065] In some embodiments, as shown in FIG. 3C, the first node 315 can be further configured to be associated with a second question type, also referred to as a pre-set option question, for example, through the input control 325. Similarly, the electronic device 110 can obtain the question description text through the input control 330.
[0066] Unlike the example of FIG. 3A, as shown in FIG. 3C, for the pre-set option question, the electronic device 110 can further configure a set of candidate answers for the target question through the input control 370-1, the input control 370-2, and the input control 370-3, for example. Similar to the question description text, the set of candidate answers can further be described by referencing the data objects in the associated node (e.g., the second node 310), for example.
[0067] As shown in FIG. 3D, upon the first node 315 being triggered for execution, the target question 375 determined based on the question description question can be provided to the user. Further, the three candidate answers 380-1, 380-2, and 380-3 configured based on the input controls 370-1 to 370-3 can also be provided.
[0068] As an example, the user can select the candidate answer 380-2 as the response content for the target question 375. As a further example, the user can further input a response message for the target question 375 through the input control, e.g., a text message, a voice message, etc.
[0069] Further, the first node 315 can utilize the language model to process the response message to determine whether it matches the provided candidate answers 380-1, 380-2, and 380-3. For example, if the response content input by the user is "Option B", the first node 315 can determine that the response content indicates the candidate answer 380-2.
[0070] As yet another example, upon determining that the response message does not match any of the candidate answers 380-1, 380-2, and 380-3, the first node 315 can determine that the response content corresponds to other options. In some instances, as shown in FIG. 3C, the electronic device 110 can further receive a configuration operation to indicate actions corresponding to different candidate answers or other options. For example, the electronic device 110 can add a corresponding fourth node after the respective input control to indicate actions to be performed upon the candidate answer being matched or all candidate answers being unmatched. In some embodiments, such fourth node may, for example, include a processing node of an appropriate type as discussed above.
[0071] For example, the user can connect the input control 370-2 to any appropriate node supported in the workflow to indicate that the candidate answer 380-2 can trigger the node to perform a corresponding action. Accordingly, with FIG. 3D as an example, upon the user clicking on the candidate answer 380-2 or inputting a response message to indicate selection of the candidate answer 380-2, the subsequent node can be triggered to perform.
[0072] In this case, the target action to be performed by the first node 315 based on the response content of the target question can trigger the performance of a corresponding subsequent node based on the response content.
[0073] Based on the procedures described above, embodiments of the present disclosure can support obtaining variable content according to user input or adjusting the running logic of the workflow according to user input in the running process by creating a question and answer node.
[0074] At block 230, the electronic device 110 creates a target workflow based on the node connection graph.
[0075] With continued reference to FIG. 3A, in some embodiments, upon completion of the editing of the node connection graph, the electronic device 110 may, for example, trigger a corresponding debugging procedure based on the control 345. Additionally, the electronic device 110 can further create and publish a corresponding target workflow based on triggering of the control 350.
[0076] As an example, the electronic device 110 can create a corresponding target workflow based on the configuration information of the nodes in the node connection graph and the connections between the nodes, etc. Such target workflow may, for example, be published or shared to other users.
[0077] In some embodiments, such a target workflow can be independently published, or can trigger the creation and / or publication of an application based on the target workflow, e.g., a bot or an agent.
[0078] Based on the above-described process, embodiments of the present disclosure can support obtaining, by adding a question-and-answer node, a response content of a user about a specific question in a workflow to be executed, and triggering a corresponding action to be performed.
[0079] Example apparatus and device
[0080] Embodiments of the present disclosure also provide a corresponding apparatus for implementing the above-described method or process. FIG. 4 shows a schematic structural block diagram of an example apparatus 400 for creating a workflow, according to certain embodiments of the present disclosure. The apparatus 400 can be implemented as or included in the electronic device 110. Various modules / components in the apparatus 400 can be implemented by hardware, software, firmware, or any combination thereof.
[0081] As shown in FIG. 4, the apparatus 400 includes an adding module 410 configured to, in response to a received editing operation, add a first node associated with a question-and-answer interaction to a node connection graph; an obtaining module 420 configured to obtain configuration information of the first node via a set of input controls associated with the first node, the configuration information indicating a target question provided when the first node is triggered, and a target action required to be performed based on a response content of the first node to the target question; and a creating module 430 configured to create a target workflow based on the node connection graph.
[0082] In some embodiments, the adding module 410 is further configured to: present a plurality of interface elements corresponding to a plurality of node types; and in response to a selection of a target interface element in the plurality of interface elements, add the first node to the node connection graph, the target interface element corresponding to a question-and-answer node.
[0083] In some embodiments, the obtaining module 420 is further configured to: obtain a question description text via a first input control in the set of input controls; and determine the target question provided when the first node is triggered based on the question description text.
[0084] In some embodiments, the question description text references a target data object in a second node associated with the first node.
[0085] In some embodiments, the obtaining module 420 is further configured to: in response to a second input control in the set of input controls indicating that the first node corresponds to a first question type, determine parameter description information via at least one third input control in the set of input controls, the parameter description information indicating at least one parameter to be determined based on the response content. In some embodiments, the obtaining module 420 is further configured to: in response to a second input control in the set of input controls indicating that the first node corresponds to a first question type, determine parameter description information via at least one third input control in the set of input controls, the parameter description information indicating at least one parameter to be determined based on the response content.
[0086] In some embodiments, the apparatus 400 further includes a providing module configured to, during execution of the target workflow, provide, in response to the parameter value of the at least one parameter being determined based on the response content, the parameter value of the at least one parameter to a third node associated with the first node.
[0087] In some embodiments, the obtaining module 420 is further configured to, in response to the second input control in the set of input controls indicating that the first node corresponds to the second question type, determine, via at least a fourth input control in the set of input controls, a set of candidate answers for the target question.
[0088] In some embodiments, the configuration information further indicates a first action triggered for execution by the target candidate answer in the set of candidate answers and / or a second action triggered for execution when none of the set of candidate answers matches.
[0089] In some embodiments, the node connection graph includes a connection element between the target candidate answer and the fourth node, the connection element indicating that the target candidate answer triggers the fourth node to be executed.
[0090] In some embodiments, the apparatus 400 further includes a presenting module configured to, during execution of the target workflow, present, in response to the first node being triggered, the target question and the set of candidate answers.
[0091] In some embodiments, the response content includes: a selection of at least one candidate answer in the set of candidate answers; or a response message input by the user.
[0092] FIG. 5 illustrates a block diagram of an electronic device 500 in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device 500 illustrated in FIG. 5 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 500 illustrated in FIG. 5 can be used to implement the electronic device 110 of FIG. 1.
[0093] As shown in FIG. 5, the electronic device 500 is in the form of a general electronic device. The components of the electronic device 500 can include, but are not limited to, one or more processing units or processors 510, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processor 510 can be a real or virtual processor and is capable of performing various processing according to programs stored in the memory 520. In a multi-processor system, multiple processors perform computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 500.
[0094] The electronic device 500 typically includes a plurality of computer storage media. Such media can be any available media that is accessible by the electronic device 500 and includes both volatile and nonvolatile media, removable and non-removable media. The memory 520 can be volatile (such as register, cache, RAM), non-volatile (such as ROM, EEPROM, flash memory), or some combination of the two. The storage device 530 can be a removable or non-removable media, and can include machine-readable media, such as flash drives, magnetic disks, or any other media that can be used to store information and / or data and that can be accessed by the electronic device 500.
[0095] The electronic device 500 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk (e.g., a CD-ROM) can be provided. In such instances, each drive can be connected to the bus (not shown) by one or more data media interfaces. The memory 520 can include a computer program product 525 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.
[0096] The communication unit 540 enables communication with other electronic devices over communication media. Additionally, the functionality of the components of the electronic device 500 can be implemented in a single computing cluster or a plurality of computer machines capable of communication over a communication connection. Thus, the electronic device 500 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes.
[0097] The input device 550 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 560 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 can also communicate with one or more external devices (not shown) such as a storage device, a display device, etc. through the communication unit 540, as needed, one or more devices that enable a user to interact with the electronic device 500, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 500 to communicate with one or more other electronic devices. Such communication can be carried out via an input / output (I / O) interface (not shown).
[0098] According to an example implementation of the present disclosure, a computer readable storage medium is provided having computer executable instructions stored thereon, where the computer executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided that is tangibly stored on a non-transitory computer readable medium and includes computer executable instructions, where the computer executable instructions are executed by a processor to implement the method described above.
[0099] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0100] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable storage medium. The instructions stored on the computer readable storage medium can be used to program a computer, a programmable data processing apparatus, and / or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0101] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0102] The computer program product of the present disclosure can have a signal including said computer program. This signal can be electronic, electromagnetic, optical, or any other suitable type of signal. Such a signal can be provided through a communication connection, such as electrical wiring, optical fiber, wireless interface, etc. Examples of computer program products include computer program implemented on a personal computer, server, or other networked device. A non-transitory computer readable medium, such as a floppy disk, CD-ROM, DVD-ROM, Blu-ray Disc, hard disk drive, or any other suitable non-transitory computer readable medium can store the computer program product.
[0103] Having described several implementations of the present disclosure, it will be clear to those skilled in the art that many modifications, additions, and substitutions are possible without departing from the scope and spirit of the described implementations. Many modifications and variations of the present disclosure are possible in light of the above teachings. It is, therefore, to be understood that within the scope of the appended claims, the present disclosure can be practiced otherwise than as specifically described. While the present disclosure has been described with reference to the implementation figures, it will be understood by those skilled in the art that various changes can be made and equivalents can be substituted for elements thereof without departing from the scope of the present disclosure. In addition, many modifications can be made to adapt a particular situation or material to the teachings of the disclosure without departing from its scope. Therefore, it is contemplated to cover any and all adaptations and modifications falling within the scope of the appended claims. It should also be understood that the terminology used herein is for the purpose of describing particular implementations only and is not intended to be limiting.
Claims
1. A method of creating a workflow, comprising: adding, in response to a received editing operation, a first node associated with a question-answer interaction to a node connection graph; acquiring, via a set of input controls associated with the first node, configuration information of the first node, the configuration information indicating: a target question to be provided when the first node is triggered, and a target action to be performed based on response content of the target question by the first node; and creating, based on the node connection graph, a target workflow.
2. The method of claim 1, wherein adding, in response to a received editing operation, a first node associated with a question-answer interaction to a node connection graph comprises: presenting a plurality of interface elements corresponding to a plurality of node types; and adding, in response to a selection of a target interface element of the plurality of interface elements, the first node to the node connection graph, the target interface element corresponding to a question-answer node.
3. The method of claim 1, wherein acquiring, via a set of input controls associated with the first node, configuration information of the first node comprises: acquiring, via a first input control of the set of input controls, a question description text; and determining, based on the question description text, the target question to be provided when the first node is triggered.
4. The method of claim 3, wherein the question description text references a target data object in a second node associated with the first node.
5. The method of claim 1, wherein acquiring, via a set of input controls associated with the first node, configuration information of the first node comprises: in response to a second input control of the set of input controls indicating that the first node corresponds to a first question type, determining, via at least one third input control of the set of input controls, parameter description information indicating at least one parameter to be determined based on the response content.
6. The method of claim 5, further comprising: during execution of the target workflow, in response to a parameter value of the at least one parameter being determined based on the response content, providing the parameter value of the at least one parameter to a third node associated with the first node.
7. The method of claim 1, wherein acquiring, via a set of input controls associated with the first node, configuration information of the first node comprises: in response to a second input control of the set of input controls indicating that the first node corresponds to a second question type, determining, via at least one fourth input control of the set of input controls, a set of candidate answers for the target question.
8. The method of claim 7, wherein the configuration information further indicates: a first action to be performed triggered by a target candidate answer of the set of candidate answers; and / or a second action to be performed triggered when none of the set of candidate answers matches.
9. The method of claim 8, wherein the node connection graph comprises a connection element between the target candidate answer and a fourth node, the connection element indicating that the target candidate answer triggers the fourth node to be performed. 10. The method of claim 7, further comprising: presenting, in response to the first node being triggered, the target question and the set of candidate answers during execution of the target workflow.
11. The method of claim 10, wherein the response content comprises: selection of at least one candidate answer in the set of candidate answers; or a user-input response message.
12. An apparatus for creating a workflow, comprising: an adding module configured to add, in response to a received edit operation, a first node associated with a question-and-answer interaction to a node connection graph; an obtaining module configured to obtain, via a set of input controls associated with the first node, configuration information of the first node, the configuration information indicating a target question to be provided when the first node is triggered, and a target action to be performed by the first node based on response content of the target question; and a creating module configured to create, based on the node connection graph, a target workflow.
13. An electronic device, comprising: at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions, when executed by the at least one processor, cause the electronic device to perform the method of any of claims 1-11.
14. A computer-readable storage medium having stored thereon a computer program, the computer program being executable by a processor to implement the method of any of claims 1-11.
15. A computer program product tangibly stored in a computer storage medium and comprising computer-executable instructions that, when executed by a device, cause the device to perform the method of any of claims 1-11.
Citation Information
Patent Citations
Radiotherapy workflow editing method and device, computer equipment and storage medium
CN114220520A
Engine configuration method and device, electronic equipment and computer storage medium
CN117407082A
Workflow creation method and device, equipment and storage medium
CN117634865A
Flowchart-style diagramming tool to build automated workflows
US20200201525A1
Dynamic workflow with knowledge graphs
US20210173873A1