Intention processing method and device for block chain and computer equipment

By identifying user intentions in the blockchain and using the target executor to perform corresponding operations, the interactive limitations of artificial intelligence models in blockchain applications in the prior art are solved, and the automated execution of user intentions and the scalability of blockchain applications are achieved.

CN119691109APending Publication Date: 2025-03-25HANGZHOU HIGH-TECH ZONE (BINJIANG) INSTITUTE OF BLOCKCHAIN & DATA SECURITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411687132.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The application of existing artificial intelligence models in blockchain is limited to chat interaction and cannot directly help users complete specific operations. Users still need to perform related operations in blockchain by themselves, resulting in high difficulty in interaction and low application scalability.

Method used

By identifying user intentions, the target executor in the blockchain performs operations matching the user intentions, reducing the difficulty of interaction between users and blockchain, and improving the scalability of blockchain applications.

Benefits of technology

It realizes the automated execution of user intentions, lowers the application threshold for using artificial intelligence in blockchain, improves the application potential of blockchain in various fields, and ensures the security of operations through security verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691109A_ABST
    Figure CN119691109A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is suitable for the technical field of block chains, and provides an intention processing method and device for a block chain and computer equipment, the method is applied to the computer equipment, the computer equipment is accessed to the block chain, and the method comprises the steps that when user interaction information for the block chain is received, the user interaction information is sent to the computer equipment; analyzing the user interaction information to obtain a corresponding user intention; performing security verification on the user intention; and if the user intention passes the security verification, sending the user intention to a target executor in the block chain, the target executor being used for executing an operation matched with the user intention in the block chain. By adopting the method, interaction between the user and the block chain can be facilitated, the use threshold of the block chain is reduced, and the expandability of the block chain application is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the field of blockchain technology, and in particular, relate to a method, device and computer equipment for processing intent for blockchain. Background Art

[0002] At present, with the application of various types of artificial intelligence models in various fields, users can easily and quickly obtain the knowledge they want. For example, by using a large language model, through the interaction between users and the model, knowledge in the fields of medicine, law, programming, etc. can be obtained.

[0003] In the related technologies, artificial intelligence models are mainly used for interaction with users, outputting the expected content to users, and cannot directly help users to implement specific types of operations. For example, when applying artificial intelligence models to the field of blockchain technology, users can ask the model how to perform a certain operation in the blockchain. After processing the relevant information, the artificial intelligence model can output the specific content of how to perform the operation. Users can perform the corresponding operations in the blockchain according to the output content. It can be seen that the application of existing artificial intelligence models in blockchain is still at the chat interaction stage, and cannot directly help users complete specific operations. Users still need to perform relevant operations in the blockchain by themselves. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method, apparatus and computer device for processing intent for blockchain. By identifying the user intent, the target executor in the blockchain executes the operation matching the user intent, which can reduce the difficulty of interaction between the user and the blockchain and improve the scalability of blockchain applications.

[0005] A first aspect of an embodiment of the present application provides a method for processing an intention for a blockchain, which is applied to a computer device, wherein the computer device is connected to a blockchain, and the method includes:

[0006] When receiving user interaction information for the blockchain, parsing the user interaction information to obtain the corresponding user intention;

[0007] Performing security verification on the user's intention;

[0008] If the user intention passes the security check, the user intention is sent to the target executor in the blockchain, and the target executor is used to execute an operation matching the user intention in the blockchain.

[0009] In a possible implementation manner of the embodiment of the present application, the user interaction information includes interaction information input in a natural language, and the parsing of the user interaction information to obtain the corresponding user intention includes:

[0010] Calling a large language model to parse the user interaction information input in a natural language into intent information;

[0011] The intent information is mapped into a preset data structure to obtain structured user intent.

[0012] In a possible implementation manner of the embodiment of the present application, before mapping the intent information to a preset data structure to obtain a structured user intent, the method further includes:

[0013] When it is confirmed that there is a missing intention item, output interactive question information, wherein the interactive question information is used to prompt the user to input supplementary information corresponding to the missing intention item;

[0014] The supplementary information is parsed to obtain the missing intent items.

[0015] In a possible implementation of the embodiment of the present application, the security verification of the user intention includes:

[0016] Determine one or more security verification contents involved in the user intention;

[0017] Verify one or more of the security verification contents involved in the user intention one by one to determine the security of performing an operation matching the user intention in the blockchain;

[0018] Among them, when all the security verification contents involved in the user intention are verified and passed, it is determined that the user intention passes the security verification.

[0019] In a possible implementation manner of the embodiment of the present application, the structured user intent includes one or more intent items, and the determining of one or more security verification contents involved in the user intent includes:

[0020] According to one or more intention items included in the structured user intention, one or more security verification contents corresponding to each of the intention items are determined respectively.

[0021] In a possible implementation of the embodiment of the present application, sending the user intention to the target executor in the blockchain includes:

[0022] determining a target actuator according to the user intention;

[0023] Calling an interface matching the blockchain, and sending the user intention to the target executor through the interface;

[0024] Among them, different types of blockchains are matched with different interfaces, and the interfaces that match each type of blockchain are integrated into a unified blockchain interaction layer.

[0025] In a possible implementation manner of the embodiment of the present application, after the target executor executes an operation matching the user intention in the blockchain, the method further includes:

[0026] Obtaining the execution result of the target executor;

[0027] The execution result is fed back to the user and the execution data corresponding to the execution result is stored; the execution data is used to optimize and iterate the intent parsing process.

[0028] A second aspect of an embodiment of the present application provides an intention processing device for a blockchain, which is applied to a computer device, wherein the computer device is connected to a blockchain, and the device includes:

[0029] An intention parsing module, used to parse the user interaction information for the blockchain to obtain the corresponding user intention when receiving the user interaction information;

[0030] A security verification module, used to perform security verification on the user's intention;

[0031] An intention execution module is used to send the user intention to a target executor in the blockchain if the user intention passes the security check, and the target executor is used to execute an operation matching the user intention in the blockchain.

[0032] A third aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer device is connected to a blockchain, and when the processor executes the computer program, the computer device implements the method described in any one of the first aspects above.

[0033] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the method described in any one of the first aspects above is implemented.

[0034] A fifth aspect of the embodiments of the present application provides a computer program product, including a computer program, which, when executed, enables the method described in any one of the first aspects to be executed.

[0035] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0036] In the embodiment of the present application, the computer device connected to the blockchain can interact with the user and receive the interactive information input by the user for the blockchain. The computer device can obtain the corresponding user intention by parsing the received interactive information, and the user intention can represent one or more operations that the user expects to perform in the blockchain. By performing a security check on the user intention, the computer device can send the verified user intention to the target executor in the blockchain, and the target executor executes the operation matching the above user intention in the blockchain. Applying the method provided in the embodiment of the present application, the computer device can be used as an intermediate device for the user to interact with the blockchain, and realize operations such as parsing the user intention and security verification. For the user intention that passes the verification, it can be executed by the target executor in the blockchain, thereby realizing the interaction between the user and the blockchain. The embodiment of the present application solves the problem that the application of the artificial intelligence model in the blockchain in the prior art can only provide chat interaction for the user. For the operation that the user expects to perform, it can also be quickly executed by the executor, which reduces the threshold for using artificial intelligence in the blockchain and helps to expand the application of blockchain in various fields. In addition, by performing a security check on the user intention, the security of subsequent operations can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 It is a schematic diagram of an intention processing method for blockchain provided in an embodiment of the present application;

[0039] Figure 2 It is a schematic diagram of a system architecture applicable to a method for processing intent for blockchain provided in an embodiment of the present application;

[0040] Figure 3 It is a flowchart of a method for processing intent for blockchain provided in an embodiment of the present application;

[0041] Figure 4 It is a schematic diagram of an intention processing device for blockchain provided in an embodiment of the present application;

[0042] Figure 5 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.

[0044] Artificial intelligence models have achieved good application results in many fields. However, in the field of blockchain technology, due to the complexity of blockchain technology, artificial intelligence models can only be used for information display and operation guidance when involving blockchain-related businesses. The interaction process still remains in the chat mode, which is difficult to achieve user satisfaction.

[0045] In view of the above problems, the embodiments of the present application provide a method, device and computer device for processing intentions for blockchain. By applying the method provided in the embodiments of the present application, when receiving user interaction information for blockchain, the computer device can analyze the user's intentions, and the corresponding executor can execute operations matching the user's intentions in the blockchain, thereby meeting the user's needs to use the artificial intelligence module to interact with the blockchain and complete specific operations.

[0046] The technical solution of the present application is described below through specific embodiments.

[0047] Reference Figure 1 , showing a schematic diagram of a method for processing an intention of a blockchain provided in an embodiment of the present application, which may specifically include the following steps:

[0048] S101. When receiving user interaction information for a blockchain, parse the user interaction information to obtain corresponding user intentions.

[0049] It should be noted that the embodiments of the present application can be applied to computer devices, that is, the execution subject of the embodiments of the present application can be a computer device. The computer device can be various types of computers or servers connected to the blockchain, and the embodiments of the present application do not limit the specific type of computer devices.

[0050] In an embodiment of the present application, a computer device may provide an interactive channel for communicating with a user. For example, the computer device may receive interactive information input by a user through its screen, that is, the user inputs relevant information on the screen of the computer device as user interactive information. Alternatively, the computer device may receive voice information from the user and convert the voice information into text information as user interactive information. The embodiment of the present application does not limit the interactive mode between the computer device and the user.

[0051] As an example of an embodiment of the present application, user interaction information for blockchain can be input into a computer device in a natural language. After receiving the user interaction information, the computer device can parse the user interaction information to obtain the corresponding user intention. Among them, the user intention can include cross-chain operation intention, evidence storage intention, and other forms of intention.

[0052] For example, a user may input user interaction information to a computer device in the form of text or voice, assuming that "I want to send data on blockchain A to blockchain B". The computer device may parse the user interaction information to obtain a cross-chain operation intention, which is the intention to send data on blockchain A to blockchain B.

[0053] In a possible implementation of the embodiment of the present application, the user intention may be in a structured form. The structured user intention may refer to the user intention represented in the form of a certain data structure.

[0054] In a specific implementation, for interaction information input in natural language, a computer device can call a large language model to parse the user interaction information input in natural language into intent information, and map the intent information to a preset data structure to obtain structured user intent.

[0055] Taking the above example, for the interactive information "I want to send the data on blockchain A to blockchain B", the large language model can be used to parse it and obtain the intent information. By mapping it to the corresponding data structure, the structured user intent can be obtained.

[0056] For example, the above structured user intent can be expressed as:

[0057] "intent": "bridge",

[0058] "from-chain":"chainA",

[0059] "to-chain":"chainB".

[0060] Among them, "intent" indicates a specific intention, "bridge" indicates that the intention is a cross-chain operation intention; "from-chain" indicates that the source blockchain before the cross-chain operation is blockchain A, namely "chainA", and "to-chain" indicates that the target blockchain after the cross-chain operation is blockchain B, namely "chainB".

[0061] In a possible implementation of the embodiment of the present application, the large language model may be a model configured in a computer device. In this way, the computer device can directly call the large language model to parse the interaction information and obtain the user's intention. Alternatively, the large language model may also be a model configured in other electronic devices or computers. When the interaction information needs to be parsed, the computer device can call the large language model to parse the interaction information through interaction with other electronic devices or computers. The embodiment of the present application does not limit the configuration method of the large language model.

[0062] In a possible implementation of an embodiment of the present application, after parsing the interactive information input by the user, if the computer device determines that there are missing intent items, it can also prompt the user to supplement the corresponding information through interaction with the user.

[0063] Therefore, before the computer device maps the intent information into a preset data structure to obtain a structured user intent, if it is confirmed that there is a missing intent item, the computer device can output interactive questioning information, which can be used to prompt the user to input supplementary information corresponding to the missing intent item.

[0064] For example, in the above cross-chain operation intention, if there are multiple executors that can perform the cross-chain operation, the computer device cannot determine which executor to use to perform the cross-chain operation based on the interactive information currently input by the user. At this time, the computer device can believe that there is a missing intention item, that is, the specific information of the "executor" is missing. The computer device can output interactive question information, such as outputting "What executor is used to perform the cross-chain operation" or similar information to the user, prompting the user to supplement.

[0065] After the user inputs the supplementary information, the computer device may parse the supplementary information to obtain the missing intent item. For example, the supplementary information input by the user may be "use the official actuator", and by parsing the supplementary information, the missing intent item may be "actuator: official actuator".

[0066] It should be noted that for the analysis of supplementary information, the computer device can process it in the same way as the aforementioned analysis of interactive information to obtain missing intent items; alternatively, the computer device can integrate the supplementary information with the interactive information previously received, and obtain a complete structured user intent by analyzing the integrated information.

