Enterprise forum automatic reply method, device and equipment and storage medium

By monitoring the main posting events of corporate forums in real time and using a word segmentation engine to perform keyword matching queries, the problem of late answers and low coverage in corporate forums has been solved, and efficient automatic replies within the company have been achieved.

CN118708672APending Publication Date: 2024-09-27CCB FINTECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410868838.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Within large financial companies, there are barriers to IT asset management and sharing, which results in questions being answered in a timely manner and with low coverage and accuracy when asking and answering conceptual questions through corporate forums.

Method used

Through real-time monitoring of the main thread posting events of the corporate forum, a word segmentation engine is used to segment the text of the question content, and a keyword matching query is performed based on the keyword database formed by the asset information in the preset knowledge base to obtain a matching keyword set. , obtain the corresponding asset information index content from the knowledge base, assemble and generate a reply message, and realize automatic reply.

Benefits of technology

It realizes timely and automatic answers to user questions in enterprise forums, improves the coverage and accuracy of answers, and reduces the attention and energy of forum managers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708672A
    Figure CN118708672A
Patent Text Reader

Abstract

The invention provides an enterprise forum automatic reply method and device, equipment and a storage medium. Relates to the technical field of artificial intelligence consultation. The method comprises the steps that when it is monitored that a main post and posting event exists in an enterprise forum, question content is acquired; text word segmentation is carried out on the question content through a word segmentation engine to obtain at least one word segmentation vocabulary, and a keyword library used by the word segmentation engine is formed according to asset information in a preset knowledge base; according to the at least one segmented vocabulary, initiating keyword matching query in a keyword library to obtain a matched keyword set; assembling and generating a reply message according to the asset information index content corresponding to the keyword set; and displaying the reply message. Through the method, when a user performs concept questioning and seeking for answering in an enterprise forum, automatic answering can be performed according to resource data in an enterprise in time, answering is performed according to various asset data in the enterprise, and the coverage rate and accuracy of answering are high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence consulting technology, and in particular to a method, device, equipment and storage medium for automatic replying in an enterprise forum. Background Art

[0002] The management and sharing of IT assets within large financial enterprises has always been a difficult problem in the industry. Enterprises usually manage, maintain and disseminate knowledge assets through documents, specifications, notifications, knowledge bases, network disks, relational data searches, etc.

[0003] However, due to the excessive number of levels and departments in corporate organizations, a common concept is usually shared within a limited scope, while the same concept is usually expressed in different forms between different organizations or levels, which also leads to communication barriers across levels or organizations.

[0004] In this case, users usually ask conceptual questions and seek answers based on the company forum. Although communication through the forum plays a certain role, there may be problems such as untimely answers, low coverage and accuracy of answers. Summary of the invention

[0005] The present application provides a method, device, equipment and storage medium for automatic reply in an enterprise forum, which is used to solve the problems in the prior art of conceptual questioning and answering through enterprise forums, such as untimely answers, low coverage and accuracy of answers.

[0006] In a first aspect, the present application provides a method for automatically replying to an enterprise forum, the method comprising:

[0007] Monitor the main posting events of the enterprise forum in real time, and when the main posting event is detected in the enterprise forum, obtain the question content published by the main post;

[0008] Performing text segmentation on the question content through a segmentation engine to obtain at least one segmentation vocabulary, wherein the keyword vocabulary used by the segmentation engine is formed according to asset information in a preset knowledge base, and the asset information includes document content in the enterprise system, project source code in the enterprise system, and structured data in the enterprise system;

[0009] Initiating a keyword matching query in the keyword vocabulary according to the at least one segmentation vocabulary to obtain a set of matching keywords;

[0010] Acquire asset information index content corresponding to the keyword set from the knowledge base;

[0011] Assembling and generating a reply message according to the asset information index content corresponding to the keyword set and a preset forum format;

[0012] The reply message is displayed on the main post page corresponding to the main post event.

[0013] In a possible design, initiating a keyword matching query in the keyword word library according to the at least one word segmentation vocabulary to obtain a matching keyword set includes:

[0014] If no keyword is matched in the keyword database according to the at least one segmented word, monitoring a reply posting event of a main post corresponding to the main posting event;

[0015] When a reply posting event is detected, the reply post content is obtained;

[0016] Performing text segmentation on the reply post content by the word segmentation engine to obtain at least one word segmentation vocabulary of the reply post;

[0017] According to the segmented vocabulary of the at least one reply post, a keyword matching query is initiated in the keyword vocabulary to obtain a matching keyword set.

[0018] In one possible design, the method further includes:

[0019] Monitor the reply posting events of the enterprise forum in real time, and obtain the reply post content when a reply posting event is detected;

[0020] Identify whether there is a preset automatic reply mark in the reply post content, wherein the automatic reply mark includes a question mark;

[0021] If the automatic reply mark is not included in the reply post, no reply will be made;

[0022] If the reply post content contains the automatic reply mark, a reply post reply message is generated according to the reply post content, and the reply post reply message is displayed at a preset position of the reply post containing the automatic reply mark.

[0023] In a possible design, the initiating a keyword matching query in the keyword vocabulary includes:

[0024] Through the inverted index structure, a keyword matching query is performed in the keyword vocabulary.

[0025] In one possible design, the method further includes:

[0026] Obtain asset information within the enterprise system;

[0027] Extract index content from each asset information to obtain index content in a unified format, including: asset identification, asset classification, asset keywords, full-text index of asset content, asset snapshot, and asset original text access link;

[0028] The asset identification, asset classification and asset keywords in the index content of each asset information are extracted to obtain a keyword vocabulary used by the word segmentation engine.

[0029] In a possible design, when the asset information includes structured data, index content extraction is performed on the asset information of the structured data to obtain index content, including:

[0030] Convert structured data into JSON format data;

[0031] Extract keywords from the JSON format data to obtain asset keywords of the structured data;

[0032] Extracting an asset identifier of the structured data from the business feature attributes and technical feature attributes of the structured data;

[0033] The index content of the structured data is obtained according to the asset keyword of the structured data and the asset identifier of the structured data.

[0034] In a second aspect, the present application provides a device for automatically replying to an enterprise forum, the device comprising:

[0035] A detection module is used to monitor the main posting events of the enterprise forum in real time, and when the main posting event of the enterprise forum is detected, obtain the question content published by the main post;

[0036] A word segmentation module, used to perform text segmentation on the question content through a word segmentation engine to obtain at least one word segmentation vocabulary, wherein the keyword word library used by the word segmentation engine is formed according to asset information in a preset knowledge base, and the asset information includes document content in the enterprise system, project source code in the enterprise system, and structured data in the enterprise system;

[0037] A matching module, configured to initiate a keyword matching query in the keyword database according to the at least one segmentation vocabulary, and obtain a set of matching keywords;

[0038] An acquisition module, used to acquire asset information index content corresponding to the keyword set from the knowledge base;

[0039] An assembly module, used for assembling and generating a reply message according to the asset information index content corresponding to the keyword set and a preset forum format;

[0040] The output module is used to display the reply message on the main posting page corresponding to the main posting event.

[0041] In a third aspect, the present application further provides an electronic device, the electronic device comprising: a processor, and a memory communicatively linked to the processor;

[0042] The memory stores computer-executable instructions;

[0043] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.

[0044] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.

[0045] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method as described in any one of the first aspects.

[0046] The present application provides a method, device, equipment and storage medium for automatic reply in an enterprise forum. The method includes: real-time monitoring of the main posting event of the enterprise forum, when the main posting event is detected in the enterprise forum, obtaining the question content published by the main post; performing text segmentation on the question content through a segmentation engine to obtain at least one segmentation vocabulary, the keyword vocabulary used by the segmentation engine is formed according to the asset information in the preset knowledge base, and the asset information includes the document content in the enterprise system, the project source code in the enterprise system and the structured data in the enterprise system; according to at least one segmentation vocabulary, initiating a keyword matching query in the keyword vocabulary to obtain a matching keyword set; obtaining the asset information index content corresponding to the keyword set from the knowledge base; assembling and generating a reply message according to the asset information index content corresponding to the keyword set and the preset forum format; displaying the reply message on the main post page corresponding to the main posting event. Through this method, when a user asks a conceptual question and seeks an answer in the enterprise forum, the enterprise forum will automatically answer according to the internal resource data of the enterprise, the answer is timely, and the answer is based on a variety of asset data in the enterprise, and the coverage and accuracy of the answer are high. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0048] Figure 1 A schematic diagram of an application scenario provided for this application;

[0049] Figure 2 A flowchart of the first embodiment of the method for automatically replying to an enterprise forum provided by the present application;

[0050] Figure 3 A flowchart of Embodiment 2 of the method for automatically replying to an enterprise forum provided in this application;

[0051] Figure 4 A flowchart of the third embodiment of the method for automatically replying to an enterprise forum provided in this application;

[0052] Figure 5 A schematic diagram of the framework of the automatic reply system provided for this application;

[0053] Figure 6 A system operation flow chart of the automatic reply system provided for this application;

[0054] Figure 7 A schematic diagram of the structure of the device for automatically replying to the enterprise forum provided by this application;

[0055] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0058] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.

[0059] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0060] The management and sharing of assets within large enterprises has always been a difficult problem in the industry. Enterprises usually manage, maintain and disseminate knowledge assets through documents, specifications, notifications, knowledge bases, network disks, etc. Users may not be clear about some system operations, concepts or projects, and it is very cumbersome to consult relevant materials to get answers.

[0061] Currently, one way is to use corporate forum technology to post and answer questions through the division of sections, employees asking questions, and section leaders or other employees answering. However, the raising and answering of questions completely depends on the questioner's or answerer's understanding of the section.

[0062] The same concept is often expressed in different ways across different organizations or hierarchical levels, which can lead to communication barriers, lack of mutual understanding, inaccurate answers, and incomplete coverage.

[0063] In view of the above problems, this application proposes a method for automatic reply in an enterprise forum, which pre-builds a basic platform, in which a knowledge base is formed based on the knowledge resources of the enterprise, and a keyword thesaurus of the knowledge base is constructed; when a user asks a question in the enterprise forum, the words are segmented according to the content of the user's question, and the words after segmentation are matched with the keyword thesaurus to obtain the corresponding knowledge resources; a reply message is formed in the enterprise forum based on the matched searched knowledge resources and published under the topic post of the question. It can effectively automatically reply within the defined scope of the question answer, give the enterprise employees a timely and accurate response, and at the same time reduce the attention of the forum managers.

[0064] Figure 1 A schematic diagram of an application scenario provided for this application, in which a user logs in to the website of an enterprise forum and posts a topic thread of a question in the communication version of the enterprise forum. The forum will automatically reply under the topic thread and display it to the user.

[0065] The execution entity of this application may be the backend server of the enterprise forum, or a server that is linked to the enterprise forum server in communication.

[0066] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0067] Figure 2 The flowchart of the first embodiment of the method for automatically replying to the enterprise forum provided by this application is as follows: Figure 2 As shown, the following steps are included:

[0068] S101. Monitor the main posting events of the enterprise forum in real time. When the main posting event of the enterprise forum is detected, obtain the question content published by the main post.

[0069] In one implementation, the forum platform provides an application programming interface (API), and the auto-reply system can subscribe to event notifications of new posts through the API interface. The auto-reply system requests the forum platform to subscribe to related events, such as the posting of new posts and the posting of replies. When a new post is posted, the forum platform will send a notification of the main post posting event to the auto-reply system. After the auto-reply system receives the notification of the main post posting event, it obtains the question content posted by the main post.

[0070] In one implementation, if the forum platform does not provide an API interface, the automatic reply system can use crawler technology to monitor changes on the forum page. It should be noted that the forum is an internal forum of the enterprise, and the crawler is used to obtain data with the permission of the enterprise. The crawler program is formed by programming languages ​​such as Python and the corresponding crawler library, and the forum page is regularly visited to check whether there are new posts. When a main post is detected, the question content posted by the main post is obtained.

[0071] In one implementation, if the forum platform supports the WebSocket function, the forum platform can proactively push events to the specified Uniform Resource Locator (URL) terminal in real time. Users can set up Webhooks in the forum background to send notifications of posting events directly to the specified URL, so that posting events can be obtained in real time by establishing a WebSocket link. Once a new post is published, the forum platform will send a corresponding POST request message to the terminals of all linked auto-reply systems, and the POST request message includes the question content published by the main post.

[0072] In the forum platform mentioned above that supports the WebSocket function, the following settings are required:

[0073] Forum administrators or users with corresponding permissions log in to the forum's backend management interface. In the backend management interface, in the Webhook-related settings, choose to add a new Webhook. When setting up a Webhook, you need to set the target URL and the trigger event type. Among them, the target URL is the URL that receives event notifications. The forum platform will send a POST request to this target URL. The POST request contains relevant event type and time data, such as post content, author, and time. The trigger event type of the Webhook can be set to trigger the Webhook when a new post is published, or when there are new comments, private messages, and other activities.

[0074] The server side that receives the POST request sets up corresponding logic to process the received POST request. The automatic reply system side will receive the request and parse the data therein, such as obtaining the question content of the post.

[0075] S102. Perform text segmentation on the question content through a word segmentation engine to obtain at least one word segmentation vocabulary. The keyword vocabulary used by the word segmentation engine is formed based on asset information in a preset knowledge base. The asset information includes document content in the enterprise system, project source code in the enterprise system, and structured data in the enterprise system.

[0076] In this step, the word segmentation engine extracts keywords, terms, and phrases from the asset information within the enterprise system and integrates them into a unified keyword database. When receiving a question, the word segmentation engine uses this keyword database to segment the question text, limiting the segmented vocabulary to the enterprise asset information, thereby providing an answer that is more in line with the enterprise asset information.

[0077] Among them, the word segmentation engine is a tool or system used to break down text into words or vocabulary units. Closely related to the word segmentation engine is the keyword thesaurus. The keyword thesaurus is a database or list that stores a large number of keywords, terms, and phrases. In this solution, it is built based on the document content, project source code, and structured data in the enterprise system. These keywords are important concepts and information within the enterprise.

[0078] S103: Initiate a keyword matching query in a keyword database based on at least one segmentation word to obtain a set of matching keywords.

[0079] In this step, the automatic reply system matches each extracted word segmentation vocabulary with the vocabulary in the keyword vocabulary. The matching query process can be a simple string matching, or a more complex fuzzy matching algorithm or full-text search technology. According to the matching results, a set of keywords associated with all the extracted word segmentation vocabulary is obtained. These keyword sets will be used in the subsequent steps to retrieve the corresponding asset information index content.

[0080] S104: Obtain asset information index content corresponding to the keyword set from the knowledge base.

[0081] The automatic reply system will use the obtained keyword set to search the asset information index content in the knowledge base. This can be a keyword-based search algorithm to quickly find asset information index entries containing keywords.

[0082] The retrieved asset information index entries are retrieved and their corresponding contents are obtained, which may be documents, source code files, structured data entries, etc.

