A financial intelligent agent automatic arrangement and generation method based on ontology semantic matching
By using an ontology-based semantic matching method, financial intelligent agents are automatically constructed, solving the problems of complex code development and insufficient semantic parsing in the financial field. This enables the efficient generation and reliable operation of financial risk control agents, adapting to the needs of multiple scenarios.
Patent Information
- Application Number
- CN202611367756.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies require complex code development when building credit approval agents or anti-money laundering monitoring agents in the financial field. They also lack depth in semantic parsing of natural language, resulting in long development cycles, inflexible risk control rules, difficulty in simulating complex review-judgment-decision chains, and a lack of standardized verification mechanisms.
By combining deep semantic parsing with a financial ontology library, end-to-end automated construction from natural language instructions to executable agent code is achieved. A semantic parsing engine is used to identify intent and generate workflow topology, and a closed-loop process of design-confirmation-sandbox testing is introduced to automatically generate financial risk control agents.
It significantly improves the generation efficiency and operational reliability of financial risk control agents, reduces development costs, enhances the flexibility and maintainability of risk control rules, supports multi-role and multi-task collaboration, and adapts to the reuse and migration of risk control rules for different financial products.
Smart Images

Figure CN123180152A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the intersection of financial technology and artificial intelligence, specifically to a method for the automated orchestration and generation of financial intelligent agents based on ontology semantic matching. Background Technology
[0002] With the rapid development of fintech and artificial intelligence, financial institutions have made significant progress in automating and intelligentizing business processes. However, in the financial sector, building a credit approval agent or anti-money laundering monitoring agent still requires developers to write complex code to connect to different business databases and define different risk business rules. This not only increases the development cycle but also limits the role of business personnel in practical applications, resulting in long system implementation cycles. Furthermore, each different financial product has its own unique set of risk control rules. Although these rules generally follow the same methodology, it is necessary to redevelop and deploy the corresponding risk control rules into the risk control system.
[0003] Existing technologies, when handling complex financial cases, often rely on single-function intelligent agents, which struggle to simulate the complex review-assessment-decision-making thought processes of legal professionals, necessitating the independent operation of multiple agents. Furthermore, existing intelligent assistance systems lack accuracy in semantic parsing during quantitative strategy construction, depth in knowledge integration, robustness in verification mechanisms, and interpretability. In the field of enterprise process management, existing technologies also suffer from issues such as missing process operations, reliance on manual design for prompt word engineering, and coarse-grained knowledge graphs.
[0004] Therefore, there is an urgent need for a mechanism that can map from natural language to executable workflows to achieve intelligent and automated financial operations. This mechanism should be able to understand users' natural language requirements, automatically map them to entities and relationships in a general financial ontology library, and automatically implement specific steps based on a general risk control approval SOP process design. This would reduce the need for business personnel to write complex code and improve the flexibility and maintainability of financial product risk control rules. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing technologies, such as high development thresholds, cumbersome configuration, and lack of standardized verification mechanisms for financial risk management agents. This invention provides an automated orchestration and generation method for financial agents based on ontology semantic matching. By combining deep semantic parsing with a financial ontology library, this invention achieves end-to-end automated construction from natural language instructions to executable agent code, and introduces a closed-loop process of design-validation-sandbox testing, significantly improving the generation efficiency and operational reliability of financial risk control agents.
[0006] To achieve the above objectives, this invention provides an automated orchestration and generation method for financial intelligent agents based on ontology semantic matching. This method mainly includes the following four core stages:
[0007] First, the system performs semantic understanding and structured extraction of natural language instructions. It receives natural language instructions from the user and uses natural language processing techniques to extract deep semantic information. Then, it calls a semantic parsing engine (currently using Cluade Code or Hermes to access large models) to perform syntactic and semantic analysis on the instructions, constructing a semantic tree structure. Based on this semantic tree structure, it accurately identifies the user's business intent and extracts key business entity information, providing precise input parameters for subsequent process orchestration.
[0008] Secondly, based on the pre-built financial risk control agent, a SOP (Standard Operating Procedure) model is designed to automatically generate a workflow topology. The system retrieves and extracts entity definitions and relationships between entities related to instructions from a general financial ontology library, and constructs a semantic mapping model for the instructions. Then, it logically integrates this semantic mapping model with the general risk control approval SOP process, automatically matches and generates standardized risk control rules that include ontology screening, rule judgment, and action execution, and finally assembles them into a complete workflow topology structure.
[0009] Furthermore, a human-computer interaction canvas is introduced to confirm and fine-tune the workflow topology. The system visualizes the automatically generated workflow topology structure for the user and receives confirmation instructions or modification suggestions from the user. Based on the user's confirmation, the system supports dynamic adjustments to the specific implementation details of the workflow topology to ensure that the generated business process conforms to actual business logic and compliance requirements.
[0010] Finally, the system instantiates and verifies the intelligent agent. Based on the finalized standardized risk control rules, the system automatically writes and generates the corresponding intelligent agent execution code; the generated code is automatically deployed to an isolated test sandbox environment, and historical financial datasets are loaded to simulate and evaluate the intelligent agent; the system automatically optimizes the parameters and adjusts the logic of the intelligent agent according to the test results until the performance indicators of the intelligent agent meet the preset requirements, thereby outputting a usable financial intelligent agent.
[0011] The purpose of this invention is to overcome the shortcomings of existing technologies and provide an automated orchestration and generation method for financial intelligent agents based on ontology semantic matching, specifically including:
[0012] Step 1: Receive natural language instructions and invoke semantic services to perform intent recognition and entity linking;
[0013] Step 2: Design an SOP pattern based on the pre-built financial risk control agent to generate a workflow topology that includes ontology screening, rule judgment, and action execution;
[0014] Step 3: The user confirms the workflow topology on the canvas;
[0015] Step 4: Instantiate the Agent, put it into the test sandbox, and test its effectiveness based on historical data.
[0016] Step 1 includes:
[0017] Step 1.1: Receive natural language commands input by the user and extract the semantic information of the commands;
[0018] Step 1.2: Call the semantic parsing engine to parse the instruction and obtain the semantic tree structure of the instruction;
[0019] Step 1.3: Based on the semantic tree structure, identify the user's intent and extract relevant entity information.
[0020] In this step, to accurately measure the matching degree between natural language instructions and entity concepts in the financial ontology, we introduce a semantic similarity calculation formula. This formula is used to calculate the similarity between the user-input natural language instruction vector and the pre-defined entity definition vectors in the general financial ontology.
[0021] Semantic similarity calculation formula:
[0022] Assume the natural language instruction vector input by the user is The vector defined for a certain entity in the ontology is Then the semantic similarity between the two Calculated using cosine similarity:
[0023] Where n represents the dimension of the vector, ,and Let represent the values of the two vectors in the i-th dimension. When When the value exceeds a preset threshold θ (e.g., 0.85), the system determines that the entity is highly relevant to the user command and includes it in the subsequent semantic mapping model. Step 2 includes the following steps:
[0024] Step 2.1: Obtain the relevant entities and relationships from the general financial ontology library;
[0025] Step 2.2: Based on the acquired entities and relationships, construct a semantic mapping model for the instructions;
[0026] Step 2.3: Integrate the semantic mapping model with the general risk control approval SOP process to generate standardized risk control rules.
[0027] Step 3 includes:
[0028] Step 3.1: Display the generated workflow topology;
[0029] Step 3.2: Receive confirmation information from the user regarding the topology structure;
[0030] Step 3.3: Based on the user's confirmation, adjust the specific implementation details of the workflow topology.
[0031] Step 4 includes:
[0032] Step 4.1: Generate the corresponding intelligent agent code based on standardized risk control rules;
[0033] Step 4.2: Deploy the agent code to the test environment;
[0034] Step 4.3: Test and evaluate the agent based on historical datasets;
[0035] Step 4.4: Optimize and adjust the agent based on the test results until it meets the preset performance requirements.
[0036] In steps 4.3 and 4.4, to quantitatively evaluate the reliability and performance of the agent in the sandbox environment, we defined a formula for evaluating the overall performance of the agent. This formula combines key indicators such as accuracy, response time, and false alarm rate to determine whether the agent meets the preset requirements.
[0037] ,
[0038] in:
[0039] This represents the accuracy of the agent on the test set.
[0040] This represents the average response time of the agent. This is the maximum allowed response time threshold.
[0041] This represents the false positive rate of the agent.
[0042] , , These are the weighting coefficients for each indicator, and .
[0043] System settings when When the value is 0.9 (e.g.), the system determines that the performance of the agent meets the preset requirements and outputs a usable financial agent; otherwise, the system will automatically trigger the parameter optimization and logic adjustment process until the condition is met.
[0044] Compared with existing technologies, this invention provides an automated orchestration and generation method for financial intelligent agents based on ontology semantic matching, which has the following beneficial effects:
[0045] 1. A mapping mechanism from natural language to executable workflows has been implemented, solving the problem of the lack of automated conversion of natural language requirements in existing technologies, and greatly improving the flexibility and maintainability of risk control rules for financial products. By utilizing a semantic parsing engine, users' natural language requirements are automatically mapped to entities and relationships in a general financial ontology library, realizing intelligent processing of natural language. This eliminates the need for business personnel to write complex code, significantly reducing development costs and the requirement implementation cycle.
[0046] 2. Based on a general risk control approval SOP process design, this method automatically implements specific steps, achieving intelligent processing of complex business processes. Through the automated processing of data filtering nodes, rule judgment nodes, and alarm action nodes, it effectively solves the problem of existing technologies lacking the ability to understand and automatically schedule complex business processes, meeting the needs of multi-role, multi-task, and multi-system collaboration in banking scenarios.
[0047] 3. By automatically generating the topology structure using a canvas, a visual closed-loop design is achieved, eliminating the need for writing complex code and improving system usability and maintainability. This visual design approach allows business personnel to intuitively understand and confirm system processes, reducing maintenance difficulties caused by code complexity.
[0048] 4. It overcomes the problem of insufficient semantic parsing depth of existing technologies in semantic understanding of users' natural language descriptions. Especially when faced with complex strategies or ambiguous expressions, it can accurately extract key strategy elements and construct a complete semantic relationship graph, thereby improving the system's adaptability to complex business scenarios.
[0049] 5. By establishing a universal financial ontology library and standardized SOP process design, the reuse and migration of risk control rules across different financial products have been achieved. When a financial product needs to be optimized or modified, there is no need to redevelop and deploy entirely new risk control rules; only the relevant parameters need to be adjusted accordingly, greatly improving the system's adaptability and scalability. Attached Figure Description
[0051] Figure 1 This is a flowchart of the automated orchestration and generation method for financial intelligent agents based on ontology semantic matching, as described in this invention. Detailed Implementation
[0053] Example 1:
[0054] This invention provides an automated orchestration and generation method for financial intelligent agents based on ontology semantic matching. The specific implementation steps are as follows:
[0055] Step 1: Receive natural language instructions and invoke semantic services to perform intent recognition and entity linking.
[0056] Step 1.1: Receive natural language commands input by the user through a graphical interface and extract keywords and semantic information. For example, if the user inputs "monitor large abnormal credit card transactions," the system will automatically identify the two entities: "credit card" and "large abnormal transactions."
[0057] Step 1.2: The semantic parsing engine is invoked to perform semantic analysis on the natural language instructions, identify the user's intent, and extract entities. Through semantic analysis of the natural language instructions, the system identifies that the user's intent is to monitor large and unusual credit card transactions.
[0058] Step 1.3: Based on the entities and relationships in the financial ontology, construct a semantic relationship graph to realize the mapping from natural language to an executable workflow. The system automatically constructs the corresponding semantic relationship graph based on the user's input natural language commands, combined with entities (such as credit card accounts, transaction records, etc.) and relationships (such as ownership, occurrence, etc.) in the financial ontology.
[0059] Step 2: Based on the pre-built financial risk control agent, design the SOP mode to generate a workflow topology that includes ontology screening, rule judgment, and action execution.
[0060] Step 2.1: Obtain a general risk control approval SOP process design template, which includes data filtering nodes, rule judgment nodes, and action execution nodes.
[0061] Step 2.2: Configure SOP process parameters and judgment rules according to the characteristics of financial products. For example, for credit approval business, set the approval limit threshold to RMB 1 million, and the approval process includes data screening, enterprise credit assessment, project feasibility assessment, etc.
[0062] Step 2.3: Automated design of workflow nodes and topology based on low-code tools. The system automatically generates a workflow topology containing nodes for ontology filtering, rule judgment, and action execution, based on the configured SOP process parameters and judgment rules.
[0063] Step 3: Use the low-code tool canvas to confirm the workflow topology.
[0064] Step 3.1: Display the generated workflow topology, including the names and order of each node.
[0065] Step 3.2: Adjust key node parameters. Users can configure and manage workflows according to actual needs, such as changing data filtering conditions, modifying rule judgment criteria, and adding specific approval rules for specific business operations.
[0066] Step 3.3: After configuration, an executable Agent configuration file will be generated. The system automatically generates the corresponding Agent configuration file or skill based on the user's adjustments.
[0067] Step 4: Instantiate the Agent, put it into the test sandbox, and test its effectiveness based on historical data.
[0068] Step 4.1: Instantiate the Agent according to the configuration file. The system automatically creates an Agent named "Credit Card Abnormal Transaction Monitoring".
[0069] Step 4.2: Deploy the Agent to the test sandbox environment, which includes the data preprocessing module, rule engine module, and data storage module.
[0070] Step 4.3: Perform functional testing and performance evaluation on the Agent based on historical datasets. The test data includes 1 million historical credit card transaction records, and the test time is set to 30 minutes. The system needs to complete the anomaly detection of all transactions within this time.
[0071] Step 4.4: Optimize and migrate the workflow based on the test results to complete the upgrade of the financial product. Based on the error rate and efficiency indicators in the test report, the system automatically optimizes and adjusts the workflow, such as adjusting rule judgment conditions and optimizing data filtering strategies, to ensure the error rate is reduced to below 5%.
[0072] Example 2:
[0073] This invention provides an automated orchestration and generation method for financial intelligent agents based on ontology semantic matching. The specific implementation steps are as follows:
[0074] Step 1: Receive natural language instructions and invoke semantic services to perform intent recognition and entity linking.
[0075] Step 1.1: Receive natural language instructions from other systems via API interface and extract keywords and semantic information. For example, upon receiving the instruction "Monitor whether there are any abnormalities in the company's external fund transfers," the system identifies two entities: "company" and "external fund transfers."
[0076] Step 1.2: The semantic parsing engine is invoked to perform semantic analysis on the natural language commands, identify the user's intent, and extract entities. Through deep semantic analysis of the natural language commands, the system identifies that the user's intent is to monitor abnormal transfers of company funds.
[0077] Step 1.3: Based on the entities and relationships in the financial ontology, construct a semantic relationship graph to realize the mapping from natural language to an executable workflow. The system automatically constructs the corresponding semantic relationship graph based on the natural language instructions input by the user, combined with the entities (such as "company account", "transfer record", etc.) and relationships (such as "belonging", "occurrence", etc.) in the financial ontology.
[0078] Step 2: Based on the pre-built financial risk control agent, design the SOP mode to generate a workflow topology that includes ontology screening, rule judgment, and action execution.
[0079] Step 2.1: Obtain a general risk control approval SOP process design template, which includes data preprocessing nodes, rule evaluation nodes, and action execution nodes.
[0080] Step 2.2: Configure SOP process parameters and judgment rules according to the characteristics of financial products. For example, for anti-money laundering monitoring business, set the monitoring amount threshold to RMB 100,000, and the approval process includes data screening, customer risk assessment, and abnormal transaction identification.
[0081] Step 2.3: Automated design of workflow nodes and topology based on low-code tools. The system automatically generates a workflow topology containing nodes for ontology filtering, rule judgment, and action execution, based on the configured SOP process parameters and judgment rules.
[0082] Step 3: User confirms workflow topology.
[0083] Step 3.1: Display the generated workflow topology on a low-code tool, including the names and order of each node.
[0084] Step 3.2: Configure parameters on the main workflow. Users can adjust the workflow according to actual needs, such as changing data filtering conditions, modifying rule judgment criteria, and adding specific rules for judging abnormal transfers of funds by the company.
[0085] Step 3.3: After configuration, confirm to generate an executable Agent configuration file. The system automatically generates the corresponding Agent configuration file based on the user's adjustments.
[0086] Step 4: Instantiate the Agent, put it into the test sandbox, and test its effectiveness based on historical data.
[0087] Step 4.1: Instantiate the Agent according to the configuration file. The system automatically creates an Agent named "Company Abnormal Funds Monitoring".
[0088] Step 4.2: Deploy the Agent to the test sandbox environment, which includes the data preprocessing module, rule engine module, and data storage module.
[0089] Step 4.3: Perform functional testing and performance evaluation on the Agent based on historical datasets. The test data includes 2 million records of company outward transfers, and the test time is set to 60 minutes. The system needs to complete the anomaly detection of all transactions within this time.
[0090] Step 4.4: Optimize and migrate the workflow based on the test results to complete the upgrade of the financial product. Based on the error rate and efficiency indicators in the test report, the system automatically optimizes and adjusts the workflow, such as adjusting rule judgment conditions and optimizing data filtering strategies, to ensure the error rate is reduced to below 3%.
[0091] It should be noted that the above content merely illustrates the technical concept of the present invention and should not be construed as limiting the scope of protection of the present invention. For those skilled in the art, various improvements and modifications can be made without departing from the principle of the present invention, and all such improvements and modifications fall within the scope of protection of the claims of the present invention.
Claims
1. A method for automated orchestration and generation of financial intelligent agents based on ontology semantic matching, comprising: Step 1: Receive natural language instructions and invoke semantic services for intent recognition and entity linking; Step 2: Design an SOP pattern based on the pre-built financial risk control agent to generate a workflow topology that includes ontology screening, rule judgment, and action execution; Step 3: The user confirms the workflow topology on the canvas; Step 4: Instantiate the Agent, put it into the test sandbox, and test its effectiveness based on historical data.
2. The method according to claim 1, characterized in that, Step 1 includes the following steps: Step 1.1: Receive natural language instructions input by the user and extract the semantic information of the instructions; Step 1.2: Call the semantic parsing engine to parse the instruction and obtain the semantic tree structure of the instruction; Step 1.3: Based on the semantic tree structure, identify the user's intent and extract relevant entity information.
3. The method according to claim 2, characterized in that, Step 1 includes the following steps: A semantic similarity calculation formula is introduced, which is used to calculate the similarity between the natural language instruction vector input by the user and the pre-defined entity definition vector in the general financial ontology library; Semantic similarity calculation formula: Assume the natural language instruction vector input by the user is The vector defined for a certain entity in the ontology is Then the semantic similarity between the two Calculated using cosine similarity: , Where n represents the dimension of the vector, and Let each represent the value of the two vectors in the i-th dimension, when When the value exceeds a preset threshold θ, the system determines that the entity is highly related to the user's instruction and includes it in the subsequent semantic mapping model.
4. The method according to claim 1, characterized in that, Step 2 includes the following steps: Step 2.1: Obtain the relevant entities and relationships from the general financial ontology library; Step 2.2: Based on the acquired entities and relationships, construct a semantic mapping model for the instructions; Step 2.3: Integrate the semantic mapping model with the general risk control approval SOP process to generate standardized risk control rules.
5. The method according to claim 1, characterized in that, Step 3 includes the following steps: Step 3.1: Display the generated workflow topology; Step 3.2: Receive confirmation information from the user regarding the topology structure; Step 3.3: Based on the user's confirmation, adjust the specific implementation details of the workflow topology.
6. The method according to claim 1, characterized in that, Step 4 includes the following steps: Step 4.1: Generate the corresponding agent code based on standardized risk control rules; Step 4.2: Deploy the agent code to the test environment; Step 4.3: Test and evaluate the agent based on historical datasets; Step 4.4: Optimize and adjust the agent based on the test results until it meets the preset performance requirements.
7. The method according to claim 6, characterized in that, In steps 4.3 and 4.4, a formula for evaluating the overall effectiveness of the agent is defined. This formula, combined with key indicators, determines whether the agent meets the preset requirements: , in: This represents the accuracy of the agent on the test set; This represents the average response time of the agent. This is the maximum allowed response time threshold; This represents the false alarm rate of the agent; , , These are the weighting coefficients for each indicator, and System settings when hour, The preset parameters are initially set to a preset value such as 0.
6. Subsequently, the weighted average of the agent's daily performance data is taken to determine whether the agent's performance meets the preset requirements, and a usable financial agent is output. Otherwise, the system will automatically trigger the parameter optimization and logic adjustment process until the condition is met.