[0067] For example, for the interactive information "I want to send the data on blockchain A to blockchain B", if the computer device confirms that there is a missing intention item, it can output a follow-up question to the user "What executor is used to perform cross-chain operations?" After the user adds "use the official executor", the computer device can integrate the supplementary information with the original interactive information to obtain the interactive information "I want to use the official executor to send the data on blockchain A to blockchain B". The computer device can parse the integrated interactive information and obtain the structured user intent shown below through structured processing:

[0068] "intent": "bridge",

[0069] "from-chain":"chainA",

[0070] "to-chain":"chainB",

[0071] "solver": "official".

[0072] The above “solver” indicates the type of executor used to execute the user’s intention, that is, the official executor is used to execute the user’s intention to send the data on blockchain A to blockchain B.

[0073] S102: Perform security verification on the user's intention.

[0074] In an embodiment of the present application, for the user intent obtained by parsing, the computer device can perform a security check on it to determine the security of executing the user intent. For example, through the security check, it can be confirmed whether the operation corresponding to the user intent will affect the user's account security. Only when the user intent obtained by parsing is safe, the computer device will perform subsequent processing.

[0075] In a possible implementation of the embodiment of the present application, the computer device uses a security protection program to verify the user's intention. After the computer device uses the large language model to parse the user's intention, the computer device can send the user's intention to the security protection program for security verification.

[0076] In a possible implementation of the embodiment of the present application, when the computer device performs security verification on the user's intention, it can first determine one or more security verification contents involved in the user's intention, and then verify the one or more security verification contents involved in the above user's intention one by one to determine the security of executing the operation matching the user's intention in the blockchain. When all the security verification contents involved in the user's intention are verified, the computer device can determine that the parsed user intention passes the security verification, and can execute the subsequent S103 processing.

[0077] As mentioned above, the user intent may be expressed in a structured form, and the structured user intent may include one or more intent items, which may correspond to each structured data in the structured user intent. Therefore, when determining one or more security verification contents involved in the user intent, the computer device may determine one or more security verification contents corresponding to each intent item according to the one or more intent items included in the structured user intent.

[0078] For example, in the aforementioned example, "intent", "from-chain", "to-chain" and "solver" can each represent an intent item, so when determining the security verification content, the computer device can determine it separately for each intent item. The security verification content corresponding to each intent item can be predetermined according to actual needs, and the embodiments of the present application are not limited to this.

[0079] S103: Send the user intent to a target executor in the blockchain, where the target executor is used to execute an operation matching the user intent in the blockchain.

[0080] In the embodiment of the present application, the user intention that passes the security check is an executable user intention, and the computer device executing the user intention will not bring security risks.

[0081] Since the object of the user's intention is the blockchain, when the computer device executes the user's intention, it can send the user's intention to the target executor in the blockchain, and the target executor will execute the operation matching the user's intention in the blockchain.

[0082] In a possible implementation of the embodiment of the present application, the executor in the blockchain may include multiple or more. For example, the executor may include an official executor or a third-party executor. Therefore, when sending the user's intention to the target executor in the blockchain, the target executor may be first determined according to the user's intention, and then the interface matching the blockchain may be called to send the user's intention to the target executor through the interface.

[0083] In one example, the target executor may be the official executor, i.e., the "official" executor in the aforementioned example. The computer device may determine the official executor based on the user intent, and then send the user intent to the official executor by calling an interface that matches the official executor. After the official executor receives the user intent sent by the computer device, it may execute the operation of "sending data from blockchain A to blockchain B across chains."

[0084] In a possible implementation of the embodiment of the present application, the blockchain targeted by the user's intention may be different types of blockchains, such as Ant Chain, Changan Chain, etc. Different types of blockchains can be matched with different interfaces, and the computer device can inherit the interfaces adapted to different types of blockchains. For example, the interfaces that match each type of blockchain can be integrated into a unified blockchain interaction layer. When the corresponding interface needs to be called, the computer device can call the interface from the interaction layer and then send the user's intention to the corresponding target executor.

[0085] In a possible implementation of an embodiment of the present application, after the target executor completes the operation that matches the user's intent, for example, after completing the operation of "sending data from blockchain A to blockchain B across chains", the target executor can feedback the execution result to the computer device. By obtaining the execution result of the target executor, the computer device can feedback the execution result to the user and store the execution data corresponding to the execution result. The above-mentioned stored execution data can be used to optimize and iterate the intent parsing process to improve the accuracy of user intent parsing.

