A system for implementing chatbot gateways in a low-code manner

The chatbot gateway system in 5G messages is implemented through low-code methods, which solves the problems of high development costs and duplication of business logic, realizes a complete chatbot, simplifies the development process, and solves the user's natural language through keyword recognition and template generation The mapping of business rules and the separation of rules and data reduces development costs.

CN115776649BActive Publication Date: 2024-11-15CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211283401.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2024-11-15
Estimated Expiration
2042-10-20

AI Technical Summary

Technical Problem

In the field of 5G message technology, the development cost of realizing chatbot gateways based on code in the prior art is high, and there is a problem of duplication of business logic, making it difficult to effectively use 5G multimedia messages for uplink channels for alarm and complaints and downlink channels for result feedback.

Method used

The chatbot gateway system is implemented using low-code method, and the business logic and downlink message template are generated through low-code front-end editing, combined with the scheduler, rule base, HTTP interface, MAAP interface, keyword recognition module and business record database, to achieve a complete chatbot with functions. It avoids repeated development of business logic and stores files through NFS servers, solving the consistency problem of user uploads and HTTP calls.

Benefits of technology

It can realize a complete chatbot without writing code, reduce development costs, simplify business logic generation, improve development speed, is suitable for non-programmers, and solves the user's natural language to business rules through keyword recognition and template generation. Separation of mapping and rules from data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115776649B_ABST
    Figure CN115776649B_ABST
Patent Text Reader

Abstract

The present invention discloses a system for implementing a chatbot gateway in a low-code manner, including: a chatbot gateway, a low-code front end, and an NFS server, wherein the low-code front end and the NFS server are both connected to the chatbot gateway; the chatbot gateway is composed of a scheduler and a rule base, an HTTP interface, a file interface, a MAAP interface, a keyword recognition module, a downlink message generation module, and a business record database respectively connected to the scheduler. Through the system of the present invention, a business administrator only needs to edit and generate business logic and downlink message templates through the low-code front end without writing code to realize a fully functional chatbot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of 5G message technology, and specifically, relates to a system for implementing a chatbot gateway in a low-code manner. Background Art

[0002] MAAP messages in 5G messages are an important bridge between government agencies, enterprises and institutions and individuals. Chatbot gateways are deployed in service units on the government agencies and enterprises side. However, as a new carrier, if all business logic is implemented based on code, the development cost is high, and there is a problem of duplication of business logic with the widely existing services based on HTTP interfaces.

[0003] At the same time, compared with APP, website, and customer service phone, MAAP messages have greater advantages in timeliness, accuracy, and mobility. Therefore, it should not be a complete set of other modes, but should focus more on users using various 5G multimedia messages to make alarms, complaints, and downlink channels for result feedback. Therefore, if these two points are covered, a large number of chatbots have similar business logic and are suitable for generating user services using low-code methods. Summary of the invention

[0004] Based on this, the present invention provides a system for implementing a chatbot gateway in a low-code manner, which is used between the operator's 5G message system and the business server. The business administrator only needs to generate business logic and downlink message templates through low-code front-end editing. With the system, a fully functional chatbot can be implemented without writing code.

[0005] In order to achieve the above-mentioned technical objectives, the technical solution adopted by the present invention is: a system for implementing a chatbot gateway in a low-code manner, including: a chatbot gateway, a low-code front end, and an NFS server, wherein the low-code front end and the NFS server are both connected to the chatbot gateway; the chatbot gateway is composed of a scheduler and a rule library, HTTP interface, file interface, MAAP interface, keyword recognition module, downlink message generation module, and business record database respectively connected to the scheduler.

[0006] Furthermore, the NFS server and chatbot gateway are also connected to the business server, the chatbot gateway is also connected to the operator, and the operator is connected to the 5G mobile phone.

[0007] Furthermore, the rule base is connected to the low-code front end, the HTTP interface is connected to the business server, the file interface is connected to the NFS server and the file service module in the operator respectively, and the MAAP interface is used to communicate with the message service module in the operator.

