Scene generation method, device, equipment, storage medium and program product
By using RPA robots to automatically execute scene generation methods, the problems of cumbersome scene generation processes and high labor costs in existing technologies are solved, achieving efficient and low-cost automatic scene generation and ensuring rapid response in emergency situations.
Patent Information
- Application Number
- CN202411090409.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2044-08-09
AI Technical Summary
Existing methods for generating scenarios are cumbersome, costly in terms of manpower, and inefficient, which hinders the normal operation of emergency communication support.
The RPA robot is used to automatically generate scenarios. The scenario information is determined by interactive instructions and the scenario type is determined by creation instructions. The target scenario is automatically generated based on a preset process, including exception handling process and knowledge base matching, reducing the reliance on manual intervention.
Improve scene generation efficiency, reduce labor costs, avoid time waste caused by manual creation, and ensure the timeliness and accuracy of emergency response and dispatch.
Smart Images

Figure CN119254638B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a scene generation method, apparatus, device, storage medium, and program product. Background Technology
[0002] Communication failures and emergencies are characterized by their unpredictability, difficulty in automatically locating the center of impact, and difficulty in automatically defining the radius of the protection area. These characteristics bring many negative impacts to the creation and generation of communication emergency support scenarios.
[0003] Due to the complexity and diversity of scenarios, related technologies often require manual creation of scenarios on terminals or web pages.
[0004] However, existing scene generation methods are cumbersome, labor-intensive, and inefficient, which can easily affect the normal operation of emergency communication support work. Summary of the Invention
[0005] This invention provides a scene generation method, apparatus, device, storage medium, and program product to solve the shortcomings of existing scene generation methods, such as cumbersome processes, high labor costs, and low scene generation efficiency.
[0006] This invention provides a scene generation method, comprising: responding to an interaction command, determining scene information based on the interaction command; the scene information including scene parameters required by process nodes in a preset process; responding to a scene creation command, determining a scene type based on the scene creation command; and generating a target scene of the corresponding scene type based on the scene parameters and the preset process.
[0007] According to a scene generation method provided by the present invention, a preset process includes multiple process nodes arranged in a preset order, and scene information includes scene parameters required by multiple process nodes in the preset process; based on the scene parameters and the preset process, a target scene of the corresponding scene type is generated, including: determining the process node corresponding to each scene parameter based on the parameter type of each scene parameter; generating multiple display elements of the corresponding scene type in a preset order based on each scene parameter and the process node corresponding to each scene parameter; and generating a target scene of the corresponding scene type based on each display element.
[0008] According to a scene generation method provided by the present invention, before generating a target scene of a corresponding scene type based on scene parameters and a preset process, the method further includes: creating multiple initial process nodes and determining the parameter type of the scene parameters required for each initial process node; arranging each initial process node in a preset order to obtain a preset process.
[0009] According to a scene generation method provided by the present invention, after arranging each initial process node in a preset order to obtain a preset process, the method further includes: creating a branch process for the preset process; the branch process includes an exception handling process; before generating a target scene of the corresponding scene type based on scene parameters and the preset process, the method further includes: determining whether the scene parameters are abnormal parameters; if the scene parameters are determined to be abnormal parameters, then terminating the generation of the target scene based on the exception handling process in the preset process.
[0010] According to a scene generation method provided by the present invention, before determining whether a scene parameter is an abnormal parameter, the method further includes: mounting a scene creation factor knowledge base; the scene creation factor knowledge base stores multiple parameter types; determining whether a scene parameter is an abnormal parameter includes: determining whether the parameter type of the scene parameter can match the parameter type in the scene creation factor knowledge base; if the parameter type of the scene parameter cannot match the parameter type in the scene creation factor knowledge base, then the scene parameter is determined to be an abnormal parameter.
[0011] According to a scene generation method provided by the present invention, after generating a target scene of a corresponding scene type based on scene parameters and a preset process, the method further includes: generating a front-end page; and displaying the target scene on the front-end page.
[0012] The present invention also provides a scene generation device, comprising: a first determining module, configured to determine scene information based on an interaction command in response to the interaction command; the scene information including scene parameters required for process nodes in a preset process; a second determining module, configured to determine a scene type based on a scene creation command in response to a scene creation command; and a generation module, configured to generate a target scene of the corresponding scene type based on the scene parameters and the preset process.
[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the scene generation methods described above.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the scene generation method as described above.
[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the scene generation method as described above.
[0016] The scene generation method, apparatus, device, storage medium, and program product provided by this invention respond to interactive instructions and determine scene information based on the interactive instructions. The scene information includes scene parameters required for process nodes in a preset process. Responding to a scene creation instruction, the scene type is determined based on the scene creation instruction. Based on the scene parameters and the preset process, a target scene of the corresponding scene type is generated. Through the above method, scene information is determined based on interactive instructions, and the scene type is determined based on scene creation instructions. Since the scene information includes scene parameters required for process nodes in the preset process, a target scene of the corresponding scene type can be automatically generated directly based on the scene parameters and the preset process. This eliminates reliance on manual labor, effectively reduces labor costs, and improves the efficiency of scene generation. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 This is one of the flowcharts illustrating the scene generation method provided by the present invention.
[0019] Figure 2 This is the second flowchart of the scene generation method provided by the present invention.
[0020] Figure 3 This is a schematic diagram of the scene generation device provided by the present invention.
[0021] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0023] It should be noted that in the description of this invention, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly, for example, as a fixed connection, a detachable connection, or an integral connection; a mechanical connection or an electrical connection; a direct connection or an indirect connection through an intermediate medium; or a connection within two elements. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0024] The terms "first," "second," etc., used in this invention are used to distinguish similar objects, not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0025] Please see Figure 1 , Figure 1 This is one of the flowcharts illustrating the scene generation method provided by the present invention. In this embodiment, the scene generation method is applied to an RPA robot and is automatically executed by the RPA robot. The scene generation method includes steps S110 to S130, each step of which is detailed below:
[0026] S110: Responds to interactive commands and determines scene information based on the interactive commands.
[0027] The scenario information includes the scenario parameters required for the process nodes in the preset process.
[0028] Specifically, first create an RPA robot, which is based on robotic process automation technology.
[0029] Robotic process automation (RPA) is a business process automation technology based on software robots and artificial intelligence (AI). An RPA robot can be an application or system that replaces manual operations by mimicking the user's manual actions on a computer device, thereby providing a solution to reduce manual processes.
[0030] RPA robots can be deployed on various systems and terminals, and can simulate manual operation to automatically execute a variety of preset processes and methods.
[0031] In this embodiment, a preset process related to scene generation can be set in the RPA robot, and the RPA robot will automatically execute the preset process to generate the target scene.
[0032] Furthermore, after setting up the RPA robot, users can interact with the RPA robot by inputting interactive commands through their terminal devices.
[0033] Furthermore, the RPA robot responds to interactive commands and determines scene information based on these commands.
[0034] The scenario information includes the scenario parameters required for the process nodes in the preset process.
[0035] S120: In response to the scene creation command, determine the scene type based on the scene creation command.
[0036] Specifically, users can input scene creation commands through terminal devices. These commands can carry relevant information such as scene type. The RPA robot responds to the scene creation commands, extracts relevant information from them, and determines the scene type.
[0037] S130: Generate the target scene of the corresponding scene type based on scene parameters and preset processes.
[0038] Specifically, RPA robots can generate and display target scenarios of corresponding scenario types based on scenario parameters and preset processes.
[0039] The scene generation method provided in this embodiment responds to an interaction command and determines scene information based on the interaction command. The scene information includes scene parameters required for process nodes in a preset process. Responding to a scene creation command, the method determines the scene type based on the scene creation command. Based on the scene parameters and the preset process, a target scene of the corresponding scene type is generated. Through this method, scene information is determined based on the interaction command, and the scene type is determined based on the scene creation command. Since the scene information includes scene parameters required for process nodes in the preset process, a target scene of the corresponding scene type can be automatically generated directly based on the scene parameters and the preset process. This eliminates reliance on manual labor, effectively reducing labor costs and improving the efficiency of scene generation.
[0040] In some embodiments, the preset process includes multiple process nodes arranged in a preset order, and the scenario information includes scenario parameters required for multiple process nodes in the preset process.
[0041] Based on scene parameters and preset processes, a target scene of the corresponding scene type is generated, including: determining the process node corresponding to each scene parameter based on the parameter type of each scene parameter; generating multiple display elements of the corresponding scene type in a preset order based on each scene parameter and the process node corresponding to each scene parameter; and generating a target scene of the corresponding scene type based on each display element.
[0042] Specifically, after determining the scene parameters and scene type, the RPA robot can determine the process node corresponding to each scene parameter based on the parameter type of each scene parameter.
[0043] A complete scene generation process typically involves multiple process nodes, and the scene parameters required for each process node can be different.
[0044] For example, process nodes may include the generated scene name, the latitude and longitude of the generated scene, and the boundary of the generated scene; for the process node "generate scene name", the required parameters include the user-defined name; for the process node "generate scene boundary", the required parameters are the longitude of the scene, the latitude of the scene, and the area radius of the scene.
[0045] Given a pre-defined process, the RPA robot can determine the corresponding process node for each scenario parameter based on the parameter type of each scenario parameter.
[0046] Optionally, parameter types include scenario activities, coverage scope, etc.
[0047] Optionally, scenario activities include conference support, holiday support, emergency drills, and major faults.
[0048] Optionally, the scope of protection includes the regional range, spatial information, etc.; the regional range includes longitude, latitude, the geographical location of the scene, the boundary of the scene, the center of the scene, etc.
[0049] Optionally, the scenario types include major failure scenarios, emergency scenarios, and ordinary event scenarios.
[0050] For example, if the scene parameter is "32 degrees east longitude, 53 degrees north latitude", then the parameter type of the scene parameter is the latitude and longitude of the scene; the RPA robot can determine the corresponding process node as "generate the latitude and longitude of the scene" based on the parameter type of the scene parameter.
[0051] Understandably, there can be multiple scenario parameters, and there are also multiple process nodes corresponding to each scenario parameter. The RPA robot needs to determine the process node corresponding to each scenario parameter.
[0052] Furthermore, based on each scene parameter and the corresponding process node, multiple display elements of the corresponding scene type are generated in a preset order.
[0053] Specifically, the preset process includes multiple process nodes arranged in a preset order. After determining the required scenario parameters for each process node in the preset process, the RPA robot can generate the display elements corresponding to each process node one by one in the preset order. Each display element must meet the requirements of the scenario type, that is, generate multiple display elements corresponding to the scenario type.
[0054] The display elements can be generated based on preset scene templates.
[0055] Optionally, the preset scenario templates include major fault scenario templates, emergency event scenario templates, and ordinary event scenario templates.
[0056] Furthermore, based on each display element, a target scene of the corresponding scene type is generated.
[0057] In some embodiments, before generating a target scene of the corresponding scene type based on scene parameters and a preset process, the method further includes: creating multiple initial process nodes and determining the parameter type of the scene parameters required for each initial process node; arranging each initial process node in a preset order to obtain a preset process.
[0058] Please see Figure 2 , Figure 2 This is the second flowchart of the scene generation method provided by the present invention.
[0059] Since RPA robots need to execute relevant methods according to a preset process, a preset process needs to be set before using an RPA robot to generate a target scenario of the corresponding scenario type.
[0060] like Figure 2 As shown, after creating an RPA robot, you need to add relevant preset process information inside the RPA robot and complete the relevant configuration of the preset process.
[0061] Specifically, the configuration steps for the preset process include: process node creation, process node editing, process node arrangement, process branch setting, and exception handling setting.
[0062] Process node creation: Based on the number of process steps that the RPA robot simulates for human operation, create a corresponding number of initial process nodes.
[0063] Process node editing: For each initial process node, determine the parameter types of the scenario parameters required for that initial process node, such as the parameter types of the input parameters and the parameter types of the output parameters required for the initial process node in a communication emergency support scenario.
[0064] Process node orchestration: The sequence of RPA robot simulating human operation is used as the preset sequence, and each initial process node is arranged in the preset sequence to obtain the preset process.
[0065] After completing the configuration of the preset process, users can interact with the RPA robot by inputting interactive commands through the terminal device.
[0066] For example, users can enter interactive commands through a desktop chat room on an internal enterprise terminal device, guided by the RPA robot.
[0067] Furthermore, the RPA robot responds to interactive commands to determine scene information based on the interactive commands, and responds to scene creation commands to determine the scene type based on the scene creation commands; based on scene parameters and preset processes, it generates a target scene of the corresponding scene type.
[0068] In some embodiments, after arranging each initial process node in a preset order to obtain a preset process, the method further includes: creating a branch process for the preset process; the branch process includes an exception handling process; before generating a target scene of the corresponding scene type based on the scene parameters and the preset process, the method further includes: determining whether the scene parameters are abnormal parameters; if the scene parameters are determined to be abnormal parameters, then terminating the generation of the target scene based on the exception handling process in the preset process.
[0069] Understandably, actual business processes are diverse and complex. Therefore, in addition to the usual preset processes, process branch settings are also required to adapt to changing application scenarios.
[0070] Process branch settings: Create branch processes for preset processes to cope with expanded business scenarios.
[0071] Optionally, the branching process includes an exception handling process.
[0072] Optionally, the branch process does not include exception handling.
[0073] When handling exceptions, exception handling settings need to be configured for the preset process.
[0074] Anomaly handling settings: Configure an anomaly handling process or anomaly handling node for each completed node. When the scene parameters are abnormal parameters (such as erroneous parameters or unrecognizable parameters), the RPA robot can perform subsequent processing based on the anomaly handling process or anomaly handling node to avoid process obstruction and termination of target scene generation.
[0075] In some embodiments, before determining whether a scene parameter is an abnormal parameter, the method further includes: mounting a scene creation factor knowledge base; the scene creation factor knowledge base stores multiple parameter types; determining whether a scene parameter is an abnormal parameter includes: determining whether the parameter type of the scene parameter can match the parameter type in the scene creation factor knowledge base; if the parameter type of the scene parameter cannot match the parameter type in the scene creation factor knowledge base, then the scene parameter is determined to be an abnormal parameter.
[0076] Specifically, before determining whether the scene parameters are abnormal, the scene creation factor knowledge base should be mounted on the user terminal or system.
[0077] Optionally, in terms of mounting method, the knowledge base of scenario creation factors can be mounted through the internal gateway of the telecommunications enterprise, thereby realizing the association between the internal emergency support scenario knowledge base of the telecommunications enterprise and the RPA robot.
[0078] In this embodiment, the scenario creation factor knowledge base refers to a knowledge base created for communication emergency support scenarios such as major network failures and emergencies.
[0079] The scenario creation factor knowledge base is an external knowledge base that can be updated regularly through manual maintenance and other means to include parameter types or scenario creation factors that may be involved in communication emergency support scenarios.
[0080] Furthermore, when determining whether a scene parameter is an abnormal parameter, it is possible to specifically determine whether the parameter type of the scene parameter matches the parameter type in the scene creation factor knowledge base.
[0081] If the parameter type of a scene parameter does not match the parameter type in the scene creation factor knowledge base, then the scene parameter is determined to be an abnormal parameter.
[0082] In some embodiments, after generating a target scene of the corresponding scene type based on scene parameters and a preset process, the method further includes: generating a front-end page; and displaying the target scene on the front-end page.
[0083] Optionally, users can input interactive commands in a pre-defined order through a desktop chat room on an internal enterprise terminal device, using a question-and-answer format. The content of the question-and-answer session must be consistent with the configured pre-defined process.
[0084] An example of human-computer interaction question answering is as follows:
[0085] User input: Create a scene.
[0086] RPA robot asks: Received, please select a scene activity?
[0087] User input: Earthquake.
[0088] RPA robot asks: Received, please select scene information?
[0089] User input: Scenario name is A, protection level is B.
[0090] RPA robot asks: Received, please enter the scene boundaries?
[0091] User input: Longitude X, Latitude Y, Area radius Z.
[0092] RPA robot asks: Received, please select a scene monitoring template?
[0093] User input: Emergency event scenario template.
[0094] RPA robot replied: Received, scene creation completed, please review.
[0095] Users input scene creation commands through a desktop chat window under the guidance of the RPA robot. Based on the obtained scene information, the RPA robot can automatically complete the creation of the target scene in the system background and generate a new web page (front-end page) to display the target scene.
[0096] Compared with existing technologies, the scene generation method provided in this embodiment has at least the following advantages:
[0097] (1) Introducing RPA robots can effectively improve the efficiency of scene generation: When the RPA robot obtains sufficient scene information, it can run automatically in the background of the system and automatically complete the creation of the target scene according to the scene type and preset process. This can effectively improve the efficiency of scene generation, avoid the problem of long time consumption caused by manual scene creation, and thus prevent relevant personnel from missing the golden reaction time of emergency support dispatch, extend the preparation time of emergency support dispatch, and avoid secondary failure of the communication network.
[0098] (2) Guided creation with low technical threshold: Through the question-and-answer guidance of RPA robots, relevant personnel are assisted in creating scenarios through the configured knowledge base and preset processes. No need for the intervention of a large number of professionals, which can reduce the threshold for creating emergency communication support scenarios.
[0099] The present invention also provides a scene generation apparatus. Please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic diagram of the scene generation device provided by the present invention. In this embodiment, the scene generation device includes a first determining module 310, a second determining module 320, and a generation module 330.
[0100] The first determining module 310 is used to respond to the interaction command and determine the scene information based on the interaction command.
[0101] Scene information includes the scene parameters required for the process nodes in the preset process;
[0102] The second determining module 320 is used to determine the scene type based on the scene creation command in response to the scene creation command.
[0103] The generation module 330 is used to generate a target scene of the corresponding scene type based on scene parameters and preset processes.
[0104] In some embodiments, the preset process includes multiple process nodes arranged in a preset order, and the scenario information includes scenario parameters required for multiple process nodes in the preset process.
[0105] The generation module 330 is also used to determine the process node corresponding to each scene parameter based on the parameter type of each scene parameter; generate multiple display elements corresponding to the scene type according to a preset order based on each scene parameter and the process node corresponding to each scene parameter; and generate a target scene of the corresponding scene type based on each display element.
[0106] In some embodiments, the generation module 330 is further configured to create multiple initial process nodes and determine the parameter type of the scenario parameters required for each initial process node; and arrange each initial process node in a preset order to obtain a preset process.
[0107] In some embodiments, the generation module 330 is further configured to create a branch process for a preset process; the branch process includes an exception handling process.
[0108] The generation module 330 is also used to determine whether the scene parameters are abnormal parameters; if the scene parameters are determined to be abnormal parameters, the generation of the target scene is terminated based on the abnormal handling process in the preset process.
[0109] In some embodiments, the generation module 330 is also used to mount a scene creation factor knowledge base; the scene creation factor knowledge base stores multiple parameter types.
[0110] In some embodiments, the generation module 330 is further configured to determine whether the parameter type of the scene parameter can match the parameter type in the scene creation factor knowledge base; if the parameter type of the scene parameter cannot match the parameter type in the scene creation factor knowledge base, then the scene parameter is determined to be an abnormal parameter.
[0111] In some embodiments, the generation module 330 is further configured to generate a front-end page and display the target scene on the front-end page.
[0112] The present invention also provides an electronic device, Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 4 As shown, the electronic device may include a processor 410, a communications interface 420, a memory 430, and a communication bus 440. The processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions stored in the memory 430 to execute a scene generation method.
[0113] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0114] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the scene generation methods provided by the above methods.
[0115] The present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the scene generation methods provided by the above methods.
[0116] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0117] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A scene generation method, characterized in that, include: In response to an interaction command, scene information is determined based on the interaction command; The scenario information includes the scenario parameters required for the process nodes in the preset process; In response to a scene creation command, the scene type is determined based on the scene creation command; Based on the scene parameters and the preset process, a target scene corresponding to the scene type is generated; The preset process includes multiple process nodes arranged in a preset order, and the scene information includes scene parameters required for multiple process nodes in the preset process. The step of generating a target scene corresponding to the scene type based on the scene parameters and the preset process includes: Based on the parameter type of each scenario parameter, determine the process node corresponding to each scenario parameter; Based on each scene parameter and the corresponding process node, multiple display elements corresponding to the scene type are generated in a preset order. Based on each of the aforementioned display elements, a target scene corresponding to the aforementioned scene type is generated.
2. The scene generation method according to claim 1, characterized in that, Before generating the target scene corresponding to the scene type based on the scene parameters and the preset process, the method further includes: Create multiple initial process nodes and determine the parameter types of the scenario parameters required for each initial process node; Each initial process node is arranged in a preset order to obtain the preset process.
3. The scene generation method according to claim 2, characterized in that, After arranging each initial process node according to a preset order to obtain the preset process, the method further includes: Create a branch process for the preset process; the branch process includes an exception handling process. Before generating the target scene corresponding to the scene type based on the scene parameters and the preset process, the method further includes: Determine whether the scene parameters are abnormal parameters; If the scene parameter is determined to be an abnormal parameter, the generation of the target scene is terminated based on the abnormal handling process in the preset process.
4. The scene generation method according to claim 3, characterized in that, Before determining whether the scene parameter is an abnormal parameter, the method further includes: A scenario creation factor knowledge base is mounted; the scenario creation factor knowledge base stores various parameter types. The step of determining whether the scene parameter is an abnormal parameter includes: Determine whether the parameter type of the scene parameter matches the parameter type in the scene creation factor knowledge base; If the parameter type of the scenario parameter cannot match the parameter type in the scenario creation factor knowledge base, then the scenario parameter is determined to be an abnormal parameter.
5. The scene generation method according to claim 1, characterized in that, After generating the target scene corresponding to the scene type based on the scene parameters and the preset process, the process further includes: Generate the front-end page; The target scene is displayed on the front-end page.
6. A scene generation device, characterized in that, include: The first determining module is used to determine scene information based on the interaction command in response to the interaction command; The scenario information includes the scenario parameters required for the process nodes in the preset process; The second determining module is used to determine the scene type based on the scene creation instruction in response to the scene creation instruction; The generation module is used to generate a target scene corresponding to the scene type based on the scene parameters and the preset process; The preset process includes multiple process nodes arranged in a preset order, and the scene information includes scene parameters required for multiple process nodes in the preset process. The generation module is used to determine the process node corresponding to each scene parameter based on the parameter type of each scene parameter. Based on each scene parameter and the corresponding process node, multiple display elements corresponding to the scene type are generated in a preset order. Based on each of the aforementioned display elements, a target scene corresponding to the aforementioned scene type is generated.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the scene generation method as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the scene generation method as described in any one of claims 1 to 5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the scene generation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Scene library construction method and device, equipment and storage medium
CN115687163A
Business scene configuration method and device, computer equipment and storage medium
CN115775138A