[0086] In an embodiment of the present application, a computer device connected to a blockchain can interact with a user and receive interactive information input by the user for the blockchain. By parsing the received interactive information, the computer device can obtain the corresponding user intent, which can represent one or more operations that the user expects to perform in the blockchain. By performing a security check on the user intent, the computer device can send the verified user intent to the target executor in the blockchain, and the target executor executes the operation matching the above user intent in the blockchain. Applying the method provided in the embodiment of the present application, the computer device can be used as an intermediate device for the user to interact with the blockchain, and realize operations such as parsing the user intent and security verification. For the user intent that has passed the verification, it can be executed by the target executor in the blockchain, thereby realizing the interaction between the user and the blockchain. The embodiment of the present application solves the problem that the application of artificial intelligence models in the blockchain in the prior art can only provide chat interaction for users. For the operations that the user expects to perform, it can also be quickly executed by the executor, which reduces the threshold for using artificial intelligence in the blockchain and helps to expand the application of blockchain in various fields. In addition, by performing a security check on the user intent, the security of subsequent operations can be guaranteed.

[0087] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0088] To facilitate understanding, the intent processing method provided in the embodiment of the present application is introduced below with reference to specific examples.

[0089] like Figure 2 , which is a schematic diagram of a system architecture applicable to a method for processing intent for blockchain provided in an embodiment of the present application. Figure 2 The system architecture shown includes a large language model layer for parsing user intentions, and the large language model layer can access or configure various types of large language models. When receiving user interaction information for the blockchain input by the user, the large language model in the large language model layer can be used to parse the interaction information and output the corresponding user intention.

[0090] In one possible implementation, Figure 2 The large language model layer shown in can also realize the structured processing of user intent, mapping the parsed user intent or intent information into a structured user intent in a certain data structure form.

[0091] like Figure 2As shown in the figure, the second layer in the system architecture is the security layer. The security layer mainly verifies the user intent obtained through analysis to confirm whether the operation corresponding to the user intent is safe. Through the verification of the security layer, the user's account security can be guaranteed.

[0092] The third layer in the system architecture consists of two parts, namely Figure 2 The data model and executor engine shown in .

[0093] Among them, the data model can be set based on the large language model, and can be used to obtain historical data, real-time data, on-chain data and off-chain data, etc. On the one hand, when the executor executes the operation corresponding to the user's intention, if the data required for the operation is the data in the data model, or the object of execution is the data model, the corresponding execution process can be directly implemented in the data model. For example, obtain certain data in the data model, etc. On the other hand, the data stored in the data model can be used to optimize and iterate the intention parsing process of the large language model, so that more accurate user intentions can be obtained in the subsequent parsing process of the interactive information. Exemplarily, the execution results of the executor's execution of user intentions or the like can be stored in the data model, and these data can be used to further train the large language model and optimize the parsing process of the large language model.

[0094] Figure 2 The executor engine in can be used to execute user intentions, which can include cross-chain intentions, evidence storage intentions, etc. Figure 2 As shown, the actuator engine can also include third-party actuators to cope with various complex requirements or complex protocols. By introducing third-party actuators, the types of operations that can be performed by the actuator are expanded, and user intentions can be better processed. In addition, the actuator engine can also include automatic actuators to meet automation requirements such as timed execution.

[0095] like Figure 2 As shown, the system architecture also includes a blockchain interaction layer, which may include multiple interfaces adapted to various types of blockchains. Since different types of blockchains have different interfaces, the embodiment of the present application integrates various interfaces into the blockchain interaction layer, and can call the corresponding interface from the layer in a timely manner when needed. Through the various interfaces integrated in the blockchain interaction layer, interaction with the blockchain can be achieved.

[0096] based on Figure 2 The system architecture shown can implement the intention processing method provided in the embodiment of the present application. It should be noted that: Figure 2The system architecture shown can be an example of the system architecture of a computer device, that is, the above system architecture can be configured in a computer device, with a single computer device acting as an intermediate device to realize the interaction between the user and the blockchain. Or, Figure 2 The system architecture shown may also be a cluster including multiple computers and various types of devices, and the purpose of the above-mentioned user-blockchain interaction can be achieved through the cooperation of multiple devices.

[0097] like Figure 3 , which is a flow chart of a method for processing an intention of a blockchain provided in an embodiment of the present application. Figure 3 The processing flow shown is based on Figure 2 The process of user interaction with blockchain implemented by the system architecture shown.

[0098] Specifically, see Figure 3 , users can interact with the large language model to implement the analysis of user intentions. For example, users can input interactive information to the large language model in the form of natural language. The large language model can obtain the corresponding user intention by analyzing the interactive information. At the same time, in order to better implement the subsequent execution of user intentions, the analyzed user intentions can be structured to obtain structured user intentions. The structured user intentions can be security-verified by the security protection program, and only the user intentions that pass the security verification can be executed by the corresponding executor. For example, in Figure 3 In the example, the official executor can execute the operation corresponding to the corresponding intent.

[0099] Reference Figure 4 , shows a schematic diagram of an intention processing device for blockchain provided in an embodiment of the present application, which may specifically include an intention parsing module 401, a security verification module 402 and an intention execution module 403, wherein:

[0100] The intention parsing module 401 is used to parse the user interaction information for the blockchain to obtain the corresponding user intention when receiving the user interaction information;

[0101] A security verification module 402, used to perform security verification on the user's intention;

[0102] The intention execution module 403 is used to send the user intention to the target executor in the blockchain if the user intention passes the security check, and the target executor is used to execute the operation matching the user intention in the blockchain.

[0103] In a possible implementation of the embodiment of the present application, the user interaction information may include interaction information input in a natural language, and the intention parsing module 401 may be specifically used to:

[0104] Calling a large language model to parse the user interaction information input in a natural language into intent information;

[0105] The intent information is mapped into a preset data structure to obtain structured user intent.

[0106] In a possible implementation of the embodiment of the present application, the intention parsing module 401 may also be used to:

[0107] Before mapping the intent information into a preset data structure to obtain a structured user intent, when it is confirmed that there is a missing intent item, output interactive question information, which can be used to prompt the user to input supplementary information corresponding to the missing intent item;

[0108] The supplementary information is parsed to obtain the missing intent items.

[0109] In a possible implementation of the embodiment of the present application, the security verification module 402 may be specifically used to:

[0110] Determine one or more security verification contents involved in the user intention;

[0111] Verify one or more of the security verification contents involved in the user intention one by one to determine the security of performing an operation matching the user intention in the blockchain;

[0112] Among them, when all the security verification contents involved in the user intention are verified and passed, it can be determined that the user intention passes the security verification.

[0113] In a possible implementation of the embodiment of the present application, the structured user intent may include one or more intent items, and the security verification module 402 may also be used to:

[0114] According to one or more intention items included in the structured user intention, one or more security verification contents corresponding to each of the intention items are determined respectively.

[0115] In a possible implementation of the embodiment of the present application, the intention execution module 403 may be specifically used to:

[0116] determining a target actuator according to the user intention;

[0117] Calling an interface matching the blockchain, and sending the user intention to the target executor through the interface;

[0118] Among them, different types of blockchains can be matched with different interfaces, and the interfaces that match different types of blockchains can be integrated into a unified blockchain interaction layer.

[0119] In a possible implementation of the embodiment of the present application, the intention execution module 403 may also be used to:

[0120] After the target executor executes the operation matching the user intention in the blockchain, obtaining the execution result of the target executor;

[0121] The execution result is fed back to the user and the execution data corresponding to the execution result is stored; the execution data can be used to optimize and iterate the intent parsing process.

[0122] An embodiment of the present application provides an intention processing device for blockchain. The device can be the computer device in the aforementioned embodiment or a component in the computer device that can implement related functions. By using the device, each step in the aforementioned method embodiments can be implemented.

[0123] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.

[0124] Reference Figure 5 , shows a schematic diagram of a computer device provided by an embodiment of the present application. Figure 5 As shown, the computer device 500 in the embodiment of the present application includes: a processor 510, a memory 520, and a computer program 521 stored in the memory 520 and executable on the processor 510. When the processor 510 executes the computer program 521, the steps in each embodiment of the above-mentioned intention processing method for blockchain are implemented, such as Figure 1 Alternatively, when the processor 510 executes the computer program 521, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 4 Functions of modules 401 to 403 are shown.

[0125] Exemplarily, the computer program 521 may be divided into one or more modules / units, which are stored in the memory 520 and executed by the processor 510 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which may be used to describe the execution process of the computer program 521 in the computer device 500. For example, the computer program 521 may be divided into an intent parsing module, a security verification module, and an intent execution module, and the specific functions of each module are as follows:

[0126] An intention parsing module, used to parse the user interaction information for the blockchain to obtain the corresponding user intention when receiving the user interaction information;

