RPA script generation method and device, terminal equipment and storage medium
By obtaining the natural language instructions input by the user for part-of-speech tagging and dependency analysis, RPA scripts are automatically generated, which solves the complex and low-efficiency problems of traditional RPA script development and achieves high-quality and efficient script generation.
Patent Information
- Application Number
- CN202411282991.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional RPA script development requires professional and technical personnel to write and maintain, resulting in high costs and slow technology popularization, and the development process is complex and inefficient.
By obtaining the natural language instructions input by the user, performing part-of-speech tagging and dependency analysis, and automatically generating RPA scripts, lowering the technical threshold and improving generation efficiency.
It realizes automatic generation of high-quality RPA scripts, reduces development complexity and cost, and improves script generation efficiency and universality.
Smart Images

Figure CN118796168A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information processing technology, and in particular, relates to a method, apparatus, terminal device and storage medium for generating an RPA script. Background Art
[0002] RPA (Robotic Process Automation) is a technology that uses software robots or artificial intelligence to perform daily office tasks.
[0003] Traditional RPA script development usually requires professional technicians to write and maintain, which not only increases the operating costs of enterprises, but also limits the rapid deployment and popularization of RPA technology. Therefore, how to lower the technical threshold of RPA script development and improve the efficiency and universality of script development has become an urgent problem to be solved in the industry. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a method, apparatus, terminal device and storage medium for generating an RPA script, which can solve the problems of complex and low efficiency of the RPA script development process in the related art.
[0005] In a first aspect, an embodiment of the present application provides a method for generating an RPA script, including: Obtain natural language instructions input by the user; Perform part-of-speech tagging on the natural language instructions to obtain the part-of-speech of each word in the natural language instructions; Perform dependency analysis based on words and parts of speech to obtain corresponding execution steps; Convert execution steps into RPA scripts.
[0006] In a second aspect, an embodiment of the present application provides a device for generating an RPA script, including: An acquisition module, used to acquire natural language instructions input by a user; A tagging module is used to tag the natural language instructions with parts of speech to obtain the part of speech of each word in the natural language instructions; The parsing module is used to perform dependency parsing based on words and parts of speech to obtain corresponding execution steps; The conversion module is used to convert execution steps into RPA scripts.
[0007] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned RPA script generation method when executing the computer program.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned RPA script generation method are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the above-mentioned RPA script generation method.
[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the natural language instructions input by the user, and perform part-of-speech tagging on the natural language instructions to obtain the part-of-speech of each word in the natural language instructions, and then perform dependency parsing based on the words and parts of speech to obtain the corresponding execution steps, and convert the execution steps into RPA scripts. The embodiments of the present application can perform dependency parsing on natural language instructions to obtain the corresponding execution steps, thereby realizing automatic generation of RPA scripts, which can improve the generation quality and generation efficiency of RPA scripts. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0012] Figure 1 It is a schematic diagram of the implementation flow of the RPA script generation method provided in an embodiment of the present application.
[0013] Figure 2 It is a structural diagram of an RPA script generation method device provided in an embodiment of the present application.
[0014] Figure 3 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are protected by the present application.
[0016] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specification and drawings of the present application, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.
[0017] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0018] RPA (Robotic Process Automation) is a technology that uses software robots or artificial intelligence to perform daily office tasks.
[0019] Traditional RPA script development usually requires professional technicians to write and maintain, which not only increases the operating costs of enterprises, but also limits the rapid deployment and popularization of RPA technology. Therefore, how to lower the technical threshold of RPA script development and improve the efficiency and universality of script development has become an urgent problem to be solved in the industry.
[0020] In view of this, the embodiments of the present application provide a method, apparatus, terminal device and storage medium for generating an RPA script, which can solve the problems of complex and low efficiency of the RPA script development process in the related art.
[0021] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0022] Figure 1 The present invention provides a schematic diagram of a method for generating an RPA script, which can be applied to a terminal device, such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.
[0023] Specifically, the above RPA script generation method may include the following steps S101 to S104.
[0024] Step S101, obtaining a natural language instruction input by a user.
[0025] Among them, natural language instructions are instructions written by users in human natural language (such as Chinese and English), which can be text and can be used to instruct the RPA system to perform specific tasks.
[0026] In an implementation manner of the present application, a user may input natural language instructions through a graphical user interface, voice recognition or other means, and a terminal device may receive and store these instructions.
[0027] Step S102, performing part-of-speech tagging on the natural language instruction to obtain the part-of-speech of each word in the natural language instruction.
[0028] In an implementation manner of the present application, the terminal device may first segment the natural language instruction, and then perform part-of-speech tagging on the words obtained after the segmentation, thereby obtaining the part-of-speech of each word in the natural language instruction.
[0029] Step S103, performing dependency analysis according to words and parts of speech to obtain corresponding execution steps.
[0030] In an implementation manner of the present application, the terminal device can parse instructions marked with parts of speech to determine the dependency relationships between words in a sentence, such as subject-predicate, verb-object relationships, etc., and derive the operation steps that the RPA system needs to perform based on the dependency relationships.
[0031] Step S104: convert the execution steps into an RPA script.
[0032] In an embodiment of the present application, the terminal device may map the parsed execution steps into operation instructions supported by the RPA platform, and combine these operation instructions into an executable RPA script file according to the grammatical rules of the RPA script.
[0033] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the natural language instructions input by the user, and perform part-of-speech tagging on the natural language instructions to obtain the part-of-speech of each word in the natural language instructions, and then perform dependency parsing based on the words and parts of speech to obtain the corresponding execution steps, and convert the execution steps into RPA scripts. The embodiments of the present application can perform dependency parsing on natural language instructions to obtain the corresponding execution steps, thereby realizing automatic generation of RPA scripts, which can improve the generation quality and generation efficiency of RPA scripts.
[0034] In some specific implementations of the present application, after the natural language instructions are tagged with parts of speech to obtain the part of speech of each word in the natural language instructions, steps S401 to S407 may also be included.
[0035] Step S401, judging whether the natural language instruction is correct according to the words and parts of speech.
[0036] In an implementation manner of the present application, the terminal device may use preset rules or models to perform a preliminary analysis of the natural language instructions after part-of-speech tagging, and check whether there are ambiguities, grammatical errors, or non-compliance with the RPA system execution specifications in the instructions.
[0037] In some more specific implementations, the above-mentioned determination of whether the natural language instruction is accurate based on words and parts of speech may specifically include steps S501 to S504.
[0038] Step S501, performing intent recognition on natural language instructions.
[0039] Step S502: When the second intention is identified, entity recognition is performed on the natural language instruction.
[0040] Step S503, when all entities are identified, logical dependency or analysis is performed on the natural language instructions.
[0041] Step S504: when the logic dependency analysis is successful, it is determined that the natural language instruction is accurate.
[0042] In an embodiment of the present application, a terminal device may identify the intent of a natural language instruction through a trained intent model. If the pre-trained model can identify a clear intent with high confidence, the instruction is considered to be relatively clear. Once the intent is identified, the terminal device may check whether the natural language instruction contains all the key entities (such as time, place, object, etc.) required to complete the task. This can be achieved specifically through named entity recognition (NER) technology. If all necessary entities are successfully identified, the clarity of the instruction can be further confirmed. In addition, the terminal device may also need to analyze logical dependencies or conditions. Specifically, the sentence structure can be parsed to understand conditional statements such as "if...then...". If these dependencies and conditions can be clearly parsed and understood, the instructions are clearer. When the logical dependency analysis is successful, the natural language instruction is determined to be accurate. Conversely, when the intent is not identified, or all entities are not identified, or the logical dependency analysis fails, the natural language instruction can be determined to be inaccurate.
[0043] Step S402: When the corresponding judgment result is inaccurate, semantic recognition is performed on the natural language instruction to obtain the first intention of the natural language instruction.
[0044] In an implementation manner of the present application, when an instruction is judged to be inaccurate, the terminal device can use semantic recognition technology (such as deep learning models, semantic networks, etc.) to conduct an in-depth analysis of the instruction to extract the core intent and key information in the instruction.
[0045] Step S403: Generate information to be confirmed based on the first intention, and display the information to be confirmed to the user.
[0046] In an implementation manner of the present application, the terminal device can generate information to be confirmed based on the results of semantic recognition, such as "Do you want to perform XX task? Please confirm." and display the information to be confirmed to the user in the form of a graphical interface, pop-up window, etc.
[0047] Step S404: Acquire confirmation information input by the user based on the information to be confirmed.
[0048] In an implementation manner of the present application, after viewing the information to be confirmed, the user can provide confirmation information through interface input, selection, or voice.
[0049] Step S405: Collect entity information according to the confirmation information.
[0050] In the implementation mode of the present application, the terminal device can further collect entity information required for executing the task based on the confirmation information provided by the user, and can specifically prompt the user to input through the interface, or automatically obtain from other systems or databases.
[0051] Step S406: verify the confirmation information and entity information.
[0052] In the implementation of the present application, the terminal device can verify the confirmation information provided by the user and the collected entity information to ensure their accuracy, completeness and consistency. Specifically, the verification can be performed using regular expressions, database queries, third-party verification services, etc.
[0053] Step S407: after verification, generate an update natural language instruction.
[0054] In the implementation of the present application, after verification, the terminal device can integrate the confirmation information and entity information into the original natural language instruction to generate an updated instruction. It is understandable that the updated natural language instruction after the update should be clearer and more accurate, so as to meet the execution requirements of the RPA system.
[0055] The implementation method of the present application can ensure that the natural language instructions received by the RPA system are accurate and unambiguous through semantic recognition and user confirmation, thereby improving the accuracy and success rate of task execution. By displaying the information to be confirmed to the user and collecting the confirmation information, the interaction between the user and the system is increased, allowing the user to express his intentions more clearly, while improving the user's sense of control over the task execution process. In addition, multiple verifications are performed before the execution of the instruction, which can timely discover and correct potential errors and reduce task execution failures and rework caused by inaccurate instructions. By introducing advanced functions such as semantic recognition and automatic verification, the RPA system can better understand and execute complex natural language instructions, improving the intelligence level and adaptability of the system.
[0056] In some specific implementations of the present application, the above-mentioned part-of-speech tagging of the natural language instruction to obtain the part-of-speech of each word in the natural language instruction may specifically include step S601 and step S602.
[0057] Step S601, segmenting the natural language instruction to obtain segmented words.
[0058] In an embodiment of the present application, the terminal device may use a word segmentation algorithm (such as dictionary-based word segmentation, statistics-based word segmentation, deep learning-based word segmentation, etc.) to perform word segmentation processing on natural language instructions, thereby obtaining a word segmentation word list after word segmentation.
[0059] Step S602: perform part-of-speech tagging on all segmented words to obtain the parts of speech of all segmented words.
[0060] In an embodiment of the present application, the terminal device may use a part-of-speech tagging tool or algorithm (such as a rule-based method, a statistical method, a deep learning-based method, etc.) to perform part-of-speech tagging on segmented words, thereby assigning a part-of-speech tag to each segmented word and storing it.
[0061] The implementation methods of the present application can more accurately understand the user's intention by performing word segmentation and part-of-speech tagging on natural language instructions, thereby generating an RPA script that better meets the user's expectations.
[0062] In some specific implementations of the present application, the above dependency parsing is performed based on words and parts of speech to obtain corresponding execution steps, which may specifically include steps S701 to S703.
[0063] Step S701, determining the dependency relationship between words and the step execution content according to the words and parts of speech.
[0064] In an embodiment of the present application, the terminal device can use a syntactic analysis algorithm (such as transformation-based dependency grammar analysis, graph-based dependency grammar analysis, etc.) to parse the natural language instructions after part-of-speech tagging to determine the dependency relationship between the words in the sentence, such as subject-predicate, verb-object relationship, etc., and then infer the specific content of each execution step based on the dependency relationship and the meaning of the word itself.
[0065] Step S702, determine the execution order of the steps according to the dependency relationship.
[0066] In the implementation manner of the present application, the terminal device can construct a sentence dependency graph or dependency tree based on the dependency relationship between words, and traverse the dependency graph or tree to determine the sequence of execution steps.
[0067] Step S703, obtaining corresponding execution steps according to the step execution sequence and step execution content.
[0068] In the implementation of the present application, the terminal device can combine the step execution content and the step execution order to form the execution steps in the RPA script. It should be understood that each execution step includes a specific operation or task and the order information for executing the task.
[0069] The implementation method of this application converts natural language instructions into structured execution steps, making the RPA script clearer, easier to understand and maintain. Through syntactic analysis and dependency parsing, more complex natural language instructions can be processed, allowing the RPA system to perform a wider range of more complex tasks.
[0070] In some specific implementations of the present application, the above-mentioned conversion of the execution steps into an RPA script may specifically include step S801 and step S802.
[0071] Step S801, mapping the execution steps to obtain a mapping result.
[0072] In an implementation manner of the present application, the terminal device can analyze the specific content and requirements of each execution step to determine the corresponding commands, functions or operations in the RPA tool or platform, and map the execution steps to these specific commands, functions or operations.
[0073] Step S802: Generate an RPA script according to the mapping result.
[0074] In an embodiment of the present application, the terminal device may write an RPA script based on the mapping result, and specifically may use a scripting language or interface provided by an RPA tool or platform to combine the mapped commands, functions or operations into an executable RPA script.
[0075] The implementation methods of the present application reduce errors and omissions in manually written scripts and improve the accuracy and efficiency of scripts by accurately mapping the execution steps and automatically generating RPA scripts.
[0076] In some specific implementations of the present application, after the execution steps are converted into RPA scripts, steps S901 to S903 may also be included.
[0077] Step S901, setting up a sandbox test environment.
[0078] In the implementation of the present application, the terminal device can prepare the hardware and software resources required for the test and configure the network, database and other environments to simulate the actual production environment, thereby ensuring the security and isolation of the test environment.
[0079] Step S902: Perform unit testing, integration testing, performance testing, user acceptance testing, security testing, and exception testing on the RPA script in the sandbox testing environment to obtain corresponding test results.
[0080] Unit testing is used to test each function or module in the RPA script. Integration testing is used to test the interaction and integration between different modules in the RPA script. Performance testing is used to evaluate the response time and throughput of the RPA script under a specific load. User acceptance testing can be used to invite end users or representatives to conduct tests and collect feedback. Security testing is used to check whether the RPA script has potential security vulnerabilities. Abnormal testing is used to simulate various abnormal situations to test the stability and error handling capabilities of the RPA script.
[0081] Step S903: Optimize the RPA script according to the test result to obtain an optimized RPA script.
[0082] In the implementation of the present application, the terminal device can make necessary modifications and optimizations to the RPA script according to the test results. By solving the problems and defects found, the quality and stability of the RPA script can be improved.
[0083] In some specific implementations of the present application, after converting the execution steps into RPA scripts, step S1001 and step S1002 may also be included.
[0084] Step S1001, deploy the RPA script to the RPA execution environment, and set the execution frequency of the RPA script.
[0085] In the implementation of the present application, the terminal device can deploy the RPA script to the RPA execution environment and configure the execution parameters and dependencies of the RPA script. The execution frequency of the RPA script can also be set according to business needs (such as scheduled execution, event triggering, etc.).
[0086] Step S1002: monitor the RPA script to obtain corresponding monitoring results.
[0087] In the implementation of the present application, the terminal device can use the monitoring function provided by the RPA tool or platform to track the execution status and performance of the RPA script in real time, and collect monitoring data for subsequent analysis and optimization.
[0088] Figure 2 A schematic diagram of the structure of an RPA script generation device provided in an embodiment of the present application is shown. The RPA script generation device 2 can be configured on a terminal device. Specifically, the RPA script generation device 2 can include: The acquisition module 201 is used to acquire the natural language instruction input by the user; A tagging module 202 is used to tag the natural language instruction with a part of speech to obtain the part of speech of each word in the natural language instruction; The parsing module 203 is used to perform dependency parsing according to words and parts of speech to obtain corresponding execution steps; The conversion module 204 is used to convert the execution steps into an RPA script.
[0089] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the natural language instructions input by the user, and perform part-of-speech tagging on the natural language instructions to obtain the part-of-speech of each word in the natural language instructions, and then perform dependency parsing based on the words and parts of speech to obtain the corresponding execution steps, and convert the execution steps into RPA scripts. The embodiments of the present application can perform dependency parsing on natural language instructions to obtain the corresponding execution steps, thereby realizing automatic generation of RPA scripts, which can improve the generation quality and generation efficiency of RPA scripts.
[0090] In some embodiments of the present application, the above-mentioned RPA script generation device 2 also includes a generation module, which is used to judge whether the natural language instruction is accurate based on words and parts of speech; when the corresponding judgment result is inaccurate, the natural language instruction is intended to be recognized to obtain the first intention of the natural language instruction; based on the first intention, information to be confirmed is generated, and the information to be confirmed is displayed to the user; confirmation information input by the user based on the information to be confirmed is obtained; entity information is collected based on the confirmation information; the confirmation information and entity information are verified; after the verification is passed, an update natural language instruction is generated.
[0091] In some implementations of the present application, the above-mentioned tagging module 202 is also used to: segment the natural language instructions to obtain segmented words after segmentation; and perform part-of-speech tagging on all segmented words to obtain the parts of speech of all segmented words.
[0092] In some embodiments of the present application, the above-mentioned parsing module 203 can also be used to: determine the dependency relationship between words and the step execution content based on words and parts of speech; determine the step execution order based on the dependency relationship; and obtain the corresponding execution steps based on the step execution order and step execution content.
[0093] In some implementations of the present application, the above-mentioned conversion module 204 can also be used to: map the execution steps to obtain a mapping result; and generate an RPA script according to the mapping result.
[0094] In some embodiments of the present application, the above-mentioned RPA script generation device 2 also includes a testing module, which is used to: set up a sandbox test environment; perform unit testing, integration testing, performance testing, user acceptance testing, security testing, and exception testing on the RPA script in the sandbox test environment to obtain corresponding test results; optimize the RPA script according to the test results to obtain an optimized RPA script.
[0095] In some embodiments of the present application, the above-mentioned RPA script generation device 2 also includes a monitoring module, which is used to: deploy the RPA script to the RPA execution environment and set the execution frequency of the RPA script; monitor the RPA script to obtain corresponding monitoring results.
[0096] like Figure 3 , which is a schematic diagram of a terminal device provided in an embodiment of the present application. The terminal device 3 may include: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301, such as a program for generating an RPA script. When the processor 301 executes the computer program 303, the steps in the generation embodiment of each RPA script described above are implemented, such as Figure 1 Alternatively, when the processor 301 executes the computer program 303, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 2 The obtained module 201, the labeled module 202, the parsed module 203, and the converted module 204 are shown.
[0097] The computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 302 and executed by the processor 301 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0098] The terminal device may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0099] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0100] The memory 302 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 302 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 302 may also include both an internal storage unit of the terminal device and an external storage device. The memory 302 is used to store computer programs and other programs and data required by the terminal device. The memory 302 may also be used to temporarily store data that has been output or is to be output.
[0101] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.
[0102] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0103] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned RPA script generation method can be implemented.
[0104] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the steps in the above-mentioned RPA script generation method can be implemented when the mobile terminal executes the computer program product.
[0105] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0106] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0107] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0110] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0111] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A method for generating an RPA script. It is characterized in that include: Obtain natural language instructions input by the user; Performing part-of-speech tagging on the natural language instruction to obtain the part-of-speech of each word in the natural language instruction; Perform dependency parsing according to the words and the parts of speech to obtain corresponding execution steps; Convert the execution steps into RPA scripts.
2. The method for generating an RPA script according to claim 1, It is characterized in that After performing part-of-speech tagging on the natural language instruction to obtain the part-of-speech of each word in the natural language instruction, the method further includes: Determining whether the natural language instruction is accurate according to the words and the parts of speech; When the corresponding judgment result is inaccurate, performing intent recognition on the natural language instruction to obtain a first intent of the natural language instruction; Generate information to be confirmed based on the first intention, and display the information to be confirmed to the user; Acquire confirmation information input by the user based on the information to be confirmed; collecting entity information based on the confirmation information; Verifying the confirmation information and the entity information; After verification, the update natural language instructions are generated.
3. The method for generating an RPA script according to claim 1, It is characterized in that The performing part-of-speech tagging on the natural language instruction to obtain the part-of-speech of each word in the natural language instruction includes: Segmenting the natural language instruction to obtain segmented words; Parts of speech are marked for all the segmented words to obtain the parts of speech of all the segmented words.
4. The method for generating an RPA script according to claim 1, It is characterized in that The dependency parsing is performed according to the words and the parts of speech to obtain corresponding execution steps, including: Determine the dependency relationship between the words and the step execution content according to the words and the parts of speech; Determine the execution order of the steps according to the dependency relationship; According to the execution order of the steps and the execution content of the steps, the corresponding execution steps are obtained.
5. The method for generating an RPA script according to claim 1, It is characterized in that The converting the execution steps into an RPA script includes: Mapping the execution steps to obtain a mapping result; The RPA script is generated according to the mapping result.
6. The method for generating an RPA script according to claim 1, It is characterized in that After converting the execution steps into RPA scripts, the method further includes: Set up a sandbox testing environment; In the sandbox test environment, the RPA script is subjected to unit testing, integration testing, performance testing, user acceptance testing, security testing, and exception testing to obtain corresponding test results; The RPA script is optimized according to the test result to obtain an optimized RPA script.
7. The method for generating an RPA script according to claim 1, It is characterized in that After converting the execution steps into RPA scripts, the method further includes: Deploy the RPA script to the RPA execution environment and set the execution frequency of the RPA script; The RPA script is monitored to obtain corresponding monitoring results.
8. A device for generating an RPA script, It is characterized in that include: An acquisition module, used to acquire natural language instructions input by a user; A tagging module, used to perform part-of-speech tagging on the natural language instruction to obtain the part-of-speech of each word in the natural language instruction; A parsing module, used to perform dependency parsing according to the words and the parts of speech to obtain corresponding execution steps; The conversion module is used to convert the execution steps into an RPA script.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating an RPA script as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method for generating an RPA script as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Voice data processing method and device, computer equipment and storage medium
CN112002323A
RPA programming method and device based on script language, equipment and storage medium
CN116009836A
Robot automation process design and scheduling method and device based on large language model
CN117035318A
Internet of Things application generation method, device and equipment based on natural language
CN117609478A
Autonomous task processing method and device, storage medium and electronic equipment
CN118567626A