[0008] Furthermore, the rule base is used to store business rules and downlink message templates, and the business rules include: triggered by uplink report or downlink notification, rule keywords, rule parameters, downlink 5G message templates, types and quantities of information to be collected, URL of the business server and parameters to be uploaded; the downlink message template includes: template content of the message and variable information.

[0009] Furthermore, the uplink report trigger is first triggered by an uplink text message, the keyword recognition module searches for the business rules that have been loaded into the memory, matches them through keywords, and then notifies the user of the information to be uploaded through a downlink message, and finally the user uploads the information.

[0010] Furthermore, the uplink report triggering specifically includes the following steps:

[0011] Step 101: The user sends a 5G text message to the chatbot number of the enterprise or institution through the 5G messaging function of the mobile phone;

[0012] Step 102: The 5G text message reaches the MAAP interface of the chatbot gateway of the enterprise or institution through the message service module in the operator;

[0013] Step 103, the MAAP interface extracts the user's mobile phone number from the uplink 5G file message and sends the 5G text message to the dispatcher;

[0014] Step 104: The dispatcher searches the service record database for service records based on the user's mobile phone number, and there is no matching record.

[0015] Step 105: The scheduler sends the 5G text message to the keyword recognition module to obtain service keywords, service rules and service parameters;

[0016] Step 106: The dispatcher stores the user's service-related information into the service record database according to the service rules and using the user's mobile phone number as the service keyword;

[0017] Step 107: The scheduler calls the downlink message generation template according to the business rules, and generates a downlink 5G card message according to the business data in the business record database and the downlink template, so as to prompt the user to upload a list of materials.

[0018] Step 108: The scheduler sends the 5G card message to the user's mobile phone through the operator's message service according to the business rules;

[0019] Step 109: The user sends a multimedia file through a mobile phone to the file service module of the operator. The file service module saves the multimedia file locally and returns the access address of the multimedia file to the mobile phone.

[0020] Step 1010: The mobile phone sends the access address of the multimedia file as a 5G message to the MAAP interface of the chatbot gateway of the enterprise or institution through the operator's message service module;

[0021] Step 1011, the MAAP interface extracts the user's mobile phone number and file address from the uplink 5G message and passes it to the scheduler;

[0022] Step 1012: The dispatcher searches for service records in the service record database according to the user's mobile phone number and finds matching records;

[0023] Step 1013: The scheduler calls the file interface to download the file from the operator's file service module according to the recorded business rules;

[0024] Step 1014: The file interface stores the downloaded file to the NFS server and returns the access address to the scheduler;

[0025] Step 1015: The scheduler saves the access address to the business record database;

[0026] Step 1016: Repeat steps 109-1015 until the transmission of the multimedia file is completed, and send the service parameters to the service server through the HTTP interface according to the service rules.

[0027] Furthermore, the downlink notification trigger is triggered by the service server, triggering a downlink 5G card message to the user.

[0028] Furthermore, the downlink notification triggering specifically includes the following steps:

[0029] Step 201: The business server calls the HTTP interface and inputs the rule keywords and business parameters;

[0030] Step 202: The HTTP interface notifies the scheduler and inputs the rule keywords and business parameters;

[0031] Step 203: The scheduler searches for the service rules and the downlink template according to the keyword, and then combines the service parameters with the downlink template to generate a downlink 5G card message;

[0032] Step 204: According to business rules, the scheduler sends the 5G card message to the user's mobile phone through the MAAP interface and the operator's message service module.

[0033] Compared with the prior art, the present invention has the following beneficial effects: the present invention only requires the business administrator to generate business logic and downlink message templates through the low-code front-end editor. With the system, a fully functional chatbot can be realized without writing code; the present invention is positioned as the gateway between the operator's 5G message system and the original business server, avoiding repeated development of business logic; the present invention defines all rules that need to be generated through low-code and their meanings, which is convenient for non-programmers to understand and use; the start of different businesses is triggered by keyword recognition of text, which solves the mapping of user natural language to business rules; 5G messages to be sent are generated through templates, which solves the separation of rules and data; by introducing a business record database, the contradiction between multiple uploads by users through 5G messages and one call through HTTP is solved; by introducing NFS server storage within the system, the problem that the original HTTP business server cannot access 5G message upload files is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 The schematic diagram of the system for implementing the chatbot gateway in 5G messaging of the present invention;

[0035] Figure 2 This is a flow chart of the system of the present invention for processing the first 5G text uplink message;

[0036] Figure 3 This is a flowchart of the system of the present invention used for subsequent 5G multimedia message uplink service processing;

[0037] Figure 4 The present invention is a flow chart of the system used for downlink notification triggered by a service server. DETAILED DESCRIPTION

[0038] The technical solution of the present invention is further explained below in conjunction with the accompanying drawings and embodiments.

[0039] like Figure 1 The schematic diagram of the system for realizing the chatbot gateway in 5G messages of the present invention includes: chatbot gateway, low-code front-end, NFS server, and the low-code front-end and NFS server are connected to the chatbot gateway; the low-code front-end is used to provide a visual interface, simplify the editing of the rule base, and improve the development speed; the NFS server is used to store various media files uploaded by users, such as photos, videos, etc., and allow business servers to access them; the chatbot gateway is a bridge between 5G users and business servers of enterprises and institutions. Through the system of the present invention, business administrators only need to edit and generate business logic and downlink message templates through the low-code front-end, without writing code, to realize a fully functional chatbot.

[0040] The chatbot gateway in the present invention is composed of a scheduler and a rule base, HTTP interface, file interface, MAAP interface, keyword recognition module, downlink message generation module, and business record database connected to the scheduler respectively. The scheduler is responsible for scheduling all other business modules in the chatbot to complete user business; the keyword recognition module is used to identify the corresponding business functions in the user text messages and locate key business information as business parameters; the downlink message generation module is used to generate the final MAAP message based on the business data and the downlink message template; the business record database is used to record multiple 5G messages of the same 5G message user uplink into the same business information, and finally send them to the business server in a unified manner; the rule base is connected to the low-code front-end, and the business logic and downlink message templates are constructed and edited in the low-code front-end according to the business processes of enterprises and institutions, and The results are stored in the rule base. When the chatbot gateway is started, it reads all the data from the rule base at one time and saves it in the memory for subsequent business processing; the HTTP interface is connected to the business server, and through the HTTP service, the user business is transmitted to the business server and the notification issued by the business server is received; the file interface is connected to the NFS server and the file service module in the operator respectively. The file interface is used to communicate with the operator's file service module according to the file address in the uplink message, pull the file, and store it in the NFS server for access by the business server; the MAAP interface is used to communicate and connect with the message service module in the operator. For uplink messages, the user's mobile phone number and specific information (such as text, map coordinates or uploaded file address, etc.) need to be extracted; for downlink messages, they need to be transmitted to the operator's message service and sent to 5G message users.

[0041] In the present invention, the NFS server and the chatbot gateway are also connected to the business server, the chatbot gateway is also connected to the operator, and the operator is connected to the 5G mobile phone. The business server is a server for providing actual business processing functions, and communicates with the chatbot gateway through an HTTP interface.

[0042] The rule base in the present invention is used to store business rules and downlink message templates, and its content is generated by the business administrator through the low-code front-end editing. The business rules include: triggered by uplink report or downlink notification, rule keywords, rule parameters, downlink 5G message templates, the type and number of information to be collected, the URL of the business server and the parameters to be uploaded; the downlink message template includes: the template content of the message and variable information.

[0043] The uplink report trigger of the present invention is first triggered by an uplink text message, the keyword recognition module searches for the business rules that have been loaded into the memory, matches them by keywords, and then notifies the user of the data to be uploaded through a downlink message, and finally the user uploads the data. Specifically, it includes the following steps:

[0044] like Figure 2 This is a flow chart of the system of the present invention for processing the first 5G text uplink message, step 101, a user sends a 5G text message to the chatbot number of an enterprise or institution through the 5G messaging function of a mobile phone;

[0045] Step 102: The 5G text message reaches the MAAP interface of the chatbot gateway of the enterprise or institution through the message service module in the operator;

[0046] Step 103, the MAAP interface extracts the user's mobile phone number from the uplink 5G file message and sends the 5G text message to the dispatcher;

[0047] Step 104: The dispatcher searches the service record database for service records based on the user's mobile phone number, and there is no matching record.

[0048] Step 105: The scheduler sends the 5G text message to the keyword recognition module to obtain service keywords, service rules and service parameters;

[0049] Step 106: The dispatcher stores the user's service-related information into the service record database according to the service rules and using the user's mobile phone number as the service keyword;

[0050] Step 107: The scheduler calls the downlink message generation template according to the business rules, and generates a downlink 5G card message according to the business data in the business record database and the downlink template, so as to prompt the user to upload a list of materials.

[0051] Step 108: The scheduler sends the 5G card message to the user's mobile phone through the operator's message service according to the business rules;

[0052] Figure 3 The system of the present invention is used for subsequent 5G multimedia message uplink service processing flow chart, step 109, the user sends a multimedia file through a mobile phone, sends the multimedia file to the operator's file service module, the file service module saves the multimedia file locally, and returns the access address of the multimedia file to the mobile phone;

[0053] Step 1010: The mobile phone sends the access address of the multimedia file as a 5G message to the MAAP interface of the chatbot gateway of the enterprise or institution through the operator's message service module;

[0054] Step 1011, the MAAP interface extracts the user's mobile phone number and file address from the uplink 5G message and passes it to the scheduler;

[0055] Step 1012: The dispatcher searches for service records in the service record database according to the user's mobile phone number and finds matching records;

[0056] Step 1013: The scheduler calls the file interface to download the file from the operator's file service module according to the recorded business rules;

[0057] Step 1014: The file interface stores the downloaded file to the NFS server and returns the access address to the scheduler;

[0058] Step 1015: The scheduler saves the access address to the business record database;

[0059] Step 1016: Repeat steps 109-1015 until the transmission of the multimedia file is completed, and send the service parameters to the service server through the HTTP interface according to the service rules.

[0060] The downlink notification trigger of the present invention is triggered by the service server, triggering a downlink 5G card message to the user. Specifically, Figure 4 , including the following steps:

[0061] Step 201: The business server calls the HTTP interface and inputs the rule keywords and business parameters;

[0062] Step 202: The HTTP interface notifies the scheduler and inputs the rule keywords and business parameters;

[0063] Step 203: The scheduler searches for the business rules and downlink templates based on the keywords, and then combines the business parameters in the business record database with the downlink template to generate a downlink 5G card message;

[0064] Step 204: According to business rules, the scheduler sends the 5G card message to the user's mobile phone through the MAAP interface and the operator's message service module.

[0065] Example

[0066] The system and method of the chatbot gateway in the 5G message of the present invention is used for reporting illegal parking and result feedback process. Since the illegal parking service needs to upload geographic location, pictures, and videos for evidence, and does not require real-time response, it is very suitable for the use of 5G messages. The traffic police service 122 provides an uplink service for reporting illegal parking through the chatbot gateway, and sends a downlink service of the reporting processing result through the 5G message.

[0067] First, the business administrator uses the low-code front-end to drag and edit to generate the business rules and downstream templates shown in Table 1-4 below and store them in the rule library.

[0068] Table 1: Reporting Upward Rules

[0069]

[0070] Table 2: Report downlink 5G message template

[0071]

[0072] Table 3: Notification downlink rules

[0073]

[0074] Table 4: Notification downlink 5G message template

[0075]

[0076] When the chatbot gateway system in the 5G message is implemented by the present invention and a user triggers a report of illegal parking, the specific process is as follows:

[0077] Step 101, the user sends a 5G text message to the traffic police service 122 through the 5G message function of the mobile phone, the content of which is "I want to report illegal parking";

[0078] Step 102: This 5G message reaches the MAAP interface of the traffic police chatbot gateway through the operator's message service module;

[0079] Step 103, the MAAP interface extracts the user's mobile phone number from the uplink 5G message, assuming it is 18888888888, and the user's text message "I want to report illegal parking" is delivered to the dispatcher;

[0080] Step 104: The dispatcher searches for service records based on the user's mobile phone number and finds no matching records.

[0081] Step 105, the dispatcher sends "I want to report illegal parking" to the keyword recognition module, obtains the business keyword as report, searches for the report uplink rule based on the keyword, and saves the user's mobile phone number 18888888888 as a rule parameter in {{.base.srcPhoneNumber}};

[0082] Step 106: The dispatcher stores the user service-related information (user mobile phone number) into the service record database according to the service rules and with the user mobile phone number 18888888888 as the keyword;

[0083] Step 107: The scheduler calls the downlink message generation module according to the business rules and the downlink template to generate a downlink 5G card message "Dear 18888888888 user, you have started the process of reporting illegal parking. Please upload the geographic coordinates, four photos of illegal parking, and a video of illegal parking as the basis for the report. Thank you.";

[0084] Step 108: The dispatcher sends the card message to the user's mobile phone through the operator's message service module according to business rules.

[0085] After the user receives the 5G message sent by the traffic police service 122, he uploads the data. The specific process is as follows:

[0086] Step 1009: The user takes a photo of the illegal parking with a mobile phone and sends it via 5G message to the operator's file service module. The file service module saves the multimedia file locally and returns the file access address to the mobile phone.

[0087] Step 1010: The mobile phone sends the file access address to the MAAP interface of the traffic police 122 chatbot gateway through the operator's message service;

[0088] Step 1011, the MAAP interface extracts the user mobile phone number 18888888888 and the file address from the uplink 5G message and passes them to the scheduler;

[0089] Step 1012: The dispatcher searches for service records based on the user's mobile phone number 18888888888 and finds matching records;

[0090] Step 1013: The scheduler calls the file interface to download the file from the operator's file service module according to the recorded business rules;

[0091] Step 1014: The file interface stores the downloaded file in NFS and returns the access address to the scheduler;

[0092] Step 1015: The scheduler saves the access address into the business record database;

[0093] Step 1016, the user uploads the geographic coordinates as required, takes three other photos and videos and uploads them according to the method of steps 1-7 above. The scheduler finds that all the required information has been collected based on the business rules recorded in the database. Then, based on the business rules, the scheduler sends the business parameters (mobile phone number, geographic coordinates, four photo addresses, and one video address) to the violation reporting URL of the business server through the HTTP interface.

[0094] After the traffic police completes the processing, the business server triggers a downlink notification. The specific process is as follows:

[0095] Step 201: The business server calls the HTTP interface, passing in the rule keyword "notification" and business parameters, including the whistleblower's mobile phone number, reporting time, license plate number of the reported vehicle, and processing result.

[0096] Step 202: The HTTP interface notifies the scheduler, passing in the rule keyword and business parameters (the whistleblower's mobile phone number is 18888888888, the reporting time is August 8, 2022, the license plate number of the reported vehicle is Jing NGJ888, and the processing result is successful).

[0097] Step 203: The scheduler searches in memory according to the business type, obtains the business rules and downstream templates, then combines the business parameters with the downstream templates, calls the downstream message generation template, and generates a downstream 5G card message with the content "Dear user 18888888888, the illegal parking of the vehicle with license plate number Jing NGJ888 reported by you on August 8, 2022 has been processed, and the processing result is successful."

[0098] Step 204: According to the business rules, the scheduler sends this card message to the user's mobile phone through the MAAP interface via the operator's message service.

[0099] As can be seen from the above process, the business administrator only needs to write the required rules and downstream message templates through the low-code front end and cooperate with this system to form a usable chatbot system.

[0100] The above is only the preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the concept of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, several improvements and refinements made without departing from the principle of the present invention should be regarded as within the protection scope of the present invention.

Claims

1. A system for implementing chatbot gateways in a low-code manner. It is characterized in that include: A chatbot gateway, a low-code front end, and an NFS server, wherein the low-code front end and the NFS server are connected to the chatbot gateway; the chatbot gateway is composed of a scheduler and a rule base, an HTTP interface, a file interface, a MAAP interface, a keyword recognition module, a downlink message generation module, and a business record database respectively connected to the scheduler; The rule base is connected to the low-code front end. According to the business process of enterprises and institutions, the business logic and downlink message templates are constructed and edited in the low-code front end, and the results are stored in the rule base. When the chatbot gateway is started, it reads all data from the rule base at one time and saves it in the memory for subsequent business processing; the HTTP interface is connected to the business server, the file interface is connected to the NFS server and the file service module in the operator respectively, and the MAAP interface is used for communication connection with the message service module in the operator; The rule base is used to store business rules and downlink message templates, wherein the business rules include: triggered by uplink report or downlink notification, rule keywords, rule parameters, downlink 5G message templates, types and quantities of information to be collected, URL of the business server, and parameters to be uploaded; the downlink message template includes: template content of the message and variable information; The uplink report trigger is first triggered by an uplink text message, and the keyword recognition module searches for the business rules that have been loaded into the memory, matches them by keywords, and then notifies the user of the data to be uploaded through a downlink message, and finally the user uploads the data; The uplink report triggering specifically includes the following steps: Step 101: The user sends a 5G text message to the chatbot number of the enterprise or institution through the 5G messaging function of the mobile phone; Step 102: The 5G text message reaches the MAAP interface of the chatbot gateway of the enterprise or institution through the message service module in the operator; Step 103, the MAAP interface extracts the user's mobile phone number from the uplink 5G file message and sends the 5G text message to the dispatcher; Step 104: The dispatcher searches the service record database for service records based on the user's mobile phone number, and there is no matching record. Step 105: The scheduler sends the 5G text message to the keyword recognition module to obtain service keywords, service rules and service parameters; Step 106: The dispatcher stores the user's service-related information into the service record database according to the service rules and using the user's mobile phone number as the service keyword; Step 107: The scheduler calls the downlink message generation template according to the business rules, and generates a downlink 5G card message according to the business data in the business record database and the downlink template, so as to prompt the user to upload a list of materials. Step 108: The scheduler sends the 5G card message to the user's mobile phone through the operator's message service according to the business rules; Step 109: The user sends a multimedia file through a mobile phone to the file service module of the operator. The file service module saves the multimedia file locally and returns the access address of the multimedia file to the mobile phone. Step 1010: The mobile phone sends the access address of the multimedia file as a 5G message to the MAAP interface of the chatbot gateway of the enterprise or institution through the operator's message service module; Step 1011, the MAAP interface extracts the user's mobile phone number and file address from the uplink 5G message and passes it to the scheduler; Step 1012: The dispatcher searches for service records in the service record database according to the user's mobile phone number and finds matching records; Step 1013: The scheduler calls the file interface to download the file from the operator's file service module according to the recorded business rules; Step 1014: The file interface stores the downloaded file to the NFS server and returns the access address to the scheduler; Step 1015: The scheduler saves the access address to the business record database; Step 1016: Repeat steps 109-1015 until the transmission of the multimedia file is completed, and send the service parameters to the service server through the HTTP interface according to the service rules.

2. A system for implementing a chatbot gateway in a low-code manner according to claim 1, It is characterized in that The NFS server and chatbot gateway are also connected to the business server, the chatbot gateway is also connected to the operator, and the operator is connected to the 5G mobile phone.

3. According to claim 1, a system for implementing a chatbot gateway in a low-code manner, It is characterized in that The downlink notification trigger is triggered by the business server, triggering a downlink 5G card message to the user.

4. A system for implementing a chatbot gateway in a low-code manner according to claim 3, It is characterized in that The downlink notification triggering specifically includes the following steps: Step 201: The business server calls the HTTP interface and inputs the rule keywords and business parameters; Step 202: The HTTP interface notifies the scheduler and inputs the rule keywords and business parameters; Step 203: The scheduler searches for the service rules and the downlink template according to the keyword, and then combines the service parameters with the downlink template to generate a downlink 5G card message; Step 204: According to business rules, the scheduler sends the 5G card message to the user's mobile phone through the MAAP interface and the operator's message service module.