Message sending method and device and related product
By presetting message sending templates and rules in advance, and determining target templates and rules based on user data, the problem of high development costs in the existing technology is solved, and the effects of reducing development costs and improving message sending efficiency are achieved.
Patent Information
- Application Number
- CN202411524551.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, due to the different requirements of each user for receiving messages, developers need to write code for each requirement, resulting in high development costs.
By obtaining the user data of the user's user data, the user data of the message sending rules and the target user, the target message sends the template and rules according to the user data. If there is a fixed or personalized configuration in the rules And send messages according to the rules.
Avoid writing code for each user, reducing development costs and improving the efficiency and convenience of message sending.
Smart Images

Figure CN119363699A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a message sending method, device and related products. Background Art
[0002] The sending of messages plays a vital role in modern communication and information technology. It can bring many benefits and conveniences to users. For example, insurance companies can send insurance business reminder messages to relevant users through message sending. However, due to the different requirements of each user for receiving messages, the relevant technology usually writes codes for each requirement of the user, so as to realize the sending of messages for different requirements, which may lead to high development costs. Therefore, how to reduce development costs is a key issue that technicians in this field are concerned about. Summary of the invention
[0003] Based on the above problems, the present application provides a message sending method, device and related products to reduce development costs. The embodiments of the present application disclose the following technical solutions:
[0004] In a first aspect, the present application discloses a message sending method, comprising:
[0005] Obtain a message sending template set, a message sending rule set, and user data corresponding to the target user;
[0006] Determine, according to the user data, a target message sending template in the message sending template set corresponding to the user data, and determine, according to the target message sending template, a target message sending rule in the message sending rule set corresponding to the target message sending template;
[0007] If the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a fixed rule configuration in the target message sending rule, fill the user data into the target message sending template to obtain the target message;
[0008] According to the fixed rule configuration, the target message is sent to the target user.
[0009] In an achievable implementation, the user data includes a target message sending type, wherein the message sending template set includes message sending templates of different message sending types; and determining, according to the user data, a target message sending template in the message sending template set corresponding to the user data, comprises:
[0010] The message sending templates of the different message sending types are screened according to the target message sending type, and a target message sending template corresponding to the target message sending type is obtained from the message sending templates of the different message sending types.
[0011] In an achievable implementation, the target message sending template includes a target template identifier, the message sending rule set includes a rule identifier set corresponding to the message sending rule set, wherein one message sending rule corresponds to one rule identifier; and determining, according to the target message sending template, a target message sending rule in the message sending rule set corresponding to the target message sending template includes:
[0012] Screening the rule identifier set according to the target template identifier to obtain a target rule identifier in the rule identifier set that is identical to the target template identifier;
[0013] A target message sending rule is determined according to the target rule identifier.
[0014] In an achievable implementation, after determining the target message sending rule corresponding to the target message sending template in the message sending rule set according to the target message sending template, the method further includes:
[0015] If the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a personalized rule configuration in the target message sending rule, fill the user data into the target message sending template to obtain the target message;
[0016] According to the personalized rule configuration, the target message is sent to the target user.
[0017] In an achievable implementation, before acquiring the message sending template set, the message sending rule set and the user data corresponding to the target user, the method further includes:
[0018] Obtaining a message sending requirement corresponding to the target user;
[0019] A personalized rule configuration is obtained according to the message sending requirement, and a target message sending rule is obtained according to the personalized configuration.
[0020] In a second aspect, the present application discloses a message sending device, comprising:
[0021] A user data acquisition unit, used to acquire a message sending template set, a message sending rule set and user data corresponding to a target user;
[0022] a template rule determination unit, configured to determine, according to the user data, a target message sending template in the message sending template set corresponding to the user data, and determine, according to the target message sending template, a target message sending rule in the message sending rule set corresponding to the target message sending template;
[0023] a target message obtaining unit, configured to fill the user data into the target message sending template to obtain the target message if the target message sending rule indicates that the target message sending template is not in a stop sending state and there is a fixed rule configuration in the target message sending rule;
[0024] The target message sending unit is used to send the target message to the target user according to the fixed rule configuration.
[0025] In an achievable implementation, the template rule determination unit is specifically used to:
[0026] The message sending templates of the different message sending types are screened according to the target message sending type, and a target message sending template corresponding to the target message sending type is obtained from the message sending templates of the different message sending types.
[0027] In an achievable implementation, the template rule determination unit is specifically used to:
[0028] Screening the rule identifier set according to the target template identifier to obtain a target rule identifier in the rule identifier set that is identical to the target template identifier;
[0029] A target message sending rule is determined according to the target rule identifier.
[0030] In one feasible embodiment, the device further includes:
[0031] A user data filling unit, configured to fill the user data into the target message sending template to obtain a target message if the target message sending rule indicates that the target message sending template is not in a stop sending state and there is a personalized rule configuration in the target message sending rule;
[0032] A message sending unit is configured to send the target message to the target user according to the personalized rule configuration.
[0033] In one feasible embodiment, the device further includes:
[0034] A sending requirement obtaining unit, used to obtain a message sending requirement corresponding to the target user;
[0035] The sending rule obtaining unit is used to obtain a personalized rule configuration according to the message sending requirement, and obtain a target message sending rule according to the personalized configuration.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0037] Memory for storing computer programs;
[0038] A processor is used to implement the steps of the message sending method in the first aspect when executing the computer program.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the message sending method in the first aspect are implemented.
[0040] Compared with the prior art, this application has the following beneficial effects:
[0041] In this application, firstly, a message sending template set, a message sending rule set and user data corresponding to the target user are obtained; thereafter, according to the user data, the target message sending template corresponding to the user data in the message sending template set is determined, and according to the target message sending template, the target message sending rule corresponding to the target message sending template in the message sending rule set is determined; finally, if the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a fixed rule configuration in the target message sending rule, the user data is filled into the target message sending template, the target message is obtained, and according to the fixed rule configuration, the target message is sent to the target user. It can be seen that in this application, the template and rules for message sending can be preset in advance, and the sending of the target message can be realized under the action of the target message sending template and the target message sending rule corresponding to the user data. In this way, in this application, the situation that the code needs to be written for each requirement in the related art can be avoided, thereby reducing the development cost, and thus improving the efficiency and convenience of message sending to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 A flowchart of a message sending method provided in an embodiment of the present application;
[0044] Figure 2 A full flow chart of a message sending method provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of the structure of a message sending device provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] It should be noted that the message sending method, device and related products provided by the present application are used in the field of data processing technology. The above are only examples and do not limit the application field of the method and device names provided by the present application.
[0049] As described above, message sending plays a vital role in modern communication and information technology, which can bring many benefits and conveniences to users. For example, insurance companies can send insurance business reminder messages to relevant users through message sending. However, due to the different requirements of each user for receiving messages, the relevant technology usually writes code for each requirement of the user, so as to realize the sending of messages with different requirements.
[0050] For example, user A may have requirement A for receiving messages, and user B may have requirement B for receiving messages. In this case, in the relevant technical solutions, developers usually write code A for requirement A and code B for requirement B, and then send messages to user A based on code A and to user B based on code B, which may result in high development costs. Therefore, how to reduce development costs is a key issue that technicians in this field are concerned about.
[0051] Therefore, the inventor proposes the technical solution of this application, aiming to reduce development costs. In the embodiment of this application, a message sending template set, a message sending rule set and user data corresponding to the target user are first obtained, and then the target message sending template corresponding to the user data in the message sending template set is determined according to the user data, and the target message sending rule corresponding to the target message sending template in the message sending rule set is determined according to the target message sending template. Finally, if the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a fixed rule configuration in the target message sending rule, the user data is filled into the target message sending template, the target message is obtained, and the target message is sent to the target user according to the fixed rule configuration.
[0052] It can be seen that in this application, the template and rules for message sending can be preset in advance, and the target message sending template and target message sending rules corresponding to the user data can be used to realize the sending of the target message. In this way, in this application, it is possible to avoid the situation in the related art where code needs to be written for each requirement, thereby reducing the development cost and improving the efficiency and convenience of message sending to a certain extent.
[0053] The method provided in the embodiment of the present application may be executed by software on a terminal device. The terminal device may be, for example, a mobile phone, a tablet computer, a computer, etc. The software may be, for example, system software.
[0054] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0055] The following describes a message sending method provided by the present application through an embodiment.
[0056] See also Figure 1 , which is a flow chart of a message sending method provided by an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0057] S101: Acquire a message sending template set, a message sending rule set, and user data corresponding to a target user.
[0058] In this step, the message sending template set includes message sending templates of different message sending types, and the message sending rule set includes multiple different message sending rules, wherein the message sending template set and the message sending rule set are constructed in advance based on the integration of message sending requirements of different users, which can avoid code redundancy and reduce development costs.
[0059] In an achievable implementation, the present application obtains user data from the policy information of the target user, and the user data is used to support the sending of a target message corresponding to the target user. The user data includes a target message sending type, wherein the target message sending type includes any one of the following: renewal receivable type, return visit type, and underwriting electronic policy. It should be noted that the user data also includes a message receiving type and user parameter information, wherein the message receiving type includes SMS and email, and the user parameter information includes name, policy number, claim number, and insured amount. It should also be noted that the user data mentioned in this application are only some examples and are not specifically limited here.
[0060] The data collection and processing in this application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in practice, and the informed consent or separate consent of the personal information subject should be obtained. The subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0061] S102: Determine, based on the user data, a target message sending template in the message sending template set that corresponds to the user data, and determine, based on the target message sending template, a target message sending rule in the message sending rule set that corresponds to the target message sending template.
[0062] In this step, the message sending templates of different message sending types can be screened according to the target message sending type to determine the message sending type that is the same as the target message sending type among the different message sending types, and based on the message sending type that is the same as the target message sending type among the different message sending types, the target message sending template among the message sending templates of different message sending types can be determined. In this way, the corresponding message sending template can be quickly screened according to the target message sending type.
[0063] As shown in Table 1, Table 1 is a schematic table of a target message sending template in a message sending method provided in an embodiment of the present application. In Table 1, the target message sending template includes a target template identifier, a target message receiving type, a target message sending type, a target sending template content, and target user parameter information, wherein the target message sending type can be used as the template name of the target message sending template, the target template identifier can be constructed using Templateid in a sql statement, the target message receiving type can be constructed using Smstype in a sql statement, the target message sending type can be constructed using Smstitle in a sql statement, the target sending template content can be constructed using Smscontent in a sql statement, and the target user parameter information can be constructed using Contentparams in a sql statement.
[0064] Table 1
[0065]
[0066] Furthermore, the message sending rule set includes a rule identifier set corresponding to the message sending rule set, wherein one message sending rule corresponds to a rule identifier. It should be noted that the rule identifier is the same as the template identifier, that is, the rule identifier that is the same as the template identifier can be found through the template identifier. Specifically, in the present application, the rule identifier set can be screened according to the target template identifier to obtain a target rule identifier that is the same as the target template identifier in the rule identifier set, and then the target message sending rule in the message sending rule set is determined according to the target rule identifier. In this way, the present application can connect the message sending templates and message sending rules that are separated from each other under the action of the template identifier and the rule identifier, so as to effectively realize the management of the message sending templates and message sending rules.
[0067] As shown in Table 2, Table 2 is a schematic table of target message sending rules in a message sending method provided in an embodiment of the present application. In Table 2, the target message sending rule includes a target rule identifier, a target rule element description, a message sending execution type and a rule execution priority, wherein the target rule element description includes the sending object (policyholder or insured or beneficiary), the sending frequency, the template status (whether to suspend sending and the validity period of suspension sending) and the rule configuration (personalized rule configuration or fixed rule configuration), the message sending execution type includes a string (String), sql, function (function), number (number) and interface (interface), and the template status is used to verify whether the target message sending template is not in a stopped sending state, that is, the present application can realize the operation of the code under the action of the message sending execution type, thereby realizing the successful sending of the message, and the diversity of the message sending execution type can easily face their own complex business scenarios without being limited to a fixed rule format.
[0068] Table 2
[0069] Target rule identifier Target rule element description Message sending execution type Rule execution priority 001 Sending Object String 3 001 Sending frequency Sql 4 001 Template Status String / Sql 2 001 Rule configuration function / Sql 1 .... .... .... ....
[0070] It should also be noted that the fixed rule configuration in the target message sending rule can be understood as a rule configuration that is not set according to the user's message sending requirements. For example, if the message is not sent according to the message sending requests corresponding to user A, user B and user C respectively, a message must be sent to user A, user B and user C once a week. The personalized rule configuration in the target message sending rule can be understood as a rule configuration that is set according to the user's message sending requirements. For example, if the message is sent according to the message sending requests corresponding to user A, user B and user C respectively, a message is sent to user A and user C once a week, and a message is sent to user B once a month.
[0071] S103: If the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a fixed rule configuration in the target message sending rule, fill the user data into the target message sending template to obtain the target message.
[0072] It should be noted that before the present application executes step S103, it is also necessary to determine whether the target message sending rule indicates that the target message sending template is not in a stop sending state, and whether there is a fixed rule configuration in the target message sending rule. It is understandable that the present application needs to determine in advance whether the target message sending template is not in a template state of stopping sending messages, so as to intuitively confirm that the template can be used.
[0073] If the target message sending rule indicates that the target message sending template is not in a stopped sending state, and there is a fixed rule configuration in the target message sending rule, the user data can be filled in the target message sending template to obtain the target message. It should be noted that if the target message sending rule indicates that the target message sending template is not in a stopped sending state, and there is a personalized rule configuration in the target message sending rule, the user data can be filled in the target message sending template to obtain the target message. In this way, the generation of the target message can be realized according to different rule configurations in the present application, which can not only ensure the accuracy of the subsequent target message sending, but also improve the controllability of message sending.
[0074] It should be noted that if the target message sending rule indicates that the target message sending template is in a stopped sending state, it is also necessary to determine whether the validity period of the target message sending template in the stopped sending state has expired. If the validity period of the target message sending template in the stopped sending state has expired, the subsequent message generation and sending process will continue; if the validity period of the target message sending template in the stopped sending state has not expired, the subsequent message generation and sending process will be stopped.
[0075] S104: Send the target message to the target user according to the fixed rule configuration.
[0076] In the present application, the target message can be sent to the target user according to the fixed rule configuration or personalized rule configuration in the target message sending rule. In the present application, the target message can also not be sent to the target user according to the personalized rule configuration in the target message sending rule. For example, if the user data of user D is set to not send a message, the sending of the message is directly skipped.
[0077] It should also be noted that in the present application, before obtaining the message sending template set, the message sending rule set and the user data corresponding to the target user, the message sending requirements corresponding to the target user can also be obtained, after which a personalized rule configuration is generated according to the message sending requirements, and the target message sending rules are obtained according to the personalized configuration. It should also be noted that in the present application, multiple message sending templates in the message sending template set can be exported, and the message sending templates can be viewed in a visual interface. In this way, the present application can support the early generation of personalized rules, thereby reducing development costs and improving development efficiency.
[0078] like Figure 2 As shown, Figure 2 A full flow chart of a message sending method provided in an embodiment of the present application. Figure 2 First, the target message sending template in the message sending template set can be determined according to the user data of the target user, and the target message sending rule in the message sending rule set can be determined according to the target message sending template. After that, it can be determined whether the target message sending rule indicates that the target message sending template is not in a stop sending state. If the target message sending rule indicates that the target message sending template is not in a stop sending state, it is determined whether there is a personalized rule configuration in the target message sending rule; if the target message sending rule indicates that the target message sending template is in a stop sending state, the subsequent generation and sending process of the target message is stopped.
[0079] If there is a personalized rule configuration in the target message sending rule, fill the user data into the target message sending template to generate the target message, and send the target message to the target user according to the personalized rule configuration; if there is no personalized rule configuration in the target message sending rule, determine whether there is a fixed rule configuration in the target message sending rule. If there is a fixed rule configuration in the target message sending rule, fill the user data into the target message sending template to generate the target message, and send the target message to the target user according to the fixed rule configuration; if there is no fixed rule configuration in the target message sending rule, generate a reminder notification and send the reminder notification to the developer. This can ensure the accuracy of the target message sending, thereby improving the user experience.
[0080] In summary, in this embodiment, the template and rules for message sending can be preset in advance, and the target message sending template and target message sending rules corresponding to the user data can be used to realize the sending of the target message. In this way, the situation in which code needs to be written for each requirement in the related art can be avoided in this application, thereby reducing the development cost and improving the efficiency and convenience of message sending to a certain extent.
[0081] A message sending device provided in an embodiment of the present application is introduced below. The message sending device described below and the message sending method described above can refer to each other.
[0082] See also Figure 3 , which is a schematic diagram of the structure of a message sending device provided in an embodiment of the present application, such as Figure 3 As shown, the message sending device includes:
[0083] A user data acquisition unit 301 is used to acquire a message sending template set, a message sending rule set and user data corresponding to a target user;
[0084] The template rule determination unit 302 is used to determine, according to the user data, a target message sending template corresponding to the user data in the message sending template set, and determine, according to the target message sending template, a target message sending rule corresponding to the target message sending template in the message sending rule set;
[0085] A target message obtaining unit 303 is configured to fill the user data into the target message sending template to obtain a target message if the target message sending rule indicates that the target message sending template is not in a stop sending state and there is a fixed rule configuration in the target message sending rule;
[0086] The target message sending unit 304 is configured to send the target message to the target user according to the fixed rule configuration.
[0087] In an achievable implementation, the template rule determination unit 302 is specifically configured to:
[0088] The message sending templates of the different message sending types are screened according to the target message sending type, and a target message sending template corresponding to the target message sending type is obtained from the message sending templates of the different message sending types.
[0089] In an achievable implementation, the template rule determination unit 302 is specifically configured to:
[0090] Screening the rule identifier set according to the target template identifier to obtain a target rule identifier in the rule identifier set that is identical to the target template identifier;
[0091] A target message sending rule is determined according to the target rule identifier.
[0092] In one feasible embodiment, the device further includes:
[0093] A user data filling unit, configured to fill the user data into the target message sending template to obtain a target message if the target message sending rule indicates that the target message sending template is not in a stop sending state and there is a personalized rule configuration in the target message sending rule;
[0094] A message sending unit is configured to send the target message to the target user according to the personalized rule configuration.
[0095] In one feasible embodiment, the device further includes:
[0096] A sending requirement obtaining unit, used to obtain a message sending requirement corresponding to the target user;
[0097] The sending rule obtaining unit is used to obtain a personalized rule configuration according to the message sending requirement, and obtain a target message sending rule according to the personalized configuration.
[0098] The message sending device provided in the embodiment of the present application has the same beneficial effects as the message sending method provided in the above embodiment, so they will not be described in detail.
[0099] Electronic device embodiment
[0100] See also Figure 4 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, including:
[0101] A memory 11, used for storing computer programs;
[0102] The processor 12 is used to implement the steps of the message sending method described in any of the above method embodiments when executing the computer program.
[0103] In this embodiment, the device may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet computer, a PDA, or a portable computer.
[0104] The device may include a memory 11, a processor 12 and a bus 13. The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. The memory 11 may be an internal storage unit of the device in some embodiments, such as a hard disk of the device. The memory 11 may also be an external storage device of the device in other embodiments, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 may be used not only to store application software and various types of data installed on the device, but also to temporarily store data that has been output or is to be output.
[0105] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run program codes stored in the memory 11 or process data.
[0106] The bus 13 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0107] Furthermore, the device may also include a network interface 14, which may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the device and other electronic devices.
[0108] Optionally, the device may further include a user interface 15, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 15 may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the device and to display a visual user interface.
[0109] Figure 4 Only the device with components 11-15 is shown, and it can be understood by those skilled in the art that Figure 4 The structure shown does not constitute a limitation of the device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.
[0110] Readable storage medium embodiment
[0111] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned message sending method are implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0112] It should be noted that the message sending method provided by the present invention can be used in the field of data processing technology. The above is only an example and does not limit the application field of the message sending method provided by the present invention.
[0113] It should also be noted that the "first" and "second" (if any) in the names such as "first" and "second" mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0114] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0115] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0116] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0117] The above is a detailed introduction to a message sending method, device and related products provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A message sending method, characterized in that: include: Obtain a message sending template set, a message sending rule set, and user data corresponding to the target user; Determine, according to the user data, a target message sending template in the message sending template set corresponding to the user data, and determine, according to the target message sending template, a target message sending rule in the message sending rule set corresponding to the target message sending template; If the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a fixed rule configuration in the target message sending rule, fill the user data into the target message sending template to obtain the target message; According to the fixed rule configuration, the target message is sent to the target user.
2. The method according to claim 1, characterized in that The user data includes a target message sending type, wherein the message sending template set includes message sending templates of different message sending types; The determining, according to the user data, a target message sending template in the message sending template set corresponding to the user data comprises: The message sending templates of the different message sending types are screened according to the target message sending type, and a target message sending template corresponding to the target message sending type is obtained from the message sending templates of the different message sending types.
3. The method according to claim 1, characterized in that The target message sending template includes a target template identifier, and the message sending rule set includes a rule identifier set corresponding to the message sending rule set, wherein one message sending rule corresponds to one rule identifier; The determining, according to the target message sending template, a target message sending rule in the message sending rule set corresponding to the target message sending template comprises: Screening the rule identifier set according to the target template identifier to obtain a target rule identifier in the rule identifier set that is identical to the target template identifier; A target message sending rule is determined according to the target rule identifier.
4. The method according to claim 1, characterized in that After determining, according to the target message sending template, a target message sending rule corresponding to the target message sending template in the message sending rule set, the method further includes: If the target message sending rule indicates that the target message sending template is not in a stop sending state, and there is a personalized rule configuration in the target message sending rule, fill the user data into the target message sending template to obtain the target message; According to the personalized rule configuration, the target message is sent to the target user.
5. The method according to claim 4, characterized in that Before acquiring the message sending template set, the message sending rule set and the user data corresponding to the target user, the method further includes: Obtaining a message sending requirement corresponding to the target user; A personalized rule configuration is obtained according to the message sending requirement, and a target message sending rule is obtained according to the personalized configuration.
6. A message sending device, characterized in that: include: A user data acquisition unit, used to acquire a message sending template set, a message sending rule set and user data corresponding to a target user; a template rule determination unit, configured to determine, according to the user data, a target message sending template in the message sending template set corresponding to the user data, and determine, according to the target message sending template, a target message sending rule in the message sending rule set corresponding to the target message sending template; a target message obtaining unit, configured to fill the user data into the target message sending template to obtain the target message if the target message sending rule indicates that the target message sending template is not in a stop sending state and there is a fixed rule configuration in the target message sending rule; The target message sending unit is used to send the target message to the target user according to the fixed rule configuration.
7. The device according to claim 6, characterized in that The template rule determination unit is specifically used to: The message sending templates of the different message sending types are screened according to the target message sending type, and a target message sending template corresponding to the target message sending type is obtained from the message sending templates of the different message sending types.
8. The device according to claim 6, characterized in that The template rule determination unit is specifically used to: Screening the rule identifier set according to the target template identifier to obtain a target rule identifier in the rule identifier set that is identical to the target template identifier; A target message sending rule is determined according to the target rule identifier.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of a message sending method as described in any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a message sending method as claimed in any one of claims 1 to 5 are implemented.