[0127] A security verification module, used to perform security verification on the user's intention;

[0128] An intention execution module is used to send the user intention to a target executor in the blockchain if the user intention passes the security check, and the target executor is used to execute an operation matching the user intention in the blockchain.

[0129] The computer device 500 may be a device that implements the functions of each step in the above-mentioned method embodiments. The computer device 500 may be a desktop computer, a cloud server, etc. The computer device 500 may include, but is not limited to, a processor 510 and a memory 520. Those skilled in the art will understand that Figure 5 This is only an example of the computer device 500 and does not constitute a limitation of the computer device 500. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 500 may also include input and output devices, network access devices, buses, etc.

[0130] The processor 510 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.

[0131] The memory 520 may be an internal storage unit of the computer device 500, such as a hard disk or memory of the computer device 500. The memory 520 may also be an external storage device of the computer device 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 500. Further, the memory 520 may also include both an internal storage unit of the computer device 500 and an external storage device. The memory 520 is used to store the computer program 521 and other programs and data required by the computer device 500. The memory 520 may also be used to temporarily store data that has been output or is to be output.

[0132] An embodiment of the present application further discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the methods described in the above embodiments are implemented.

[0133] The embodiments of the present application further disclose a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the methods described in the above embodiments are implemented.

[0134] The embodiments of the present application further disclose a computer program product, including a computer program. When the computer program is run on a computer, the computer is enabled to execute the methods described in the aforementioned embodiments.

[0135] 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 above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate 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 processing intentions for blockchain, characterized in that: Applied to a computer device, the computer device is connected to a blockchain, and the method includes: When receiving user interaction information for the blockchain, parsing the user interaction information to obtain the corresponding user intention; Performing security verification on the user's intention; If the user intention passes the security check, the user intention is sent to the target executor in the blockchain, and the target executor is used to execute an operation matching the user intention in the blockchain.

2. The method according to claim 1, characterized in that The user interaction information includes interaction information input in a natural language, and the parsing the user interaction information to obtain the corresponding user intention includes: Calling a large language model to parse the user interaction information input in a natural language into intent information; The intent information is mapped into a preset data structure to obtain structured user intent.

3. The method according to claim 2, characterized in that Before mapping the intent information to a preset data structure to obtain a structured user intent, the method further includes: When it is confirmed that there is a missing intention item, output interactive question information, wherein the interactive question information is used to prompt the user to input supplementary information corresponding to the missing intention item; The supplementary information is parsed to obtain the missing intent items.

4. The method according to claim 2 or 3, characterized in that: The security verification of the user intention includes: Determine one or more security verification contents involved in the user intention; Verify one or more of the security verification contents involved in the user intention one by one to determine the security of performing an operation matching the user intention in the blockchain; Among them, when all the security verification contents involved in the user intention are verified and passed, it is determined that the user intention passes the security verification.

5. The method according to claim 4, characterized in that The structured user intention includes one or more intention items, and the determining of one or more security verification contents involved in the user intention includes: According to one or more intention items included in the structured user intention, one or more security verification contents corresponding to each of the intention items are determined respectively.

6. The method according to claim 1, characterized in that The sending of the user intention to the target executor in the blockchain includes: determining a target actuator according to the user intention; Calling an interface matching the blockchain, and sending the user intention to the target executor through the interface; Among them, different types of blockchains are matched with different interfaces, and the interfaces that match each type of blockchain are integrated into a unified blockchain interaction layer.

7. The method according to any one of claims 1 to 3 or 5 to 6, characterized in that: After the target executor executes the operation matching the user intention in the blockchain, the method further includes: Obtaining the execution result of the target executor; The execution result is fed back to the user and the execution data corresponding to the execution result is stored; the execution data is used to optimize and iterate the intent parsing process.

8. An intention processing device for blockchain, characterized in that: Applied to a computer device, the computer device is connected to a blockchain, and the device includes: An intention parsing module, used to parse the user interaction information for the blockchain to obtain the corresponding user intention when receiving the user interaction information; A security verification module, used to perform security verification on the user's intention; An intention execution module is used to send the user intention to a target executor in the blockchain if the user intention passes the security check, and the target executor is used to execute an operation matching the user intention in the blockchain.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The computer device is connected to the blockchain, and when the processor executes the computer program, the computer device implements the method as described in any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed, the method according to any one of claims 1 to 7 is executed.