[0083] S105: Assemble and generate a reply message according to the asset information index content corresponding to the keyword set and the preset forum format.

[0084] The automatic reply system will parse the obtained asset information index content to extract the content or information related to the question. The system will assemble the parsed information into reply content that meets the forum format requirements according to the preset forum format. This may involve formatting, typesetting and supplementing the information to ensure that it is suitable for display on the forum.

[0085] S106: Display the reply message on the main post page corresponding to the main post event.

[0086] In a specific implementation, the reply message includes the name of the main post or other identifiers, which can be used by the forum system to find the corresponding topic post. The reply message is sent to the enterprise forum platform through the API or other communication methods provided by the forum. After receiving the reply, the forum platform will display the reply content on the page corresponding to the main post.

[0087] The reply message can be displayed in the form of a reply, or in the form of a function assistant, at a corresponding position on the main posting page.

[0088] The present embodiment provides a method for automatically replying to an enterprise forum, the method comprising: monitoring the main posting event of the enterprise forum in real time, when the main posting event is detected in the enterprise forum, obtaining the question content published by the main post; performing text segmentation on the question content through a segmentation engine to obtain at least one segmentation vocabulary, the keyword vocabulary used by the segmentation engine is formed according to the asset information in the preset knowledge base, the asset information includes the document content in the enterprise system, the project source code in the enterprise system and the structured data in the enterprise system; according to the at least one segmentation vocabulary, initiating a keyword matching query in the keyword vocabulary to obtain a matching keyword set; obtaining the asset information index content corresponding to the keyword set from the knowledge base; assembling and generating a reply message according to the asset information index content corresponding to the keyword set and the preset forum format; displaying the reply message on the main post page corresponding to the main posting event. Through this method, when a user asks a conceptual question and seeks an answer in the enterprise forum, the enterprise forum will automatically answer according to the internal resource data of the enterprise, the answer is timely, and the answer is based on a variety of asset information in the enterprise, and the coverage and accuracy of the answer are high.

[0089] In step S103, if no keyword is matched in the keyword database according to at least one segmentation word, the following steps need to be performed.

[0090] Figure 3 The flowchart of the second embodiment of the method for automatically replying to the enterprise forum provided by this application is as follows: Figure 3 As shown, the following steps are included:

[0091] S1031, monitoring the reply posting event of the main post corresponding to the main posting event.

[0092] In one implementation, the automatic reply system can periodically poll the main post page of the enterprise forum to check whether there is a new reply posting event. First, determine the polling time interval, such as every 5 minutes, 10 minutes or other preset time intervals. This time interval should take into account the system's performance and resource consumption, as well as the user's real-time requirements for events. During each poll, the system constructs an HTTP request, the target of which is the main post page of the enterprise forum. The HTTP request should contain necessary request headers and parameters to ensure that the content of the main post page can be correctly obtained. Use the HTTP client to send the constructed HTTP request to the main post page of the enterprise forum and wait for the server's response. Once the server response arrives, the automatic reply system receives and parses the response content. The response content is usually the HTML document of the main post page. The automatic reply system uses an HTML parser to parse the HTML document of the main post page and extract the required information, such as the posting time, content, poster, etc. of the reply post. Compare the parsed reply post information with the information obtained by the previous polling. If a new reply posting event is found, step S1032 is executed; otherwise, the next round of polling is continued.

[0093] In one implementation, the enterprise forum provides a Webhook function or subscription mechanism, allowing the automatic reply system to subscribe to events on the main post page, including the posting event of the reply post. When a new reply post occurs, the automatic reply system will receive an immediate notification message, which includes the content of the reply post.

[0094] In one implementation, the automatic reply system periodically crawls the main post page and the corresponding reply post through a crawler program, and then analyzes the posting events therein.

[0095] In one implementation, the automatic reply system can subscribe to the real-time event stream on the main posting page, including the posting events of the reply posts, which is a more efficient and real-time method. Specifically, the event stream on the main posting page of the enterprise forum is connected to the real-time stream processing platform, which can be achieved in different ways, such as using a message queue, or directly linking to an API of the data source. Once the data source is connected to the real-time stream processing platform, the automatic reply system can subscribe to the event stream on the main posting page, including the posting events of the reply posts. The real-time stream processing platform usually provides a convenient subscription mechanism, and the event stream of interest can be selected for subscription as needed. The real-time stream processing platform will receive the subscribed event stream in real time and pass it to the automatic reply system for processing.

[0096] S1032: When a reply posting event is detected, the reply post content is obtained.

[0097] In this step, different methods of monitoring reply posting events are used to obtain the reply post content, and the reply post content is determined according to the method of monitoring the reply posting event.

[0098] In one implementation, by polling the main post page of the enterprise forum through HTTP requests, an HTML document returned by the enterprise forum is received, information obtained by parsing the HTML document is compared with information obtained by previous polling, and different contents are determined to be reply post contents.

[0099] In one implementation, the automatic reply system can subscribe to the real-time event stream on the main post page. The real-time stream processing platform will receive the subscribed event stream in real time and pass it to the automatic reply system. For each main post, the automatic reply system will first make a conditional judgment on the main post before subscribing to the main post event stream to determine whether the words in the main post content after word segmentation match the keywords in the keyword database. If the keywords are not matched, the automatic reply system will subscribe to the event stream and reply event stream of the main post; if the main post matches the keywords, it will only subscribe to the event stream of the main post.

[0100] In one implementation, to obtain data through a crawler, it is necessary to compare the regularly captured content. When the comparison result shows that there is new content, it is determined whether the new content is in the reply post content. If it is the reply post content, the new content is determined to be the reply post content.

[0101] S1033. Perform text segmentation on the reply post content by using a word segmentation engine to obtain at least one word segmentation vocabulary of the reply post.

[0102] This step is similar to S102 and will not be described again here.

[0103] S1034: Initiate a keyword matching query in a keyword database based on the segmented vocabulary of at least one reply post to obtain a set of matching keywords.

[0104] The automatic reply system matches the extracted segmented words of each reply post with the words in the keyword database. The matching query process can be a simple string matching, or a more complex fuzzy matching algorithm or full-text search technology. Based on the matching results, a set of keywords associated with all the extracted segmented words is obtained.

[0105] This embodiment provides an automatic reply method when a main post cannot match a keyword, and matching is performed based on reply posts of reply posts, which can increase the efficiency of replying.

[0106] Based on the above-mentioned embodiment 2, when the content of the main post cannot match the keywords, the automatic reply system can also generate a prompt message and send it to the platform of the enterprise forum, and display the prompt message below the content of the main post. The prompt message is used to remind the user that the relevant content cannot be matched, and please describe the problem again in the reply post.

[0107] In addition to monitoring the content of the main post, users may need to use the automatic reply function in the forum reply process, which is introduced below with an embodiment.

[0108] Figure 4 The flowchart of the third embodiment of the method for automatically replying to the enterprise forum provided by this application is as follows: Figure 4 As shown, the following steps are included:

[0109] S201. Monitor the reply posting events of the enterprise forum in real time, and when a reply posting event is detected, obtain the reply post content.

[0110] In this step, all reply posting events of the enterprise forum are monitored by monitoring the main post or reply post event in the above embodiment, and the content of the reply post is obtained.

[0111] S202: Identify whether there is a preset automatic reply mark in the reply post content, where the automatic reply mark includes a question mark.

[0112] After receiving the content of the reply post, the automatic reply system will identify whether it contains a preset automatic reply mark. These marks are usually designed in a specific format or symbol, such as a question mark. This step is to determine whether the reply post needs to be automatically replied.

[0113] S203: If there is no automatic reply mark in the reply post content, no reply will be made.

[0114] S204: If there is an automatic reply mark in the reply post content, a reply post reply message is generated according to the reply post content, and the reply post reply message is displayed at a preset position of the reply post with the automatic reply mark.

[0115] The automatic reply system will perform word segmentation and keyword matching based on the content of the reply post and generate the corresponding reply message.

[0116] This method can be used to reply to all reply posts that include automatic reply marks, thereby increasing the user's interactive experience.

[0117] The following is an example of a user posting a question to introduce this method in detail.

[0118] Step 1: The user posts a thread on the enterprise forum asking for help on "How to apply for a BOM work order in system A".

[0119] In this step, the user can log in to the page of the enterprise forum through a mobile phone, computer or other terminal, and publish a main post in the corresponding module. The content of the main post is to ask for help on how to apply for a BOM work order in system A. Among them, a BOM work order is a material work order.

[0120] Step 2: The automatic reply system obtains the content of the main post.

[0121] The auto-reply system subscribes to new post event notifications through the API interface. When a new post is published, the forum platform will send a notification message of the main post event to the auto-reply system, which includes the post content, posting time and author.

[0122] Step 3: Segment the post content and perform keyword matching.

[0123] For the main post content sent by the user: "In system A, how to apply for a BOM work order", the user's text is preprocessed, including removing stop words, punctuation marks, etc., to reduce noise, making the subsequent keyword extraction process more accurate. After preprocessing, the main post content becomes "Application for work order for system A". Use the pre-prepared keyword thesaurus to match keywords on the text. This can be achieved through simple string matching or more complex algorithms (such as regular expressions, Trie trees, etc.). Once the keywords are matched, they can be extracted as a keyword set for the text. In this example, the matched keyword set is: system A, BOM work order.

[0124] Step 4: Obtain asset information index content corresponding to the keyword set from the knowledge base.

[0125] In this step, the index content is indexed using the two keywords of system A and work order. The index content includes: asset identification, asset classification, asset keywords, full-text index of asset content, asset snapshot, and asset original text access link of each asset. Among them, asset classification indicates whether it is a document type, structured data, or code.

[0126] System A matches the index content and obtains all relevant asset data.

[0127] The BOM work order is matched in the index content to obtain all relevant asset data.

[0128] Get asset data that exists in both system A and BOM work orders.

[0129] Step 5: assemble and generate a reply message according to the obtained index content and the preset forum format, and display the reply message below the question content.

[0130] In this step, based on the index content of asset data in both system A and BOM work order, a preset reply message is assembled, which includes asset identification, asset classification, asset keywords, asset snapshot and asset original text access link in the index content. The reply message is sent to the forum and displayed below the question, and it is displayed that the reply content is automatically generated.

[0131] Users can quickly browse to see if it is the resource data they want based on asset classification and asset keywords, or access the original text through the asset original text access link.

[0132] If multiple asset data are indexed, in one implementation, a reply message is generated based on the indexed content of each asset data and displayed on the enterprise forum, that is, the content of the automatic reply includes relevant content of all the indexed asset data.

[0133] When multiple asset data are indexed, the multiple asset data need to be displayed in order in the reply message.

[0134] In one implementation, the queried asset data is sorted according to the time when the asset data was entered into the knowledge base, so that the most recent data is placed at the front. This method allows users to read the latest content.

[0135] In one implementation, the queried asset data is sorted by the identity of the querying user, the department to which the user belongs, and the department to which the user belongs. This allows the user to read the content most relevant to the current work.

[0136] In one implementation, relevance is used as a ranking factor to rank the asset data most relevant to the query keyword at the top. This method requires an evaluation based on the keywords in the user's question and the full text of the asset data, and can use techniques such as text similarity algorithms to calculate relevance.

[0137] The following is an introduction to how to build an automatic reply system and how to obtain data within the automatic reply system.

[0138] Basic platform construction:

[0139] 1. Use existing technology to build a corporate forum.

[0140] 2. Use the data assets and knowledge base assets of the IT development relationship of financial enterprises to form an IT asset knowledge base.

[0141] 3. Use enterprise-level search engine technology to search and index the contents of the IT asset knowledge base.

[0142] 4. Extract target IT keywords from the IT asset warehouse to form a keyword database.

[0143] 5. Build an IT asset keyword segmentation engine, and use the analyze mechanism of an independent search engine to implement text segmentation. This segmentation engine does not use the traditional general keyword thesaurus, but uses the previous keyword thesaurus as the analysis thesaurus.

[0144] Process steps:

[0145] 1. IT asset collection

[0146] In large financial enterprises, the IT R&D asset data managed by the enterprise system generally exists in the following forms:

[0147] a. Regulatory documents: such as IT architecture specifications;

[0148] b. Structured data in the relational database of the online system;

[0149] c. Document files: such as XX requirement specification, XX design specification;

[0150] d. Project source code;

[0151] e. System resources, such as wiki-type system documents.

[0152] In the asset collection phase, the above asset data first needs to be generated into index content in a unified format in a specific way to extract keywords and subsequent keyword matching.

[0153] The establishment of indexes needs to be differentiated according to different types of assets. The index content after establishment includes: asset identification, asset keywords, full-text index of asset content, asset snapshots, asset original text access links, etc.

[0154] For document assets and standard assets, a document storage cloud disk can be established to extract keywords from documents based on enterprise keyword analysis. Combine the extracted enterprise keyword results with certain rules to generate a unique identifier for the document, which can be a hash value or other unique identifier. The above content is put into the search engine for weighted full-text range indexing, which means that the search engine will create an index for each document and weight and sort the search results based on keywords and unique identifiers.

[0155] For structured data in the internal relational database of an enterprise, specific technology can be used to store it in JSON format, and then keyword analysis can be used to extract keywords. The business and technical characteristics of the structured data can be used to extract the unique identifier of the data, and the above content can be indexed by weighted full-text. Storing structured data in JSON format can preserve the hierarchical structure and relationships of the data. The business and technical characteristics of the structured data are used to generate a unique identifier for the data, which can be the primary key, composite key or other unique identifier of the data. The extracted keywords and unique identifiers are put into the full-text indexing engine for indexing. The full-text indexing engine will segment the text content and build an inverted index to support efficient full-text retrieval.

[0156] For other types of data, specific extended index rules including unique identifiers, keywords, snapshots and content access method results can be established based on their characteristics and the requirements of the automatic reply system.

[0157] All collected content will eventually form the following unified format standard assets:

[0158] Asset unique identification, asset classification, keyword collection, full-text snapshot, asset index, and physical files. Use search engines and cloud file storage systems to uniformly manage, archive, and index the above content.

[0159] For keyword extraction, in one implementation, keywords can be extracted by word frequency statistics, word frequency-inverse document frequency (TF-IDF) and other methods to form a keyword set. The word frequency statistics method is simple and intuitive, easy to understand and implement.

[0160] In another way, asset ID and some standard noun keywords, such as asset classification, system name, system code, Chinese and English abbreviations of standard systems, can be extracted based on asset data to form a keyword set. Keywords extracted by this method are directly derived from asset data and are associated with specific business scenarios or systems. Therefore, they are more accurate and practical in the automatic reply process and do not rely on text content. Therefore, they are applicable to various forms of asset data.

[0161] This application has built a complete intelligent framework for knowledge dissemination and communication within the enterprise. Based on this framework, artificial intelligence technology can be easily added to the core search and analysis engine to promote the dissemination of knowledge within the enterprise.

[0162] Figure 5 The framework diagram of the automatic reply system provided for this application is as follows: Figure 5 As shown, it includes: financial R&D management platform, testing tools and environment platform, source code management platform, model training data storage module, model data relationship engine, and AI model training platform.

[0163] Among them, the financial R&D management platform includes an enterprise-level project management system, a test management system, and an application management system. It can obtain management data in each system and send the management data to the model training data storage module for unified storage. The code data managed by the code management platform is also uploaded to the model training data storage module. The test tool and environment platform includes a log monitoring component, a test assistant, a full-link monitoring component, and an application monitoring component. It can obtain test execution data and upload the test execution data to the model training data storage module.

[0164] Figure 6 The system operation flow chart of the automatic reply system provided for this application. Figure 6 As shown, the financial R&D management platform sends the generated management data to the model training data storage module, and the model training data storage module stores the management data. When there is a test, for example, the test assistant initiates a functional test operation, the test environment application executes a function request, the monitoring component performs full-link monitoring, code execution monitoring, and log-based transaction monitoring, all monitoring data and test execution data are sent to the model training data storage module. The model training data storage module stores test execution data and test monitoring data. The model training data storage module pulls the source code of the test project from the source code management platform based on the management data and test execution data. The model training data storage module stores source code data. The model data relationship engine builds the relationship data of the basic data. The model training data storage module stores each data, generates a model training data set, and sends the model training data set to the AI ​​model training platform for training. The trained model can be used to match the data of the segmented vocabulary to obtain matching data.

[0165] Figure 7 A schematic diagram of the structure of the automatic reply device for the enterprise forum provided by this application. Figure 7 As shown, the automatic reply device 70 of the enterprise forum includes:

[0166] The detection module 701 is used to monitor the main posting events of the enterprise forum in real time, and when the main posting event is detected in the enterprise forum, obtain the question content published by the main post;

[0167] A word segmentation module 702 is used to perform text segmentation on the question content through a word segmentation engine to obtain at least one word segmentation vocabulary, wherein the keyword word library used by the word segmentation engine is formed according to asset information in a preset knowledge base, and the asset information includes document content in the enterprise system, project source code in the enterprise system, and structured data in the enterprise system;

[0168] A matching module 703, configured to initiate a keyword matching query in the keyword database according to the at least one segmentation vocabulary, and obtain a matching keyword set;

[0169] An acquisition module 704 is used to acquire asset information index content corresponding to the keyword set from the knowledge base;

[0170] An assembly module 705, configured to assemble and generate a reply message according to the asset information index content corresponding to the keyword set and a preset forum format;

[0171] The output module 706 is used to display the reply message on the main post page corresponding to the main post event.

[0172] In some embodiments, the detection module 701 is further used to:

[0173] If no keyword is matched in the keyword database according to the at least one segmented word, monitoring a reply posting event of a main post corresponding to the main posting event;

[0174] When a reply posting event is detected, the reply post content is obtained;

[0175] The word segmentation module 702 is further used to perform text segmentation on the reply post content through the word segmentation engine to obtain a word segmentation vocabulary of at least one reply post;

[0176] The matching module 703 is further configured to initiate a keyword matching query in the keyword database according to the segmented vocabulary of the at least one reply post, to obtain a matching keyword set.

[0177] In some embodiments, the apparatus further comprises an identification module 707;

[0178] The detection module 701 is also used to monitor the reply posting events of the enterprise forum in real time, and when a reply posting event is detected, obtain the reply post content;

[0179] The identification module 707 is further used to identify whether there is a preset automatic reply mark in the reply post content, and the automatic reply mark includes a question mark;

[0180] If the automatic reply mark is not included in the reply post, no reply will be made;

[0181] If the reply post content contains the automatic reply mark, a reply post reply message is generated according to the reply post content, and the reply post reply message is displayed at a preset position of the reply post containing the automatic reply mark.

[0182] In some embodiments, the matching module 703 is specifically used to:

[0183] Through the inverted index structure, a keyword matching query is performed in the keyword vocabulary.

[0184] In some embodiments, the acquisition module 701 is further used to:

[0185] Obtain asset information within the enterprise system;

[0186] Extract index content from each asset information to obtain index content in a unified format, including: asset identification, asset classification, asset keywords, full-text index of asset content, asset snapshot, and asset original text access link;

[0187] The asset identification, asset classification and asset keywords in the index content of each asset information are extracted to obtain a keyword vocabulary used by the word segmentation engine.

[0188] In some embodiments, the acquisition module 704 is further used to:

[0189] Convert structured data into JSON format data;

[0190] Extract keywords from the JSON format data to obtain asset keywords of the structured data;

[0191] Extracting an asset identifier of the structured data from the business feature attributes and technical feature attributes of the structured data;

[0192] The index content of the structured data is obtained according to the asset keyword of the structured data and the asset identifier of the structured data.

