CN114564190A - Business generation method and device, electronic equipment and storage medium - Google Patents
Business generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114564190A CN114564190A CN202111600548.6A CN202111600548A CN114564190A CN 114564190 A CN114564190 A CN 114564190A CN 202111600548 A CN202111600548 A CN 202111600548A CN 114564190 A CN114564190 A CN 114564190A
- Authority
- CN
- China
- Prior art keywords
- template
- node
- service
- edited
- receiving
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present disclosure relates to a method, an apparatus, an electronic device and a storage medium for generating a service, wherein the method includes: displaying a template of a flow node in a service in a display interface; receiving an editing operation on node information of the template to obtain an edited template, wherein the node information comprises at least one of a node element and identification information of a next node to be jumped; and generating a flow code of the service according to the edited template. Disclosed are embodiments. By setting a corresponding template for the process node of the service and modifying the node information of the template, compared with the prior art in which a process code is configured for each service, the embodiment of the present disclosure can quickly implement the service process code.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a service, an electronic device, and a storage medium.
Background
With the development of computer technology, various online services, such as a service of purchasing a financial product, a service of binding a mobile phone package, and a service of charging a member, have appeared. However, in these various services, each service has its own dedicated process flow. In the related art, the corresponding software codes are developed for the process of each service, which wastes time and labor for a program developer. And the update iteration of the service requires the maintenance and modification of the code, and the traditional service generation method is also extremely difficult in modification and maintenance.
Disclosure of Invention
The disclosure provides a service generation method, a service generation device, electronic equipment and a storage medium. The problems of large workload, time consumption and labor consumption of process development in the related technology are at least solved. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for generating a service is provided, including:
displaying a template of a flow node in a service in a display interface;
receiving an editing operation on node information of the template to obtain an edited template, wherein the node information comprises at least one of a node element and identification information of a next node to be jumped;
and generating a flow code of the service according to the edited template.
In a possible implementation manner, the displaying interface further displays an operation control with node information, and the receiving an editing operation on the node information of the template to obtain an edited template includes:
receiving a selected operation of the template and receiving a trigger operation of the operation control;
and responding to the trigger operation, receiving the editing operation of the node information of the template, and obtaining the edited template.
In a possible implementation manner, the node information further includes display information of a node, and the receiving an editing operation on the node information of the template to obtain an edited template includes:
receiving uploaded data of display information of a node, storing the uploaded data, and obtaining a storage address of the uploaded data;
and taking the storage address as an incoming parameter of the template to obtain an edited template.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a first training sample, wherein the first training sample comprises a corpus sample marked with identification information of a next node;
training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information;
and adding the first intention classification model into the template to obtain an edited template.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a second training sample, wherein the second training sample comprises a corpus sample marked with an operation button corresponding to a next node;
training to obtain a second intention classification model according to the corresponding relation between the corpus samples and the operation buttons;
and adding the second intention classification model into the template to obtain an edited template.
In a possible implementation manner, the flow code of the service is generated according to the edited template,
receiving a dragging sequence of the template, and determining an execution sequence of the flow nodes corresponding to the edited template in the service;
and arranging the edited template according to the execution sequence to generate a flow code of the service.
According to a second aspect of the embodiments of the present disclosure, there is provided a service generation apparatus, including:
the display module is used for displaying the template of the flow node in the business in the display interface;
the editing module is used for receiving the editing operation of the node information of the template to obtain the edited template, wherein the node information comprises at least one of the node elements and the identification information of the next node to be jumped;
and the generating module is used for generating the flow code of the business according to the edited template.
In one possible implementation, the editing module includes:
the first receiving submodule is used for receiving the selected operation of the template and receiving the triggering operation of the operation control;
and the first editing submodule is used for responding to the triggering operation and receiving the editing operation of the node information of the template to obtain the edited template.
In one possible implementation, the editing module includes:
the second receiving submodule is used for receiving uploaded data of the display information of the node, storing the uploaded data and obtaining a storage address of the uploaded data;
and the second editing submodule is used for taking the storage address as an incoming parameter of the template to obtain an edited template.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a first training sample, wherein the first training sample comprises a corpus sample marked with identification information of a next node;
training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information;
and adding the first intention classification model into the template to obtain an edited template.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a second training sample, wherein the second training sample comprises a corpus sample marked with an operation button corresponding to a next node;
training to obtain a second intention classification model according to the corresponding relation between the corpus samples and the operation buttons;
and adding the second intention classification model into the template to obtain an edited template.
In one possible implementation, the generating module includes:
the third receiving submodule is used for receiving the dragging sequence of the template and determining the execution sequence of the flow nodes corresponding to the edited template in the service;
and the generating submodule is used for arranging the edited template according to the execution sequence and generating the flow code of the service.
In one possible implementation manner, the method further includes:
the acquisition module is used for acquiring user operation data after the process code of the service is operated;
the first updating module is used for updating the display position of the operation control in the template according to the user operation data, wherein the operation times of the operation control by the user and the forward degree of the display position of the operation control have a positive correlation;
and the second updating module is used for updating the template according to the operation control after the display position is updated.
According to a third aspect of an embodiment of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for generating a service according to any one of the embodiments of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method for generating a service according to any one of the embodiments of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer program product, which includes instructions, and is characterized in that the instructions, when executed by a processor of an electronic device, enable the electronic device to execute the method for generating a service according to any one of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: disclosed are embodiments. By setting a corresponding template for the process node of the service and modifying the node information of the template, compared with the prior art in which a process code is configured for each service, the embodiment of the present disclosure can quickly implement the service process code. And the node information of the flow nodes is edited by using a mode of introducing a visual interface, so that the operation difficulty of a user is reduced, the display effect of the flow can be previewed in real time after one flow node is edited, the flow is controlled without compiling codes, and the method is simple and easy to operate.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flow chart illustrating a method of generating a service according to an example embodiment.
FIG. 2 is a schematic diagram of a presentation interface shown in accordance with an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating an editing interface for node information according to an example embodiment.
Fig. 4 is a schematic diagram illustrating a traffic tuning architecture in accordance with an example embodiment.
Fig. 5 is a block diagram illustrating an apparatus for generating a service according to an example embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are both information and data that are authorized by the user or sufficiently authorized by various parties.
Fig. 1 illustrates a method for generating a service according to the present disclosure in detail. Fig. 1 is a flowchart of a method of an embodiment of generating a service provided by the present disclosure. Although the present disclosure provides method steps as illustrated in the following examples or figures, more or fewer steps may be included in the method based on conventional or non-inventive efforts. In steps where no necessary causal relationship exists logically, the order of execution of the steps is not limited to that provided by the disclosed embodiments.
Specifically, an embodiment of a method for generating a service provided by the present disclosure is shown in fig. 1, where the method may be applied to a terminal, and includes:
and step S101, displaying the template of the process node in the service in a display interface.
In the embodiment of the present disclosure, the service may include an online service, such as a service of recommending a financial product, a service of binding a mobile phone package, and a service of charging a member. The flow node may include various execution phases of a service, such as: the system comprises an opening white node, an identity verification node, a pre-drawing rule informing node, a purchasing node, a transaction password informing node, a transaction result informing node and the like. Wherein, the open field white node can indicate that a certain product is entered into a promotion stage; the authentication node may represent the stage of verifying whether the customer handling the service is the account himself or herself; the early-fetching rule informing node can indicate that a client is informed in advance to fetch a relevant rule stage; a purchasing node may represent a stage of purchasing a certain product; the transaction password informing node can represent a stage of inputting a transaction password by a user; the transaction result informing node is used for indicating the stage of entering the transaction result. The template for a flow node may comprise a program code template for performing tasks associated with the flow node.
In one example, FIG. 2 is a schematic diagram illustrating a presentation interface in accordance with an exemplary embodiment. Referring to fig. 2, a plurality of templates of flow nodes, such as a template 201, a template 206, etc., are shown in a display interface 200. The position of each template in the interface can be changed in a dragging mode, and a plurality of required templates are put together, so that management is facilitated. In one example, the functionality of a newly created template may also be supported, injecting new functionality for the template.
Step S103, receiving an editing operation on the node information of the template to obtain the edited template, wherein the node information comprises at least one of the node elements and the identification information of the next node to be jumped.
In the embodiment of the present disclosure, the node information may include node elements (node variables), where the node elements represent factors that mainly change between the current business process and other business processes, for example, for an application scenario of recommending a financial product, the node elements may include a fund name, a profit rate, a purchase amount, and the like. The node information may further include that the next node to be jumped may include a next node adjacent to the current node in a traffic flow. The identification information can uniquely identify the next node, and the corresponding relationship with the next node can be established in the forms of numbers, characters and the like. In the embodiment of the present disclosure, the node elements may include multiple types, such as global variable (global), a variable that is effective for the global; local variables (local), similar to variables written in a certain function; a user input variable (user), such as an entered submitted telephone number; date, the time to read the system, etc. In one example, editing operations on node elements may include input operations, and node elements may be submitted to a template in the form of placeholders, such as: {% variable name% }.
Fig. 3 is a schematic diagram illustrating an editing interface for node information according to an example embodiment. Referring to fig. 3, the editing of variable names, variable types, operations, value ranges and the like is included. The editing operation on a node element may also include a pull-down selection of the corresponding node element. In one example, internal fields of variables may be referenced by array, dictionary operations, such as: user name% } or {% $ global.users [0]. userName% } may be used if the user's name needs to be obtained. In one example, a variable may be referenced using scope {% variable name% }, e.g., a global scope has a field phone, and then the corresponding value may be referenced using ({ $ global.
In the embodiment of the present disclosure, referring to fig. 2, the editing operation of the identification information of the next node to be skipped may include connecting the template of the current node with the template of the next node in a wired manner, for example, in the template 201, the control 204 is used for connecting the previous node, the control 203 is used for connecting the next node, and the control 203 is used for connecting with the control of the next node to be skipped. In another example, the identification information of the node to be jumped next may be directly entered in the template of the current node.
And step S105, generating a flow code of the service according to the edited template.
In the embodiment of the present disclosure, since the edited templates include node information, the execution sequence of each template is also determined, and the edited templates can be spliced into a completed flow code according to the execution sequence.
Disclosed are embodiments. By setting a corresponding template for the process node of the service and modifying the node information of the template, compared with the prior art in which a process code is configured for each service, the embodiment of the present disclosure can quickly implement the service process code. And the node information of the flow nodes is edited by using a mode of introducing a visual interface, so that the operation difficulty of a user is reduced, the display effect of the flow can be previewed in real time after one flow node is edited, the flow is controlled without compiling codes, and the method is simple and easy to operate.
In a possible implementation manner, the displaying interface further displays an operation control with node information, and the receiving an editing operation on the node information of the template to obtain an edited template includes:
receiving a selected operation of the template and receiving a trigger operation of the operation control;
and responding to the trigger operation, receiving the editing operation of the node information of the template, and obtaining the edited template.
In the embodiment of the present disclosure, referring to fig. 2, templates corresponding to a plurality of process nodes are displayed in a display interface, and for a template to be edited currently, a selection operation may be performed first, for example, a certain template is clicked to indicate that the template is selected. The operation control showing the node information in the showing interface may include: and clicking the variable operation control to display an editing interface of the node information, as shown in fig. 3, further editing the node elements in the node information. The operation controls can also comprise a label control, a dynamic label control and a custom label, and are used for setting a related label for the process node; the operation controls can also comprise a text control and a button control, and the text control and the button control are used for setting related text content and button control for the process node; the operation control can also comprise an information input control for providing an information input dialog box for the process node; the operation control can also comprise a digital human start node for setting the display sequence of the process node and the like.
According to the embodiment of the disclosure, the display interface is provided with various types of operation controls of node information, and is used for setting and perfecting the node flow, and interactive operation is performed in a visual mode, so that the node flow of the business is more personalized.
In a possible implementation manner, the node information further includes display information of a node, and the receiving an editing operation on the node information of the template to obtain an edited template includes:
receiving uploaded data of display information of a node, storing the uploaded data, and obtaining a storage address of the uploaded data;
and taking the storage address as an incoming parameter of the template to obtain an edited template.
In the embodiment of the present disclosure, the display information of the node may include content information that the node needs to display, and the display form includes, but is not limited to, audio, video, text, pictures, animation expressions, and the like. In one example, the presentation data can be uploaded from a picture control, an audio control, a video control, a text control, a picture control, or an animated expression control, respectively, of the operational control. In another example, the data such as audio, video, text, picture, animation expression and the like to be uploaded can be uploaded to the corresponding process node template through the form element control at one time. And obtaining a storage address of the uploaded data by storing the uploaded data, and using the storage address as an incoming parameter of the template, so that the display information of the corresponding node of the template is displayed when the template code runs.
According to the method and the device, the node display information uploading function is provided, so that a user can conveniently upload display information such as audio, video, text, pictures, animation expressions and the like, the user does not need to modify the flow codes, the change of the display content of the flow nodes can be realized through visual uploading operation, and the convenience of operation is improved.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a first training sample, wherein the first training sample comprises a corpus sample marked with identification information of a next node;
training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information;
and adding the first intention classification model into the template to obtain an edited template.
In the embodiment of the present disclosure, the corpus sample includes a speech sample, such as a piece of audio, and the corpus sample may also include a text sample. Training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information, wherein the training comprises the following steps: constructing a first intention classification model, wherein training parameters are set in the first intention classification model; inputting the corpus samples into the first intention classification model to generate a prediction result; iteratively adjusting the training parameters based on the difference between the prediction result and the identification of the next node to be labeled until the difference meets a preset requirement, thereby obtaining the first intention classification model. And adding the first intention classification model into the template to obtain an edited template.
According to the embodiment of the disclosure, by training the first intention classification model, when a user interacts with a voice or a text, the user can predict and hit a certain intention (a next node to be skipped) through the first intention classification model, and compared with the traditional method of fixing the execution sequence of each node through a connection line, the embodiment of the disclosure can identify the corpus information of the user and drive the user to skip to the next node (which can be a discontinuous node), so that the service flow is more intelligent.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a second training sample, wherein the second training sample comprises a corpus sample marked with an operation button corresponding to a next node;
training to obtain a second intention classification model according to the corresponding relation between the corpus samples and the operation buttons;
and adding the second intention classification model into the template to obtain an edited template.
In the embodiment of the present disclosure, the operation button corresponding to the next node may be set through an operation control of the display interface. The training to obtain a second intention classification model according to the corresponding relationship between the corpus samples and the operation buttons may include: constructing a second intention classification model, wherein training parameters are set in the second intention classification model; inputting the corpus samples into the second intention classification model to generate a prediction result; and iteratively adjusting the training parameters based on the difference between the prediction result and the labeled operation button until the difference meets a preset requirement to obtain the second intention classification model. And adding the second intention classification model into the template to obtain an edited template.
According to the embodiment of the disclosure, by training the second intention classification model, when a user performs voice or text interaction, the user can predict and hit a certain button through the second intention classification model and then enter a next node corresponding to the button.
In a possible implementation manner, the flow code of the service is generated according to the edited template,
receiving a dragging sequence of the template, and determining an execution sequence of the flow nodes corresponding to the edited template in the service;
and arranging the edited template according to the execution sequence to generate a flow code of the service.
In the embodiment of the present disclosure, referring to fig. 2, a template 201 includes a control 203 and a control 204, where the control 203 may be connected to the control 204 corresponding to the previous template, and the control 204 may be connected to the control 203 corresponding to the next template. In one example, a connection between two templates can be established by dragging.
In an example, the execution sequence of the flow nodes corresponding to the edited template is determined by a dragging mode, which may be used as a default node skipping mode, that is, the execution is performed according to the default sequence when the user has no voice instruction or manual operation. When the intention model predicts the next node to be jumped to of the user, the jump instruction can jump to the next node predicted by the intention model directly according to the default execution sequence. When a button that a user triggers a certain next node is received, the priority of the manual operation instruction is larger than that of the next node predicted by the intention model.
According to the embodiment of the disclosure, the execution sequence of the flow nodes of the service can be determined conveniently and quickly by receiving the dragging sequence of the template and determining the execution sequence of the flow nodes corresponding to the edited template in the service.
In a possible implementation manner, after the generating a flow code of the service according to the edited template, the method further includes:
acquiring user operation data after the process code of the service is operated;
updating the display position of the operation control in the template according to the user operation data, wherein the operation times of the user on the operation control and the forward degree of the display position of the operation control have a positive correlation;
and updating the template according to the operation control after the display position is updated.
In the embodiment of the disclosure, after the business process code runs for a period of time, some user operation data are accumulated. According to the user operation data, for example, the buttons with the highest click rate are automatically placed at the most prominent positions (the most front positions) according to the user operation data, and the user click rate is very low for some buttons, so that the buttons are automatically placed at the back or deleted. In one example, a value model may be trained based on the operational data, analyzing each flow node, and scoring each button the higher. In one example, the content which the user is interested in can be predicted according to the label of the user, the branch which the user is interested in is recommended, and the conversion rate is improved in a marketing scene.
Fig. 4 is a schematic diagram illustrating a traffic tuning architecture in accordance with an example embodiment. Referring to fig. 4, the tuning architecture may include: an application layer, an interface layer, an algorithm layer and a data layer. The application layer builds a mobile web end through an H5 framework, compiles a draggable component based on a React technology, adopts a React-simple scheme, utilizes H5 to drag and drop API, sets draggable elements, binds an ondragover and an ondrop event on a target container by using ondragstart time and setData, and then realizes a drag ordering mechanism through React-dnd. And meanwhile, configuring data, index attributes and the like required by the assembly, generating a json file corresponding to the page configuration through a front-end editor, enabling the server side to be responsible for accessing the json data, and acquiring corresponding json from the server side according to a build when the front end is required to be displayed and rendered, and delivering the json to a front-end template for processing. And subsequently, optimizing the node button sequencing through iteration and data feedback, and the like. The interface layer utilizes a Springboot technology, the problems of version conflict of the dependent package, instability of citation and the like are well solved by integrating a large number of frames, and interfaces such as a rest interface for inquiring each node and a value score of each button are externally provided in a containerization deployment mode. The algorithm layer comprises Query vectorization: each word is represented by a very long vector, the dimension of the vector is the size of a word list, most elements of the vector are 0, only one dimension has a value of 1, and the dimension represents the current word. Each word is represented by a single vector, the characteristic feature number of the sample is expanded, and the problem that a classifier cannot process discrete data easily is solved; Density-Based Spatial Clustering of Applications with Noise is a relatively representative Density-Based Clustering algorithm. Unlike the partitioning and hierarchical clustering method, it defines clusters as the maximum set of points connected in density, can partition areas with high enough density into clusters, and can find clusters of any shape in a noisy spatial database, mainly used for clustering analysis of user speech and analyzing the problem classes of interest to the user. Recording each sentence spoken in the session or a certain click operation of the user; session: recording the user source, from which platform some portrait data of the user is in the chat process, when the user jumps between Web pages of the application program, the variables stored in the Session object will not be lost, but will exist all the time in the whole user Session. When a user requests a Web page from an application, the Web server will automatically create a Session object if the user has not already a Session. When a session expires or is abandoned, the server will terminate the session. One of the most common uses of Session objects is to store user preferences. For example, if the user indicates that the user does not like to view the graphic, this information may be stored in the Session object; image data: through the information overview of the user label second-come back, an enough data basis is provided for further accurately and quickly analyzing important information such as user behavior habits and consumption habits, and through cookie-mapping, the data of the user and the internal data of the background are communicated and combined for modeling.
It should be understood that, although the above steps are described in sequence, the steps are not necessarily performed in the order in which the steps are described. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or at least partially with other steps or with steps or stages in other steps.
It is understood that the same/similar parts between the embodiments of the method described above in this specification can be referred to each other, and each embodiment focuses on the differences from the other embodiments, and it is sufficient that the relevant points are referred to the descriptions of the other method embodiments.
Fig. 5 is a block diagram illustrating an apparatus for generating a service according to an example embodiment. Referring to fig. 5, the apparatus includes: a display module 501, configured to display a template of a flow node in a service in a display interface;
an editing module 502, configured to receive an editing operation on node information of the template to obtain an edited template, where the node information includes at least one of a node element and identification information of a next node to be skipped;
a generating module 503, configured to generate a flow code of the service according to the edited template.
In one possible implementation, the editing module includes:
the first receiving submodule is used for receiving the selected operation of the template and receiving the triggering operation of the operation control;
and the first editing submodule is used for responding to the triggering operation and receiving the editing operation of the node information of the template to obtain the edited template.
In one possible implementation, the editing module includes:
the second receiving submodule is used for receiving uploaded data of the display information of the node, storing the uploaded data and obtaining a storage address of the uploaded data;
and the second editing submodule is used for taking the storage address as an incoming parameter of the template to obtain an edited template.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a first training sample, wherein the first training sample comprises a corpus sample marked with identification information of a next node;
training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information;
and adding the first intention classification model into the template to obtain an edited template.
In a possible implementation manner, the editing manner of the next node to be skipped includes:
acquiring a second training sample, wherein the second training sample comprises a corpus sample marked with an operation button corresponding to a next node;
training to obtain a second intention classification model according to the corresponding relation between the corpus samples and the operation buttons;
and adding the second intention classification model into the template to obtain an edited template.
In one possible implementation, the generating module includes:
the third receiving submodule is used for receiving the dragging sequence of the template and determining the execution sequence of the flow nodes corresponding to the edited template in the service;
and the generating submodule is used for arranging the edited template according to the execution sequence and generating the flow code of the service.
In one possible implementation manner, the method further includes:
the acquisition module is used for acquiring user operation data after the process code of the service is operated;
the first updating module is used for updating the display position of the operation control in the template according to the user operation data, wherein the operation times of the operation control by the user and the forward degree of the display position of the operation control have a positive correlation;
and the second updating module is used for updating the template according to the operation control after the display position is updated.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an electronic device 600 for a method of generating a service according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 6, electronic device 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, interface to input/output (I/O) 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
The multimedia component 608 includes a screen providing an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 600 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the electronic device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or components of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the electronic device 600 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided that includes instructions executable by the processor 620 of the electronic device 600 to perform the above-described method.
It should be noted that the descriptions of the above-mentioned apparatus, the electronic device, the computer-readable storage medium, the computer program product, and the like according to the method embodiments may also include other embodiments, and specific implementations may refer to the descriptions of the related method embodiments, which are not described in detail herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (17)
1. A method for generating a service, comprising:
displaying a template of a process node in a service in a display interface;
receiving an editing operation on node information of the template to obtain the edited template, wherein the node information comprises at least one of a node element and identification information of a next node to be jumped;
and generating a flow code of the service according to the edited template.
2. The method according to claim 1, wherein an operation control of node information is further displayed in the display interface, and the receiving an editing operation on the node information of the template to obtain an edited template includes:
receiving a selected operation of the template and receiving a trigger operation of the operation control;
and responding to the trigger operation, receiving the editing operation of the node information of the template, and obtaining the edited template.
3. The method according to claim 1, wherein the node information further includes display information of nodes, and the receiving an editing operation on the node information of the template to obtain an edited template includes:
receiving uploaded data of display information of a node, storing the uploaded data, and obtaining a storage address of the uploaded data;
and taking the storage address as an incoming parameter of the template to obtain an edited template.
4. The method according to claim 1, wherein the editing mode of the next node to be jumped comprises:
acquiring a first training sample, wherein the first training sample comprises a corpus sample marked with identification information of a next node;
training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information;
and adding the first intention classification model into the template to obtain an edited template.
5. The method according to claim 1, wherein the editing mode of the next node to be jumped comprises:
acquiring a second training sample, wherein the second training sample comprises a corpus sample marked with an operation button corresponding to a next node;
training to obtain a second intention classification model according to the corresponding relation between the corpus samples and the operation buttons;
and adding the second intention classification model into the template to obtain an edited template.
6. The method of claim 1, wherein the generating of the flow code of the business is performed according to the edited template,
receiving a dragging sequence of the template, and determining an execution sequence of the flow nodes corresponding to the edited template in the service;
and arranging the edited template according to the execution sequence to generate a flow code of the service.
7. The method according to any one of claims 1 to 6, wherein after said generating a flow code of the service according to the edited template, further comprising:
acquiring user operation data after the process code of the service is operated;
updating the display position of the operation control in the template according to the user operation data, wherein the operation times of the user on the operation control and the forward degree of the display position of the operation control have a positive correlation;
and updating the template according to the operation control after the display position is updated.
8. An apparatus for generating a service, comprising:
the display module is used for displaying the template of the flow node in the business in the display interface;
the editing module is used for receiving the editing operation of the node information of the template to obtain the edited template, wherein the node information comprises at least one of the node elements and the identification information of the next node to be jumped;
and the generating module is used for generating the flow code of the business according to the edited template.
9. The apparatus of claim 8, wherein the editing module comprises:
the first receiving submodule is used for receiving the selected operation of the template and receiving the triggering operation of the operation control;
and the first editing submodule is used for responding to the triggering operation and receiving the editing operation of the node information of the template to obtain the edited template.
10. The apparatus of claim 8, wherein the editing module comprises:
the second receiving submodule is used for receiving uploaded data of the display information of the node, storing the uploaded data and obtaining a storage address of the uploaded data;
and the second editing submodule is used for taking the storage address as an incoming parameter of the template to obtain an edited template.
11. The apparatus of claim 8, wherein the editing mode of the next node to be jumped comprises:
acquiring a first training sample, wherein the first training sample comprises a corpus sample marked with identification information of a next node;
training to obtain a first intention classification model according to the corresponding relation between the corpus samples and the identification information;
and adding the first intention classification model into the template to obtain an edited template.
12. The apparatus of claim 8, wherein the editing mode of the next node to be jumped comprises:
acquiring a second training sample, wherein the second training sample comprises a corpus sample marked with an operation button corresponding to a next node;
training to obtain a second intention classification model according to the corresponding relation between the corpus samples and the operation buttons;
and adding the second intention classification model into the template to obtain an edited template.
13. The apparatus of claim 8, wherein the generating module comprises:
the third receiving submodule is used for receiving the dragging sequence of the template and determining the execution sequence of the flow nodes corresponding to the edited template in the service;
and the generating submodule is used for arranging the edited template according to the execution sequence and generating the flow code of the service.
14. The apparatus of any one of claims 8 to 13, further comprising:
the acquisition module is used for acquiring user operation data after the process code of the service is operated;
the first updating module is used for updating the display position of the operation control in the template according to the user operation data, wherein the operation times of the operation control by the user and the forward degree of the display position of the operation control have a positive correlation;
and the second updating module is used for updating the template according to the operation control after the display position is updated.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of generating a service of any one of claims 1 to 7.
16. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of generating a service of any one of claims 1 to 7.
17. A computer program product comprising instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the method of generating a service of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111600548.6A CN114564190A (en) | 2021-12-24 | 2021-12-24 | Business generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111600548.6A CN114564190A (en) | 2021-12-24 | 2021-12-24 | Business generation method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114564190A true CN114564190A (en) | 2022-05-31 |
Family
ID=81712812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111600548.6A Pending CN114564190A (en) | 2021-12-24 | 2021-12-24 | Business generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114564190A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115495069A (en) * | 2022-09-26 | 2022-12-20 | 煤炭科学研究总院有限公司 | Model-driven coal industry software flow implementation method, device and equipment |
CN116431246A (en) * | 2023-06-13 | 2023-07-14 | 建信金融科技有限责任公司 | Office automation software configuration method and device |
-
2021
- 2021-12-24 CN CN202111600548.6A patent/CN114564190A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115495069A (en) * | 2022-09-26 | 2022-12-20 | 煤炭科学研究总院有限公司 | Model-driven coal industry software flow implementation method, device and equipment |
CN115495069B (en) * | 2022-09-26 | 2024-04-16 | 煤炭科学研究总院有限公司 | Model-driven coal industry software process implementation method, device and equipment |
CN116431246A (en) * | 2023-06-13 | 2023-07-14 | 建信金融科技有限责任公司 | Office automation software configuration method and device |
CN116431246B (en) * | 2023-06-13 | 2023-08-11 | 建信金融科技有限责任公司 | Office automation software configuration method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105068976B (en) | Ticket information display method and device | |
CN107423106A (en) | The method and apparatus for supporting more frame grammars | |
CN114564190A (en) | Business generation method and device, electronic equipment and storage medium | |
CN109961094B (en) | Sample acquisition method and device, electronic equipment and readable storage medium | |
CN113099297B (en) | Method and device for generating click video, electronic equipment and storage medium | |
CN114328838A (en) | Event extraction method and device, electronic equipment and readable storage medium | |
CN112508612A (en) | Method for training advertisement creative generation model and method and related device for generating advertisement creative | |
CN112037756A (en) | Voice processing method, apparatus and medium | |
CN113778301B (en) | Emotion interaction method based on content service and electronic equipment | |
CN112766498B (en) | Model training method and device | |
CN113177419B (en) | Text rewriting method and device, storage medium and electronic equipment | |
CN113157972B (en) | Recommendation method and device for video cover document, electronic equipment and storage medium | |
CN112685641B9 (en) | Information processing method and device | |
CN113010157A (en) | Code generation method and device | |
CN112416751A (en) | Processing method and device for interface automation test and storage medium | |
CN112784151A (en) | Method and related device for determining recommendation information | |
CN114885211B (en) | Media resource template generation method, media resource generation method and device | |
CN113128181B (en) | Information processing method and device | |
CN114218235A (en) | Page text updating method and device, electronic equipment and storage medium | |
CN113946228A (en) | Statement recommendation method and device, electronic equipment and readable storage medium | |
CN113032057A (en) | Interaction method and device and electronic equipment | |
CN116150413B (en) | Multimedia resource display method and device | |
CN113867871B (en) | Interface processing method and device, electronic equipment and storage medium | |
CN112767024B (en) | Advertisement creative generation method and related device | |
CN112988692B (en) | Data processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |