Message sending method and device based on message center, equipment and medium

By centrally managing various message systems through the message center and using the template library to match and generate target messages, the complexity of message management in the operation and maintenance management platform is solved, and efficient and accurate message sending is achieved.

CN120729692APending Publication Date: 2025-09-30AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510717443.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

The independent connection of each module to the message system in the existing operation and maintenance management platform leads to complex notification message management, important notifications are easily missed or delayed, and manual editing is inefficient.

Method used

The message center is used to uniformly connect to various message systems, generate target messages through matching the message template library, and send them through the connected message system, supporting template verification and priority sorting.

Benefits of technology

It achieves unified management, high efficiency and accuracy of message sending, avoids omission or delay of important notifications, and improves the efficiency of message generation and sending.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120729692A_ABST
    Figure CN120729692A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a message sending method and device based on a message center, equipment and a medium. The method comprises the following steps: acquiring a message sending request submitted to a message center by a target application; the message center is used for docking various message systems; performing template matching on the basis of each preset message template in a message template library and the message sending request, and determining a target message template corresponding to the message sending request; and performing message generation based on message content requested to be sent in the message sending request and the target message template, determining a target sending message corresponding to the message sending request, and sending the target sending message to a message receiver in the message sending request through a butted message system. According to the technical scheme provided by the embodiment of the invention, the message center is utilized to be in unified butt joint with each service platform, the target sending message can be accurately and conveniently determined, and the message sending efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a message sending method, apparatus, device, and medium based on a message center. Background Art

[0002] With the continuous growth of business in the operation and maintenance management platform, the number of various business notification messages is also increasing.

[0003] At present, each module under the operation and maintenance management platform connects to various message systems according to its own business needs. For example, the alarm notification function module connects to the SMS service platform, and the process flow email notification function module connects to the email platform, etc., and uses the message system connected to each function module to send messages.

[0004] However, this interconnected approach requires the operations team to collect and manage notification messages from multiple systems or platforms, increasing the complexity of collection and management, which can lead to important notification messages being missed or delayed. Furthermore, notification message modification or editing is often done manually, which is time-consuming and labor-intensive, reducing message delivery efficiency. Summary of the Invention

[0005] The embodiments of the present invention provide a message sending method, apparatus, device and medium based on a message center, which utilize the message center to uniformly connect to various service platforms, and can accurately and conveniently determine the target message to be sent, thereby improving the efficiency of message sending.

[0006] In a first aspect, an embodiment of the present invention provides a message sending method based on a message center, which is applied to the message center and includes:

[0007] Obtain a message sending request submitted by the target application to the message center; the message center is used to connect to various message systems;

[0008] Performing template matching based on each message template preset in a message template library and the message sending request to determine a target message template corresponding to the message sending request;

[0009] A message is generated based on the message content requested to be sent in the message sending request and the target message template, a target sending message corresponding to the message sending request is determined, and the target sending message is sent to the message recipient in the message sending request through the docked message system.

[0010] Optionally, the method also includes: performing template matching based on each message template preset in the message template library and the identification information in the message sending request to determine the candidate message template corresponding to the message sending request; verifying the candidate message template based on the template verification information in the message sending request to determine the target message template corresponding to the message sending request.

[0011] Optionally, the method further includes: the identification information includes: at least one of a message template identification, an application identification, a module identification and a microservice identification; the template verification information includes: at least one of a message notification scenario and a notification channel type under the message notification scenario.

[0012] Optionally, the method also includes: temporarily storing the target sending message in a message queue, and extracting multiple target sending messages from the message queue; performing priority sorting based on the template verification information and preset sorting rules corresponding to each target sending message, determining the message sending sequence corresponding to each target sending message and the message system corresponding to each target sending message; and sending the target sending message according to the message sending sequence and the message system.

[0013] Optionally, the method also includes: obtaining the calling information and preset current limiting threshold of the target message template; the preset current limiting threshold is set when the target message template is pre-configured; comparing the calling information and the preset current limiting threshold to obtain a comparison result, and generating alarm information based on the comparison result.

[0014] Optionally, the method also includes: obtaining a template configuration request sent by a template application user; generating a message template to be reviewed based on the template configuration information in the template configuration request; reviewing the message template based on the template reviewer in the template configuration request and a preset template review process, and determining a template review result corresponding to the message template; and storing the message template in a message template library based on the template review result.

[0015] In a second aspect, an embodiment of the present invention further provides a message sending device based on a message center, the device comprising:

[0016] A message sending request acquisition module is used to acquire a message sending request submitted by a target application to a message center; the message center is used to connect to various message systems;

[0017] A target message template determination module is used to perform template matching based on each message template preset in a message template library and the message sending request to determine a target message template corresponding to the message sending request;

[0018] The target message sending module is used to generate a message based on the message content requested to be sent in the message sending request and the target message template, determine the target sending message corresponding to the message sending request, and send the target sending message to the message recipient in the message sending request through the docked message system.

[0019] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising:

[0020] one or more processors;

[0021] a memory for storing one or more programs;

[0022] When the one or more programs are executed by the one or more processors, the one or more processors implement the message sending method based on the message center as provided in any embodiment of the present invention.

[0023] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a message sending method based on a message center as provided in any embodiment of the present invention.

[0024] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the message center-based message sending method provided in any embodiment of the present invention.

[0025] The technical solution of the embodiment of the present invention is to obtain a message sending request submitted by a target application to a message center; the message center is used to connect to various message systems so as to realize unified management and message sending of various message systems based on the message center; template matching is performed based on each message template preset in a message template library and the message sending request, and a target message template corresponding to the message sending request is determined; message generation is performed based on the message content requested to be sent in the message sending request and the target message template, and a target sending message corresponding to the message sending request is determined, thereby improving the efficiency and standardization of message generation, and sending the target sending message to the message recipient in the message sending request through the connected message system, avoiding the omission or delayed sending of important notification messages, and improving the efficiency and accuracy of message sending.

[0026] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0028] Figure 1 This is a flow chart of a message sending method based on a message center provided in Example 1 of the present invention;

[0029] Figure 2 This is a flow chart of a message sending method based on a message center provided in the second embodiment of the present invention;

[0030] Figure 3 This is an architectural diagram of a message center involved in the second embodiment of the present invention;

[0031] Figure 4 This is a structural diagram of a message sending device based on a message center provided in a third embodiment of the present invention;

[0032] Figure 5 The present invention is a structural diagram of an electronic device that implements the message sending method based on a message center according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] Example 1

[0036] Figure 1 A flowchart of a message sending method based on a message center is provided for the first embodiment of the present invention. This embodiment is applicable to the case where a message center is used to generate and send a target message. The method can be executed by a message sending device based on a message center. The message sending device based on a message center can be implemented in the form of hardware and / or software. The message sending device based on a message center can be configured in an electronic device. Figure 1 As shown, the method includes:

[0037] S110 , obtaining a message sending request submitted by a target application to a message center; the message center is used to connect to various message systems.

[0038] Among them, the application may refer to application software (Application, app). The target application may refer to an application that needs to send notification messages to users. In this embodiment, the target application may refer to a user who needs to send notification messages to users through a message system connected to the message center. The message center may refer to a functional module in the operation and maintenance management platform for unified management of notification messages. For example, the message center can be used to connect to various message systems, generate notification messages to be sent based on message templates, and generate message sending logs. A message sending request may refer to a request to generate a notification message to be sent to a user. A message system may refer to a message sending system with different channels. For example, a message system may be, but is not limited to, a message system with a text message sending channel and a message system with an email sending channel.

[0039] In this embodiment, a message sending request involves sending a verification code message to a user client. When a user logs in to an account in the target application, they are required to enter a verification code and click the verification code send control. Based on the user's click of the verification code send control, the target application generates a message sending request and submits it to the message center of the operation and maintenance management platform, which then receives the message sending request submitted by the target application.

[0040] S120: Perform template matching based on each message template preset in the message template library and the message sending request to determine a target message template corresponding to the message sending request.

[0041] Among them, the message template library can refer to a database that stores all pre-set message templates. The message template library can store message templates of various template states. The template states of message templates can be divided into available states and unavailable states. Message templates in the available state can be called directly. Unavailable states can also include offline states and review states. A message template can refer to a message template that can replace key information. For example, key information can be, but is not limited to, the text content that constitutes a verification code, such as information composed of numbers, symbols, and letters. The target message template can refer to a message template that can meet the message sending request.

[0042] In this embodiment, the message sending request includes the message content to be sent to the user, the message recipient, and a message template identifier. The message template identifier can be used to uniquely identify a message template, such as a message template ID. The message template identifier is used to identify a message template that matches the message template identifier from among various message templates preset in a message template library, and this message template is determined as the target message template corresponding to the message sending request.

[0043] S130: Generate a message based on the message content requested to be sent in the message sending request and the target message template, determine the target sending message corresponding to the message sending request, and send the target sending message to the message recipient in the message sending request through the docked message system.

[0044] The message content may refer to the message content that needs to be sent to the user client to notify the user. The target message may refer to the message obtained by replacing the key information in the message template. The message recipient may refer to the user operating the target application.

[0045] In this embodiment, a message sending request is used to send a verification code message to a user client. The variable text in the target message template is replaced using the key information to be replaced contained in the message content, such as the verification code text content, to obtain the target sending message corresponding to the message sending request. The target sending message is then sent to the message recipient in the message sending request via a connected messaging system, such as an SMS service.

[0046] It's important to note that preconfigured message templates fix the unchanging text and use placeholders to define variable text. For example, the login verification code message template reads "...Your verification code for this login is @code@..." "Your verification code for this login is" is fixed text, and "@code@" is a variable placeholder for the verification code. When the SMS is sent, "@code@" is replaced with the actual verification code text. This approach allows for templated notification message content, facilitating subsequent operational analysis of message logs.

[0047] The technical solution of the embodiment of the present invention is to obtain a message sending request submitted by a target application to a message center; the message center is used to connect to various message systems so as to realize unified management and message sending of various message systems based on the message center; template matching is performed based on each message template preset in a message template library and the message sending request, and the target message template corresponding to the message sending request is determined; message generation is performed based on the message content requested to be sent in the message sending request and the target message template, and the target sending message corresponding to the message sending request is determined, thereby improving the efficiency and standardization of message generation, and sending the target sending message to the message recipient in the message sending request through the connected message system, avoiding the omission or delayed sending of important notification messages, and improving the efficiency and accuracy of message sending.

[0048] Based on the above technical solution, the method also includes: obtaining the calling information and preset current limiting threshold of the target message template; the preset current limiting threshold is set when the target message template is pre-configured; comparing the calling information and the preset current limiting threshold to obtain a comparison result, and generating alarm information based on the comparison result.

[0049] Among them, the call information may refer to the call information of the target message template within a preset time period. For example, the call information may include but is not limited to the call frequency and the number of calls. The preset current limiting threshold may refer to the current limiting threshold pre-set for the target message template. In this embodiment, the number of times the target message template is called within the preset time period is obtained according to the type of the preset current limiting threshold corresponding to the target message template, such as the number of times. The acquisition of the call information is related to the preset current limiting threshold corresponding to the target message template. The comparison result may refer to the comparison result between the call information and the preset current limiting threshold. The comparison result can be used to indicate whether the preset current limiting threshold corresponding to the target message template is reasonably set, or whether the target message template is called correctly. The alarm information may refer to information that reminds the administrator in the message center of the operation and maintenance management platform when the call information exceeds the preset current limiting threshold.

[0050] Specifically, the preset flow rate threshold corresponding to the target message template is obtained, and based on the type of the preset flow rate threshold, the call information corresponding to the target message template is obtained. The call information is compared with the preset flow rate threshold to obtain a comparison result. If the comparison result shows that the call information does not exceed the preset flow rate threshold, or the two are equal, no alarm is issued. If the comparison result shows that the call information exceeds the preset flow rate threshold, an alarm message is generated and displayed based on the comparison result.

[0051] Based on the above technical solution, the method also includes: obtaining a template configuration request sent by a template application user; generating a message template to be reviewed based on the template configuration information in the template configuration request; reviewing the message template based on the template reviewer in the template configuration request and the preset template review process, and determining the template review result corresponding to the message template; and storing the message template in a message template library based on the template review result.

[0052] A template configuration request may refer to a request to configure and generate a message template. A template configuration request may include template configuration information, identification configuration information, verification configuration information, template reviewers, and a preset rate limiting threshold. Template configuration information may refer to the information required for the message template to be configured. Template configuration information may include predefined constant and variable text. Identification configuration information may be used to identify the specific application and functional modules within the application to which the message needs to be sent. Verification configuration information may be used to identify the message notification scenario to which the message needs to be sent, as well as the notification channel type of the message sending channel. A template reviewer may be the reviewer responsible for reviewing whether a generated message template is usable or can be decommissioned. A message template awaiting review may be a message template with an unavailable status. A message template awaiting review may be a newly created message template, a modified message template, or a message template that has been re-applied for online use. A preset template review process may refer to the predefined process for template reviewers to review message templates. A template review result may refer to the template reviewer's review of whether the message template is usable. For example, if all template reviewers approve the request, the generated message template is usable, meaning it is online.

[0053] Specifically, the message template must be reviewed by the technical administrator, business administrator and channel manager among the template reviewers before it goes online or offline, so that the specific person in charge can be found when tracing the source of the message later. The preset template review process includes: template information confirmation, technical administrator review, business administrator review and channel manager review. Template information confirmation is used for the template application user to confirm the generated message template, submitted identification configuration information, verification configuration information, template reviewer and preset flow limiting threshold. The review is carried out in the order of technical administrator review, business administrator approval and channel manager approval, and the rationality of the generated message template is reviewed. If any one of the template reviewers fails the review, the message template will be returned to the template application user for modification. When the message template passes the review, the message template will be stored in the message template library and the template status of the message template will be marked as available.

[0054] In this embodiment, to manage and control the application and use of message templates, the creation, modification, and decommissioning of message templates must undergo a pre-set template review process before the modifications take effect. The message template lifecycle primarily consists of three states: Under Review, Effective, and Decommissioned. Within these three states, newly created, modified, or re-launched message templates enter the Under Review state and, after approval, enter the Effective state. An already-effective template will first enter the Under Review state after being modified or decommissioned, and will become effective again or be decommissioned after approval.

[0055] It should be noted that after the review is passed, the reviewed message template can be associated with its identification configuration information, verification configuration information, template reviewer and preset current limiting threshold, so that when selecting the message template, the identification configuration information, verification configuration information, template reviewer and preset current limiting threshold associated with the message template can be obtained.

[0056] Example 2

[0057] Figure 2 This is a flowchart of a message sending method based on a message center provided by the second embodiment of the present invention. This embodiment describes in detail the process of determining the target message template based on the above embodiment. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 2 As shown, the method includes:

[0058] S210: Obtain a message sending request submitted by the target application to the message center; the message center is used to connect to various message systems.

[0059] S220: Perform template matching based on each message template preset in the message template library and identification information in the message sending request to determine a candidate message template corresponding to the message sending request.

[0060] The identification information includes at least one of a message template identifier, an application identifier, a module identifier, and a microservice identifier. The identification information may refer to the identifiers of the target application and functional module to which the message is to be sent. This identification information can be used to preliminarily screen matching message templates from the message template library. The message template identifier may refer to the message template ID. The message template identifier may be an ID automatically generated by the message center when the message template is created. The application identifier may refer to the target application ID. The module identifier may refer to the ID of the target functional module within the target application. The microservice identifier may refer to the ID of the target microservice within the target functional module. For example, a user logging into a payment application requires entering a verification code received on their mobile phone. The target application is a payment application, the target functional module is an account login functional module, and the target microservice is a verification code service within the account login functional module. Another example is a payment application, the target functional module is a payment functional module, and the target microservice is a QR code payment service within the payment functional module. Candidate message templates may be message templates preliminarily screened using the identification information.

[0061] Specifically, template matching is performed based on the identification configuration information associated with each message template preset in the message template library and the identification information in the message sending request, and the message template that matches the identification information is determined as the candidate message template. In this embodiment, the identification information in most cases only includes the application identification, module identification, and microservice identification.

[0062] S230: Verify the candidate message templates based on the template verification information in the message sending request, and determine the target message template corresponding to the message sending request.

[0063] Among them, the template verification information includes: at least one of the message notification scenario and the notification channel type under the message notification scenario. The template verification information may refer to the message notification scenario to which this message is sent, and the notification channel type of the message sending channel. The template verification message can be used to verify whether the message template that has been preliminarily screened is applicable to the notification scenario and channel of this message sending. The message notification scenario may refer to the scenario type to which the message notification belongs. For example, the message notification scenario may be, but not limited to, a system failure, a performance alarm, or a security incident. The notification channel type under the message notification scenario may refer to the notification channel type for sending the message to the user. For example, the notification channel type may be, but not limited to, SMS or email. The message center is pre-connected with the corresponding message system for each notification channel type. For example, the message center is pre-connected with an SMS service platform that sends messages via SMS channels, and the message center can also be pre-connected with an email service platform that sends messages via email channels.

[0064] Specifically, based on the template verification information in the message sending request and the verification configuration information associated with the candidate message template, a consistency check is performed, and the candidate message template that matches the template verification information in the message sending request is determined as the target message template corresponding to the message sending request.

[0065] S240: Generate a message based on the message content requested to be sent in the message sending request and the target message template, determine the target sending message corresponding to the message sending request, and send the target sending message to the message recipient in the message sending request through the docked message system.

[0066] Based on the above technical solution, "sending a target message to the message recipient in the message sending request through the docked message system" may include: temporarily storing the target message in a message queue, and extracting multiple target messages from the message queue; performing priority sorting based on the template verification information and preset sorting rules corresponding to each target message, determining the message sending sequence corresponding to each target message and the message system corresponding to each target message; and sending the target message according to the message sending sequence and the message system.

[0067] The message queue can be used to arrange messages to be sent in a predetermined order. For example, the message queue can arrange messages to be sent in the order in which they were generated. The preset arrangement rule can refer to a preset rule for arranging the sending priority of the messages to be sent. The message sending sequence can refer to a sequence obtained by sorting the messages to be sent in descending order of priority.

[0068] Specifically, the target send message is temporarily stored in a message queue, and multiple target send messages are extracted from the message queue. A weighted calculation is performed based on the preset weight of each message in the template verification information and the preset level corresponding to each message to determine the priority score corresponding to each extracted target send message. The target send messages are then arranged in descending order to obtain a message sending sequence. The template verification information in the message sending request to which each target send message belongs is used to determine the message system to be used for sending the message, so that the message center can send the target send messages in an orderly manner through the pre-connected message system.

[0069] The technical solution of the embodiment of the present invention determines the candidate message template corresponding to the message sending request by performing template matching based on the various message templates preset in the message template library and the identification information in the message sending request, thereby preliminarily screening out the candidate message templates that are applicable to the specific application and specific functional module to be sent this time, and realizing screening out the candidate message template from the numerous message templates in the message template library; verifies the candidate message template based on the template verification information in the message sending request, thereby performing more accurate matching and screening on the candidate message templates obtained by the preliminary screening, and determining the target message template corresponding to the message sending request, saving the resources occupied by the message center in the process of determining the target message template, reducing the computing volume, improving the efficiency and accuracy of determining the target message template, and further improving the message generation accuracy and message sending efficiency.

[0070] Based on the above technical solution, the message center can also be used to support the analysis and query of message logs generated after message sending, such as basic information query and aggregate information query. Among them, basic information query can be used to query message sending logs, such as filtering queries based on the information registered by the message template. Aggregate information query can be used to aggregate the message sending volume of a certain message based on the registration information in the message template (such as template configuration request), such as the message sending volume of a certain message template in the past month, to investigate changes in message volume.

[0071] Optionally, an embodiment of the present invention further provides an architecture diagram of a message center. Figure 3 This is the architecture diagram of the message center. Figure 3 The overall architecture of the message center can be divided into three parts: the frontend, the backend, and persistent storage. The frontend is primarily responsible for interactive functions such as displaying message templates and querying and analyzing message logs in the message center. The backend is responsible for implementing query functions such as frontend templates and log analysis, as well as message sending. The persistent storage layer is primarily used for interaction with the backend logic, storing data such as message templates, message notification logs, and operational analysis logs.

[0072] The core modules of this invention are divided into three parts: message template management, message sending management, and message log query and analysis management. Message template management is a key component of the detailed management of the message center. It involves the design, creation, and maintenance of message templates to ensure the accuracy, clarity, and effectiveness of notifications. Message sending management is the foundational module of the message center. In addition to performing specific message sending tasks, it also considers the high availability of the overall functionality.

[0073] For example, the message sending service is divided into a message request receiving end and a message sending execution end. Among them, the message request receiving end is responsible for receiving the message sending request, parsing the request, filtering the template and verifying it, generating a message message based on the final filtered message template, that is, the target sending message, and finally temporarily storing the message message to be sent in the message queue to improve the high availability of the message sending function and avoid congestion and crash of the message sending function under high traffic. The message sending execution end is responsible for pulling messages from the message queue and sending messages in an orderly manner according to the urgency of the task. Finally, the message sending log and template call log are recorded in the persistent storage component.

[0074] In this embodiment, by customizing message templates, special message templates can be created according to different notification scenarios (such as system failures, performance alerts, security incidents, etc.), ensuring that messages are accurately classified and processed, thereby improving the accuracy and effectiveness of message processing. For example, different notification templates can be customized according to different user needs or team requirements to provide personalized notification content and format. It can also support the specific needs of different scenarios, such as different business lines or application scenarios, and customize notification strategies to improve business adaptability. Through message queues and priority sorting, priorities can be set according to the type and urgency of the message to be notified, ensuring that critical messages are processed in a timely manner, reducing response time, and reducing manual intervention, thereby improving overall processing efficiency. As a unified platform for docking multiple message systems, the message center can help operation and maintenance personnel accurately track the root cause of the problem through recorded historical data and event records, and facilitate problem review and root cause analysis. The message center ensures that information is presented in a clear and consistent manner through templated structured notifications, improving the understanding and operational efficiency of users and operation and maintenance personnel. Templated notification messages provide a consistent data format, facilitating structured data analysis and report generation. At the same time, templates ensure that all notification messages follow consistent formats and standards, simplifying the message maintenance and update process. Detailed analysis reports can then be generated to help evaluate system status, operational effectiveness, and optimization measures.

[0075] The following is an embodiment of a message sending device based on a message center provided in an embodiment of the present invention. The device and the message sending methods based on a message center in the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the message sending device based on a message center, please refer to the embodiment of the message sending method based on a message center.

[0076] Example 3

[0077] Figure 4 This is a structural diagram of a message sending device based on a message center provided in the third embodiment of the present invention. Figure 4As shown, the device includes: a message sending request acquisition module 410, a target message template determination module 420 and a target message sending module 430.

[0078] Among them, the message sending request acquisition module 410 is used to obtain the message sending request submitted by the target application to the message center; the message center is used to connect to various message systems; the target message template determination module 420 is used to perform template matching based on the various message templates preset in the message template library and the message sending request, and determine the target message template corresponding to the message sending request; the target sending message sending module 430 is used to generate a message based on the message content requested to be sent in the message sending request and the target message template, determine the target sending message corresponding to the message sending request, and send the target sending message to the message recipient in the message sending request through the connected message system.

[0079] The technical solution of the embodiment of the present invention is to obtain a message sending request submitted by a target application to a message center; the message center is used to connect to various message systems so as to realize unified management and message sending of various message systems based on the message center; template matching is performed based on each message template preset in a message template library and the message sending request, and the target message template corresponding to the message sending request is determined; message generation is performed based on the message content requested to be sent in the message sending request and the target message template, and the target sending message corresponding to the message sending request is determined, thereby improving the efficiency and standardization of message generation, and sending the target sending message to the message recipient in the message sending request through the connected message system, avoiding the omission or delayed sending of important notification messages, and improving the efficiency and accuracy of message sending.

[0080] Based on the above technical solution, the target message template determination module 420 is specifically used to: perform template matching based on the various message templates preset in the message template library and the identification information in the message sending request to determine the candidate message template corresponding to the message sending request; verify the candidate message template based on the template verification information in the message sending request to determine the target message template corresponding to the message sending request.

[0081] Based on the above technical solution, the identification information includes: at least one of a message template identification, an application identification, a module identification and a microservice identification; the template verification information includes: at least one of a message notification scenario and a notification channel type under the message notification scenario.

[0082] Based on the above technical solution, the target message sending module 430 is specifically used to: temporarily store the target message in the message queue, and extract multiple target messages from the message queue; perform priority sorting based on the template verification information and preset sorting rules corresponding to each target message, determine the message sending sequence corresponding to each target message and the message system corresponding to each target message; send the target message according to the message sending sequence and the message system.

[0083] On the basis of the above technical solution, the device further includes:

[0084] The preset current limiting threshold acquisition module is used to obtain the call information of the target message template and the preset current limiting threshold; the preset current limiting threshold is set when the target message template is pre-configured;

[0085] The alarm information generation module is used to compare the call information with the preset current limiting threshold to obtain a comparison result, and generate alarm information based on the comparison result.

[0086] On the basis of the above technical solution, the device further includes:

[0087] The template configuration request acquisition module is used to obtain the template configuration request sent by the template application user;

[0088] A message template generation module, configured to generate a message template to be reviewed based on the template configuration information in the template configuration request;

[0089] A template review result determination module is used to review the message template based on the template reviewer in the template configuration request and the preset template review process, and determine the template review result corresponding to the message template;

[0090] The message template storage module is used to store the message template in the message template library based on the template review result.

[0091] The message sending device based on the message center provided in the embodiment of the present invention can execute the message sending method based on the message center provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the message sending method based on the message center.

[0092] It is worth noting that in the above-mentioned embodiment of message sending based on the message center, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0093] Example 4

[0094] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0095] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0096] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0097] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the message center-based message sending method.

[0098] In some embodiments, the message center-based message sending method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the message center-based message sending method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the message center-based message sending method by any other appropriate means (for example, by means of firmware).

[0099] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0101] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0102] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0103] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0104] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0105] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the message center-based message sending method provided in any embodiment of the present application.

[0106] During the implementation of the computer program product, the computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The program product and the message sending method based on the message center disclosed in each embodiment of the present application belong to the same inventive concept, so they are not described here.

[0107] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0108] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A message sending method based on a message center, characterized in that: Applicable to the message center, including: Obtain a message sending request submitted by the target application to the message center; the message center is used to connect to various message systems; Performing template matching based on each message template preset in a message template library and the message sending request to determine a target message template corresponding to the message sending request; A message is generated based on the message content requested to be sent in the message sending request and the target message template, a target sending message corresponding to the message sending request is determined, and the target sending message is sent to the message recipient in the message sending request through the docked message system.

2. The method according to claim 1, characterized in that The performing template matching on each message template preset in the message template library and the message sending request to determine a target message template corresponding to the message sending request includes: Performing template matching based on each message template preset in a message template library and identification information in the message sending request to determine a candidate message template corresponding to the message sending request; The candidate message template is verified based on the template verification information in the message sending request to determine the target message template corresponding to the message sending request.

3. The method according to claim 2, characterized in that The identification information includes: at least one of a message template identification, an application identification, a module identification, and a microservice identification; The template verification information includes: at least one of a message notification scenario and a notification channel type in the message notification scenario.

4. The method according to claim 1, wherein The sending of the target message to the message recipient in the message sending request through the connected message system includes: Temporarily storing the target send message in a message queue, and extracting multiple target send messages from the message queue; Prioritize messages sent by each target based on template verification information and preset sorting rules, and determine the message sending sequence and message system corresponding to each target message; The target message is sent according to the message sending sequence and the message system.

5. The method according to claim 1, wherein The method further comprises: Obtaining call information and a preset flow limiting threshold of a target message template; the preset flow limiting threshold is set when the target message template is pre-configured; A comparison result is obtained based on the call information and a preset current limiting threshold, and an alarm message is generated based on the comparison result.

6. The method according to claim 1, characterized in that The method further comprises: Get the template configuration request sent by the template application user; generating a message template to be reviewed based on the template configuration information in the template configuration request; Reviewing the message template based on the template reviewer in the template configuration request and a preset template review process, and determining a template review result corresponding to the message template; The message template is stored in a message template library based on the template review result.

7. A message sending device based on a message center, characterized in that: The device comprises: A message sending request acquisition module is used to acquire a message sending request submitted by a target application to a message center; the message center is used to connect to various message systems; A target message template determination module is used to perform template matching based on each message template preset in a message template library and the message sending request to determine a target message template corresponding to the message sending request; The target message sending module is used to generate a message based on the message content requested to be sent in the message sending request and the target message template, determine the target sending message corresponding to the message sending request, and send the target sending message to the message recipient in the message sending request through the docked message system.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the message sending method based on the message center as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the message sending method based on the message center as described in any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the message sending method based on the message center as described in any one of claims 1 to 6.