[0193] The device for automatically replying to a corporate forum provided in the embodiment of the present application can be used to execute the technical solution of the method for automatically replying to a corporate forum in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0194] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 80 may include: at least one processor 801 and a memory 802. Optionally, the device 80 further includes a communication component 803. The processor 801, the memory 802 and the communication component 803 are connected via a bus 804.

[0195] In a specific implementation process, at least one processor 801 executes the computer-executable instructions stored in the memory 802, so that at least one processor 801 executes the above method.

[0196] The specific implementation process of the processor 801 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0197] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0198] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk storage.

[0199] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0200] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0201] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0202] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0203] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0204] The division of units is only a logical function division, and there may be other divisions 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 an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0205] 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.

[0206] In addition, each functional unit in each embodiment of the present invention 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.

[0207] If the function 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 technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0208] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0209] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for automatically replying to an enterprise forum, characterized in that: The method comprises: Monitor the main posting events of the enterprise forum in real time, and when the main posting event is detected in the enterprise forum, obtain the question content published by the main post; Performing text segmentation on the question content through a segmentation engine to obtain at least one segmentation vocabulary, wherein the keyword vocabulary used by the segmentation engine is formed according to asset information in a preset knowledge base, and the asset information includes document content in the enterprise system, project source code in the enterprise system, and structured data in the enterprise system; Initiating a keyword matching query in the keyword database according to the at least one segmentation vocabulary to obtain a set of matching keywords; Acquire asset information index content corresponding to the keyword set from the knowledge base; Assembling and generating a reply message according to the asset information index content corresponding to the keyword set and a preset forum format; The reply message is displayed on the main post page corresponding to the main post event.

2. The method according to claim 1, characterized in that The initiating a keyword matching query in the keyword word library according to the at least one word segmentation vocabulary to obtain a matching keyword set includes: If no keyword is matched in the keyword database according to the at least one segmented word, monitoring a reply posting event of a main post corresponding to the main posting event; When a reply posting event is detected, the reply post content is obtained; Performing text segmentation on the reply post content by the word segmentation engine to obtain at least one word segmentation vocabulary of the reply post; According to the segmented vocabulary of the at least one reply post, a keyword matching query is initiated in the keyword vocabulary to obtain a matching keyword set.

3. The method according to claim 1, characterized in that The method further comprises: Monitor the reply posting events of the enterprise forum in real time, and obtain the reply post content when a reply posting event is detected; Identify whether there is a preset automatic reply mark in the reply post content, wherein the automatic reply mark includes a question mark; If the automatic reply mark is not included in the reply post, no reply will be made; If the reply post content contains the automatic reply mark, a reply post reply message is generated according to the reply post content, and the reply post reply message is displayed at a preset position of the reply post containing the automatic reply mark.

4. The method according to any one of claims 1 to 3, characterized in that: The initiating a keyword matching query in the keyword word library includes: Through the inverted index structure, a keyword matching query is performed in the keyword vocabulary.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtain asset information within the enterprise system; Extract index content from each asset information to obtain index content in a unified format, including: asset identification, asset classification, asset keywords, full-text index of asset content, asset snapshot, and asset original text access link; The asset identification, asset classification and asset keywords in the index content of each asset information are extracted to obtain a keyword vocabulary used by the word segmentation engine.

6. The method according to claim 5, characterized in that When the asset information includes structured data, index content extraction is performed on the asset information of the structured data to obtain index content, including: Convert structured data into JSON format data; Extract keywords from the JSON format data to obtain asset keywords of the structured data; Extracting an asset identifier of the structured data from the business feature attributes and technical feature attributes of the structured data; The index content of the structured data is obtained according to the asset keyword of the structured data and the asset identifier of the structured data.

7. A device for automatically replying to an enterprise forum, characterized in that: The device comprises: A detection module is used to monitor the main posting events of the enterprise forum in real time, and when the main posting event is detected in the enterprise forum, obtain the question content published by the main post; A word segmentation module, used to perform text segmentation on the question content through a word segmentation engine to obtain at least one word segmentation vocabulary, wherein the keyword word library used by the word segmentation engine is formed according to asset information in a preset knowledge base, and the asset information includes document content in the enterprise system, project source code in the enterprise system, and structured data in the enterprise system; A matching module, configured to initiate a keyword matching query in the keyword database according to the at least one segmentation vocabulary, and obtain a set of matching keywords; An acquisition module, used to acquire asset information index content corresponding to the keyword set from the knowledge base; An assembly module, used to assemble and generate a reply message according to the asset information index content corresponding to the keyword set and a preset forum format; The output module is used to display the reply message on the main post page corresponding to the main post event.

8. An electronic device, characterized in that: The electronic device includes: a processor, and a memory communicatively linked to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.

Citation Information

Patent Citations

  • Forum community application management method and device, apparatus, and compute readable storage medium

    CN109635073A

  • Method and equipment for generating online legal consultation automatic reply

    CN110765256A

  • Information query method and device based on fixed-section grading, electronic equipment and medium

    CN116450916A

  • Insurance clause consultation automatic answering method, medium and system

    CN117149955A

  • System for providing artificial intelligence interactive comments to automatically reply to online posts and comments

    KR101990895B1