Message sending method, device, computer equipment and computer readable storage medium

By responding to message sending requests, determining the task type and using message configuration templates to generate message copy, the problem of frequent writing and resource waste is solved, and efficient message sending and quality assurance are achieved.

CN116319645BActive Publication Date: 2024-10-25BEIJING WATERDROP TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310259709.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-10-25
Estimated Expiration
2043-03-13

AI Technical Summary

Technical Problem

In the existing technology, message copy needs to be frequently written manually, and staff members have uneven writing abilities, resulting in low message sending efficiency and easy to be ignored by users, resulting in a waste of resources.

Method used

By responding to the message sending request, determining the task type, determining the target diversion method based on the diversion configuration information, using the message configuration template to generate the message copy to be sent, and sending it according to the diversion method, realizing flexible diversion processing of messages of different task types and reducing manual processing. Ensure message quality and efficiency.

Benefits of technology

Generate message copy through configuration, reduce manual processing, improve message sending efficiency, avoid resource waste, and ensure message quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319645B_ABST
    Figure CN116319645B_ABST
Patent Text Reader

Abstract

The present application discloses a message sending method, device, computer equipment and computer-readable storage medium, which relates to the field of Internet technology. Messages of different task types use different message configuration templates to generate message texts, and can flexibly divert messages of different task types, so that the generation of texts can be realized through configuration, reducing the workload of manual processing, ensuring the quality of message texts, improving message sending efficiency and avoiding waste of message resources. The method includes: in response to a message sending request, determining the message sending task to be executed indicated by the message sending request, and obtaining the task type of the message sending task; determining the target diversion method based on the diversion configuration information corresponding to the task type; using the message configuration template associated with the target diversion method to generate the message text to be sent, and sending the message text according to the target diversion method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a message sending method, device, computer equipment and computer-readable storage medium. Background Art

[0002] With the continuous development of Internet technology, official accounts, text messages, APPs, etc. have become the most important links for companies to connect customers with products and services. Companies can send messages to users to help them obtain the latest data information, thereby bringing in traffic.

[0003] In related technologies, for different scenarios, staff need to determine the content of the activity or business in advance and write the message copy so that the message copy is directly related to the activity or business content. Once the message copy is determined, the staff will use the message sending platform to send the message copy to the user in the form of a short message, in-app notification, etc. for the user to browse and reference.

[0004] In the process of implementing this application, the applicant found that the related technology has at least the following problems:

[0005] Most message copywriting needs to be written manually by staff. For different scenarios, copywriting needs to be written frequently, and the staff's ability to write copywriting varies. Messages are easily ignored by users after they are delivered, which not only reduces the efficiency of message sending, but also easily leads to a waste of message resources. Summary of the invention

[0006] In view of this, the present application provides a message sending method, apparatus, computer device and computer-readable storage medium, the main purpose of which is to solve the problem that frequent copywriting is required for different scenarios, the ability of staff to write copywriting is uneven, and messages are easily ignored by users after they are delivered, which not only results in low message sending efficiency but also easily causes waste of message resources.

[0007] According to the first aspect of the present application, a message sending method is provided, the method comprising:

[0008] In response to a message sending request, determining a message sending task to be executed indicated by the message sending request, and acquiring a task type of the message sending task;

[0009] Determine a target diversion method based on the diversion configuration information corresponding to the task type;

[0010] A message configuration template associated with the target diversion method is used to generate a message copy to be sent, and the message copy is sent according to the target diversion method.

[0011] Optionally, determining a target diversion method based on the diversion configuration information corresponding to the task type includes:

[0012] Querying the diversion configuration information corresponding to the task type, and reading the diversion strategy indicated by the diversion configuration information;

[0013] When the diversion strategy indicates random diversion, a random function is obtained, and a diversion ratio is determined based on the random function, and the diversion ratio is used as the target diversion mode;

[0014] When the diversion strategy indicates model diversion, a preset algorithm model is obtained, and based on the preset algorithm model, an optional diversion method is determined from multiple optional diversion methods as the target diversion method.

[0015] Optionally, determining the diversion ratio based on the random function includes:

[0016] Run the random function, obtain the current random value output by the random function, and determine a preset value range;

[0017] If the current random value is within the preset value range, the current random value is used as the diversion ratio;

[0018] If the current random value is outside the preset value range, the random function is re-run to obtain a new random value, and the new random value is compared with the preset value range until a random value within the preset value range is obtained as the diversion ratio.

[0019] Optionally, determining the target diversion method from a plurality of optional diversion methods based on the preset algorithm model includes:

[0020] Determine the multiple optional diversion modes, and respectively obtain diversion information of each of the multiple optional diversion modes to obtain multiple diversion information;

[0021] Determine the requester who initiated the message sending request, and obtain the message conversion data of the requester;

[0022] Input the plurality of diversion information and the message conversion data into the preset algorithm model, and obtain the expected conversion rate corresponding to each diversion information output by the preset algorithm model;

[0023] The target diversion information with the highest preset conversion rate is determined among the multiple diversion information, and the optional diversion method indicated by the target diversion information is used as the target diversion method.

[0024] Optionally, the using the message configuration template associated with the target diversion mode to generate the message text to be sent includes:

[0025] Query the message configuration template corresponding to the target diversion method, and determine the user type and copy configuration rules in the message configuration template;

[0026] According to at least one variable placeholder specified by the text configuration rule, variable data corresponding to each variable placeholder in the at least one variable placeholder is obtained, and each variable placeholder in the text configuration rule is replaced with the corresponding variable data to obtain an initial message text;

[0027] According to the user type, a user identifier is obtained, and the initial message copy is marked with the user identifier to obtain the message copy to be sent.

[0028] Optionally, obtaining variable data corresponding to each variable placeholder in the at least one variable placeholder specified by the copy configuration rule includes:

[0029] Reading the text configuration rule, and determining the at least one variable placeholder in the text configuration rule;

[0030] For each variable placeholder in the at least one variable placeholder, query the variable type and field identifier associated with the variable placeholder in the copy configuration rule;

[0031] When the variable type indication is obtained in the database, querying the database for the data indicated by the field identifier as the variable data corresponding to the variable placeholder;

[0032] When the variable type indicates reporting and obtaining, the replacement data transmitted by the access party that initiates the message sending request is obtained, and the replacement data is used as the variable data corresponding to the variable placeholder.

[0033] Optionally, the acquiring the replacement data input by the access party that initiates the message sending request includes:

[0034] When the variable type indicates reporting acquisition, determining the access party that initiated the message sending request, sending a data providing request to the access party, and receiving data returned by the access party based on the data providing request as the replacement data; or,

[0035] The data carried in the message sending request is obtained, and the data is used as the replacement data.

[0036] According to a second aspect of the present application, a message sending device is provided, the device comprising:

[0037] An acquisition module, configured to determine, in response to a message sending request, a message sending task to be executed indicated by the message sending request, and acquire a task type of the message sending task;

[0038] A determination module, used to determine a target diversion method based on the diversion configuration information corresponding to the task type;

[0039] The sending module is used to generate a message copy to be sent by using the message configuration template associated with the target diversion method, and send the message copy according to the target diversion method.

[0040] Optionally, the determination module is used to query the diversion configuration information corresponding to the task type, and read the diversion strategy indicated by the diversion configuration information; when the diversion strategy indicates random diversion, obtain a random function, and based on the random function, determine the diversion ratio, and use the diversion ratio as the target diversion method; when the diversion strategy indicates model diversion, obtain a preset algorithm model, and based on the preset algorithm model, determine an optional diversion method from multiple optional diversion methods as the target diversion method.

[0041] Optionally, the determination module is used to run the random function, obtain the current random value output by the random function, and determine a preset value range; if the current random value is within the preset value range, the current random value is used as the diversion ratio; if the current random value is outside the preset value range, the random function is re-run to obtain a new random value, and the new random value is compared with the preset value range until a random value within the preset value range is obtained as the diversion ratio.

[0042] Optionally, the determination module is used for diversion information of a certain method to obtain multiple diversion information; determine the requesting party that initiates the message sending request, and obtain the message conversion data of the requesting party; input the multiple diversion information and the message conversion data into the preset algorithm model, and obtain the expected conversion rate corresponding to each diversion information output by the preset algorithm model; determine the target diversion information with the highest preset conversion rate among the multiple diversion information, and use the optional diversion method indicated by the target diversion information as the target diversion method.

[0043] Optionally, the sending module is used to query the message configuration template corresponding to the target diversion method, determine the user type and the copy configuration rule in the message configuration template; obtain the variable data corresponding to each variable placeholder in the at least one variable placeholder according to the at least one variable placeholder specified by the copy configuration rule, and use the corresponding variable data to replace each variable placeholder in the copy configuration rule to obtain the initial message copy; according to the user type, obtain the user identifier, use the user identifier to mark the initial message copy, and obtain the message copy to be sent.

[0044] Optionally, the sending module is used to read the text configuration rules and determine the at least one variable placeholder in the text configuration rules; for each of the at least one variable placeholder, query the variable type and field identifier associated with the variable placeholder in the text configuration rules; when the variable type indication is obtained in the database, query the database for the data indicated by the field identifier as the variable data corresponding to the variable placeholder; when the variable type indication is reported and obtained, obtain the replacement data passed in by the access party that initiated the message sending request, and use the replacement data as the variable data corresponding to the variable placeholder.

[0045] Optionally, the sending module is used to determine the access party that initiated the message sending request when the variable type indicates reported acquisition, send a data provision request to the access party, and receive data returned by the access party based on the data provision request as the replacement data; or, obtain the data carried by the message sending request, and use the data as the replacement data.

[0046] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0047] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.

[0048] By means of the above technical scheme, the present application provides a message sending method, apparatus, computer equipment and computer-readable storage medium. The present application responds to a message sending request, determines the message sending task to be executed indicated by the message sending request, obtains the task type of the message sending task, determines the target diversion method based on the diversion configuration information corresponding to the task type, generates the message text to be sent by using the message configuration template associated with the target diversion method, and sends the message text according to the target diversion method. Messages of different task types use different message configuration templates to generate message texts, and can flexibly divert messages of different task types, so that the generation of texts can be realized through configuration, reducing the workload of manual processing, ensuring the quality of the message texts, and improving the message sending efficiency while avoiding waste of message resources.

[0049] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0051] Figure 1 A schematic diagram of a message sending method provided in an embodiment of the present application is shown;

[0052] Figure 2A A schematic diagram of another message sending method provided in an embodiment of the present application is shown;

[0053] Figure 2B A schematic diagram of the system architecture of a message sending system provided in an embodiment of the present application is shown;

[0054] Figure 3 A schematic diagram of the structure of a message sending device provided in an embodiment of the present application is shown;

[0055] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0056] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0057] The present application embodiment provides a message sending method, such as Figure 1 As shown, the method includes:

[0058] 101. In response to a message sending request, determine a message sending task to be executed indicated by the message sending request, and obtain a task type of the message sending task.

[0059] The applicant recognizes that in the field of the Internet, reaching users through messages such as text messages and notifications to bring about conversions has become one of the important ways. Many companies send a variety of messages to users every day, thereby bringing about traffic conversions. How to design a support system for message reaching is becoming increasingly important for staff to improve work efficiency and bring greater benefits to the company. Therefore, the present application proposes a message sending method, in which messages of different task types use different message configuration templates to generate message texts, and messages of different task types can be flexibly diverted, so that the generation of texts can be realized through configuration, reducing the workload of manual processing, ensuring the quality of message texts, while improving message sending efficiency and avoiding waste of message resources.

[0060] The embodiments of the present application can be applied to a message sending system, and the message sending system provides an interface for the access party of the message sending. The access party can establish a data link with the message sending system through the interface, so as to use the functions of the message sending system. Among them, the message sending system will provide the access party with a variety of different types of tasks, which may include one-time tasks, periodic tasks, event-type tasks, manual tasks, interface-triggered tasks, etc. The access party can choose which task type to send the message. After the access party determines the task type, the message sending system will receive the access party's message sending request, determine the message sending task to be executed indicated by the message sending request, and the message sending task is also the task determined by the access party. Then, the message sending system will obtain the task type of the message sending task, and then determine how to implement message diversion and how to implement copywriting generation according to the task type.

[0061] 102. Determine a target diversion method based on diversion configuration information corresponding to the task type.

[0062] In the embodiment of the present application, each task type has corresponding diversion configuration information in the message sending system, and the diversion configuration information is used to indicate how to divert and send messages related to the task of the task type, wherein one message type can be configured with multiple diversions, each diversion can adopt a different diversion method, and each diversion method can be set up with a separate message configuration template. Therefore, after the task type is determined, the message sending system will obtain the diversion configuration information corresponding to the task type, select a target diversion method according to the diversion configuration information, and subsequently use the message configuration template corresponding to the target diversion method to generate the message copy.

[0063] 103. Generate a message copy to be sent by using a message configuration template associated with the target diversion method, and send the message copy according to the target diversion method.

[0064] In an embodiment of the present application, after the target diversion method is determined, since each diversion method can set a message configuration template separately, the message sending system will use the message configuration template associated with the target diversion method to generate the message text to be sent, and send the message text according to the target diversion method.

[0065] The method provided in the embodiment of the present application, in response to a message sending request, determines the message sending task to be executed indicated by the message sending request, obtains the task type of the message sending task, determines the target diversion method based on the diversion configuration information corresponding to the task type, uses the message configuration template associated with the target diversion method to generate the message text to be sent, and sends the message text according to the target diversion method. Messages of different task types use different message configuration templates to generate message texts, and messages of different task types can be flexibly diverted, so that the generation of texts can be realized through configuration, the workload of manual processing is reduced, the quality of the message texts is ensured, the message sending efficiency is improved, and the waste of message resources is avoided.

[0066] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another message sending method, such as Figure 2A As shown, the method includes:

[0067] 201. In response to a message sending request, determine a message sending task to be executed indicated by the message sending request, and obtain a task type of the message sending task.

[0068] The embodiments of the present application can be applied to a message sending system, and the message sending system provides an interface for the access party of the message sending. The access party can establish a data link with the message sending system through the interface, so as to use the functions of the message sending system. Among them, the message sending system will provide the access party with a variety of different types of tasks, which may include one-time tasks, periodic tasks, event-type tasks, manual tasks, interface-triggered tasks, etc. The access party can choose which task type to send the message. After the access party determines the task type, the message sending system will receive the access party's message sending request, determine the message sending task to be executed indicated by the message sending request, and the message sending task is also the task determined by the access party. Then, the message sending system will obtain the task type of the message sending task, and then determine how to implement message diversion and how to implement copywriting generation according to the task type.

[0069] The following describes the system architecture of the message sending system: Figure 2B As shown, the message sending system uses API (Application Program Interface) to connect with the access party, and obtains information and data provided by the access party through API; the message sending system includes a marketing layer and a basic sending layer. Among them, the marketing layer is divided into task nodes, diversion nodes and copy processing nodes; the task types included in the task nodes include one-time tasks, periodic tasks, event-type tasks, manual tasks, interface-triggered tasks, etc., and the access party can choose which task type they want to send messages with; the diversion node is used to determine the diversion method of sending messages, and the diversion method can be configured in advance. The diversion method can specifically include random diversion, model diversion, etc.; the copy processing node is used to generate message copy, and the copy processing node includes a message configuration template, which can be configured, and when the copy processing node generates the message copy, it can obtain the variable data used to replace the variable placeholder in the message configuration template. The specific variable data may include crowd package data, SQL (Structured Query Language) data, event data, API transmission data, etc. The basic sending layer has a routing function and has a data link with the marketing layer. The message copy generated by the marketing layer will be sent to the basic sending layer, and the basic sending layer will send the message copy. Among them, the access party can configure the message sending channel in the basic sending layer in advance, so that after the marketing layer generates the message copy, the basic sending layer can directly send the message copy according to the specified channel.

[0070] 202. Determine a target diversion method based on diversion configuration information corresponding to the task type.

[0071] In the embodiment of the present application, each task type has corresponding diversion configuration information in the message sending system. The diversion configuration information is used to indicate how to divert and send messages related to the task of the task type. Among them, one message type can be configured with multiple diversions, each diversion can adopt a different diversion method, and each diversion method can be set up with a separate message configuration template. Therefore, after the task type is determined, the message sending system will obtain the diversion configuration information corresponding to the task type, select a target diversion method according to the diversion configuration information, and subsequently use the message configuration template corresponding to the target diversion method to generate the message copy. The following describes the process of determining the target diversion method:

[0072] Since each task type has corresponding diversion configuration information in the message sending system, the message sending system will query the diversion configuration information corresponding to the task type and read the diversion strategy indicated by the diversion configuration information. Among them, the diversion strategy can include random diversion and model diversion. Different diversions in the random diversion method need to configure the diversion ratio. The sum of the respective proportions of all diversions is 100%. In actual applications, the current random value can be obtained through the random function, and the percentage start and end values ​​are calculated one by one according to the different configured diversions to determine whether the current random value can be used as the diversion ratio. That is, when the diversion strategy indicates random diversion, the message sending system will obtain the random function, and determine the diversion ratio based on the random function, and use the diversion ratio as the target diversion method. Specifically, when determining the diversion ratio, the message sending system will run the random function to obtain the current random value output by the random function. Since the diversion ratio needs to be maintained between 0% and 100%, the message sending system will use 0% to 100% as the preset value interval to determine whether the current random value of the random function data meets this preset value interval. If the current random value is within the preset value range, it means that the current random value is between 0% and 100%, which can be used as the diversion ratio. Therefore, the message sending system will use the current random value as the diversion ratio; if the current random value is outside the preset value range, it means that the current random value exceeds 0% to 100%, which cannot be used as the diversion ratio, and the random value needs to be re-determined. Therefore, the message sending system will re-run the random function, obtain a new random value, and compare the new random value with the preset value range until a random value within the preset value range is obtained as the diversion ratio. After determining the diversion ratio, the diversion ratio can be used as the target diversion method, and the message sending operation is performed according to the diversion ratio.

[0073] Model diversion is also known as AI (Artificial Intelligence) diversion. Model diversion is a method of obtaining the best conversion type for the current user through a machine learning algorithm. A preset algorithm model will be established for each task type. The task type can correspond to multiple optional diversion methods. The preset algorithm model automatically learns the diversion information of the optional diversion method and the message conversion data of the requester as input, so that the message sending system will select the optional diversion method with the highest expected conversion rate as the target diversion method. That is, when the diversion strategy indicates model diversion, the message sending system obtains the preset algorithm model, and based on the preset algorithm model, determines an optional diversion method as the target diversion method from multiple optional diversion methods. Specifically, when determining the target diversion method, the message sending system will determine multiple optional diversion methods, obtain the diversion information of each optional diversion method in the multiple optional diversion methods, obtain multiple diversion information, and determine the requester who initiates the message sending request, obtain the message conversion data of the requester, input the multiple diversion information and message conversion data into the preset algorithm model, obtain the expected conversion rate corresponding to each diversion information output by the preset algorithm model, and determine the target diversion information with the highest preset conversion rate among the multiple diversion information, and use the optional diversion method indicated by the target diversion information as the target diversion method. Among them, the preset algorithm model corresponding to each task type can be established in advance. When establishing the preset algorithm model, the optional diversion method corresponding to the task type can be queried first, and the information content that needs to be sent currently can be determined as the message conversion data. Different optional diversion methods are used to send the message conversion data, and the actual conversion rate of the message conversion data of this type when it is sent using different optional diversion methods is counted. Then, all the collected data is used as samples for model training to obtain a model that can predict the probability of a message conversion data being converted using different optional diversion methods, and the model is associated with the task type and stored so that the model can be directly used when model diversion is needed later.

[0074] 203. Query the message configuration template corresponding to the target diversion method, and determine the user type and text configuration rules in the message configuration template.

[0075] In an embodiment of the present application, after the target diversion method is determined, since each diversion method can set a message configuration template separately, the message sending system will use the message configuration template associated with the target diversion method to generate the message text to be sent, and send the message text according to the target diversion method.

[0076] The message configuration template can be configured in advance. The message configuration template mainly includes user type and text configuration rules. Among them, the user type indicates which users the current message configuration template is applicable to. For example, the user type can be represented by user ID (Identity), mobile phone number, device number, etc.; the text configuration rules are set to the settings of preset text and variable data. The variable data is mainly configured through the relationship between field identifiers and variable placeholders. That is to say, the text configuration rules include some preset texts and some variable placeholders. The variable placeholders need to be replaced later. The specific data used to replace the variable placeholder needs to be obtained according to the field identifier corresponding to the variable placeholder.

[0077] 204. According to at least one variable placeholder specified by the text configuration rule, obtain variable data corresponding to each variable placeholder in the at least one variable placeholder, and replace each variable placeholder in the text configuration rule with the corresponding variable data to obtain an initial message text.

[0078] In the embodiment of the present application, after the text configuration rules are determined, since some variable placeholders are specified in the text configuration rules, the variable placeholders need to be replaced with some variable data. Therefore, the message sending system obtains the variable data corresponding to each variable placeholder in at least one variable placeholder according to at least one variable placeholder specified in the text configuration rules, and replaces each variable placeholder in the text configuration rules with the corresponding variable data to obtain the initial message text. The following describes the process of obtaining the variable data corresponding to each variable placeholder:

[0079] First, the message sending system reads the copy configuration rules and determines at least one variable placeholder in the copy configuration rules. Then, for each variable placeholder in the at least one variable placeholder, the message sending system queries the variable type and field identifier associated with the variable placeholder in the copy configuration rules. The variable type is used to indicate the source of the variable data, specifically whether it is obtained from a database or reported by the access party.

[0080] Specifically, when the variable type indicates that it is obtained in the database, it means that the variable data needs to be queried and obtained by the message sending system itself. Therefore, the message sending system will query the data indicated by the field identifier in the database as the variable data corresponding to the variable placeholder. In the actual application process, for commonly used large-volume data, the message sending system can actually store and query through Hbase (an open source database) and Elasticsearch (a search server). For example, the crowd package data in actual applications can be obtained and used as variable data in this way; and for infrequently used large batches of data, the message sending system can store through Hive (a data warehouse tool), and after SQL query, the results are centrally stored in MySQL (a relational database management system) so that the message sending system can directly query in MySQL when it determines that the variable type indicates that it is obtained in the database. For example, SQL data in actual applications can be obtained and used as variable data in this way.

[0081] When the variable type indicates reporting and obtaining, it means that the variable data needs to be reported and provided by the access party. Therefore, the message sending system will obtain the replacement data passed in by the access party that initiates the message sending request, and use the replacement data as the variable data corresponding to the variable placeholder. In the actual application process, the replacement data can be obtained in different ways. One is that the message sending system requests the access party to report, that is, determines the access party that initiates the message sending request, sends a data provision request to the access party, and receives the data returned by the access party based on the data provision request as replacement data. For example, for dot data, the message sending system can trigger the access party to report in the form of Kafka (distributed publish-subscribe message system) messages, and use the data transmitted to the system by the access party's Web (network) end or service end as variable data. The other is that the access party actively reports, that is, obtains the data carried by the message sending request, and uses the data as replacement data. For example, when the access party initiates the message sending request, it can directly carry the desired variable data as replacement data in the message sending request through the interface between the access party and the message sending system, so that the message sending system directly uses the data provided by the access party through the interface as variable data.

[0082] It should be noted that in actual application, the message system may not be able to obtain variable data through any of the methods in the above process. In this case, the message system can directly use the default value corresponding to each variable placeholder as the variable data to replace the corresponding variable placeholder. The embodiment of the present application does not specifically limit the method for obtaining variable data.

[0083] 205. Obtain a user ID according to the user type, and use the user ID to mark the initial message copy to obtain the message copy to be sent.

[0084] In an embodiment of the present application, after the initial message copy is generated, since the user type indicates which users the generated message copy needs to be sent to, the message sending system will obtain the user identifier according to the user type, and use the user identifier to mark the initial message copy to obtain the message copy to be sent, so that the message can be sent purposefully.

[0085] 206. Send message copy according to the target diversion method.

[0086] In the embodiment of the present application, since it has been previously determined that the message will be sent in a target diversion manner, after the message copy is generated, the message sending system will execute the sending of the message copy according to the message flow of the target diversion manner.

[0087] In this way, through the technical solution of this application, the specific data required for the copywriting variables can be obtained in a configured, non-coding manner, thereby reducing development costs and improving the work efficiency of operational sales personnel; through flexible diversion methods, conversion tests can be flexibly carried out according to the needs of different business conversion test scenarios, and AI diversion methods can be introduced to intelligently improve conversion efficiency.

[0088] The method provided in the embodiment of the present application, in response to a message sending request, determines the message sending task to be executed indicated by the message sending request, obtains the task type of the message sending task, determines the target diversion method based on the diversion configuration information corresponding to the task type, uses the message configuration template associated with the target diversion method to generate the message text to be sent, and sends the message text according to the target diversion method. Messages of different task types use different message configuration templates to generate message texts, and messages of different task types can be flexibly diverted, so that the generation of texts can be realized through configuration, the workload of manual processing is reduced, the quality of the message texts is ensured, the message sending efficiency is improved, and the waste of message resources is avoided.

[0089] Further, as Figure 1 In a specific implementation of the method, the present application provides a message sending device, such as Figure 3 As shown, the device includes: an acquisition module 301, a determination module 302, and a sending module 303.

[0090] The acquisition module 301 is used to determine, in response to a message sending request, a message sending task to be executed indicated by the message sending request, and acquire a task type of the message sending task;

[0091] The determination module 302 is used to determine a target diversion method based on the diversion configuration information corresponding to the task type;

[0092] The sending module 303 is used to generate a message copy to be sent by using the message configuration template associated with the target diversion method, and send the message copy according to the target diversion method.

[0093] In a specific application scenario, the determination module 302 is used to query the diversion configuration information corresponding to the task type, and read the diversion strategy indicated by the diversion configuration information; when the diversion strategy indicates random diversion, obtain a random function, and based on the random function, determine the diversion ratio, and use the diversion ratio as the target diversion method; when the diversion strategy indicates model diversion, obtain a preset algorithm model, and based on the preset algorithm model, determine an optional diversion method from multiple optional diversion methods as the target diversion method.

[0094] In a specific application scenario, the determination module 302 is used to run the random function, obtain the current random value output by the random function, and determine a preset value range; if the current random value is within the preset value range, the current random value is used as the diversion ratio; if the current random value is outside the preset value range, the random function is re-run to obtain a new random value, and the new random value is compared with the preset value range until a random value within the preset value range is obtained as the diversion ratio.

[0095] In a specific application scenario, the determination module 302 is used to determine the diversion information of the method, obtain multiple diversion information; determine the requester who initiates the message sending request, and obtain the message conversion data of the requester; input the multiple diversion information and the message conversion data into the preset algorithm model, and obtain the expected conversion rate corresponding to each diversion information output by the preset algorithm model; determine the target diversion information with the highest preset conversion rate among the multiple diversion information, and use the optional diversion method indicated by the target diversion information as the target diversion method.

[0096] In a specific application scenario, the sending module 303 is used to query the message configuration template corresponding to the target diversion method, determine the user type and the copy configuration rule in the message configuration template; obtain the variable data corresponding to each variable placeholder in the at least one variable placeholder according to the at least one variable placeholder specified by the copy configuration rule, and use the corresponding variable data to replace each variable placeholder in the copy configuration rule to obtain the initial message copy; according to the user type, obtain the user identifier, use the user identifier to mark the initial message copy, and obtain the message copy to be sent.

[0097] In a specific application scenario, the sending module 303 is used to read the text configuration rule and determine the at least one variable placeholder in the text configuration rule; for each of the at least one variable placeholder, query the variable type and field identifier associated with the variable placeholder in the text configuration rule; when the variable type indicates acquisition in the database, query the data indicated by the field identifier in the database as the variable data corresponding to the variable placeholder; when the variable type indicates reported acquisition, obtain the replacement data passed in by the access party that initiated the message sending request, and use the replacement data as the variable data corresponding to the variable placeholder.

[0098] In a specific application scenario, the sending module 303 is used to determine the access party that initiated the message sending request when the variable type indicates the reported acquisition, send a data provision request to the access party, and receive the data returned by the access party based on the data provision request as the replacement data; or, obtain the data carried by the message sending request, and use the data as the replacement data.

[0099] The device provided in the embodiment of the present application responds to a message sending request, determines the message sending task to be executed indicated by the message sending request, obtains the task type of the message sending task, determines the target diversion method based on the diversion configuration information corresponding to the task type, uses the message configuration template associated with the target diversion method to generate the message text to be sent, and sends the message text according to the target diversion method. Messages of different task types use different message configuration templates to generate message texts, and messages of different task types can be flexibly diverted, so that the generation of texts can be realized through configuration, the workload of manual processing is reduced, the quality of the message texts is ensured, the message sending efficiency is improved, and the waste of message resources is avoided.

[0100] It should be noted that for other corresponding descriptions of the functional units involved in the message sending device provided in the embodiment of the present application, reference can be made to Figure 1 and FIG. 2A to FIG. 2B The corresponding description in will not be repeated here.

[0101] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0102] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

[0104] In an exemplary embodiment, see Figure 4 , and also provides a computer device, which includes a bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the message sending method in the above embodiment.

[0105] A computer-readable storage medium stores a computer program, which implements the steps of the message sending method when executed by a processor.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0107] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.

[0108] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0109] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.

[0110] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.

Claims

1. A message sending method, It is characterized in that include: In response to a message sending request, determining a message sending task to be executed indicated by the message sending request, and acquiring a task type of the message sending task; Based on the diversion configuration information corresponding to the task type, a target diversion method is determined, wherein the determining the target diversion method based on the diversion configuration information corresponding to the task type includes: querying the diversion configuration information corresponding to the task type, and reading the diversion strategy indicated by the diversion configuration information; when the diversion strategy indicates random diversion, obtaining a random function, and determining a diversion ratio based on the random function, and using the diversion ratio as the target diversion method; when the diversion strategy indicates model diversion, obtaining a preset algorithm model, and determining an optional diversion method from multiple optional diversion methods based on the preset algorithm model as the target diversion method; A message configuration template associated with the target diversion method is used to generate a message copy to be sent, and the message copy is sent according to the target diversion method.

2. The method according to claim 1, It is characterized in that The determining the diversion ratio based on the random function includes: Run the random function, obtain the current random value output by the random function, and determine a preset value range; If the current random value is within the preset value range, the current random value is used as the diversion ratio; If the current random value is outside the preset value range, the random function is re-run to obtain a new random value, and the new random value is compared with the preset value range until a random value within the preset value range is obtained as the diversion ratio.

3. The method according to claim 1, It is characterized in that The determining the target diversion method from a plurality of optional diversion methods based on the preset algorithm model includes: Determine the multiple optional diversion modes, and respectively obtain diversion information of each of the multiple optional diversion modes to obtain multiple diversion information; Determine the requester who initiated the message sending request, and obtain the message conversion data of the requester; Input the plurality of diversion information and the message conversion data into the preset algorithm model, and obtain the expected conversion rate corresponding to each diversion information output by the preset algorithm model; The target diversion information with the highest preset conversion rate is determined among the multiple diversion information, and the optional diversion method indicated by the target diversion information is used as the target diversion method.

4. The method according to claim 1, It is characterized in that The message configuration template associated with the target diversion method is used to generate a message text to be sent, including: Query the message configuration template corresponding to the target diversion method, and determine the user type and copy configuration rules in the message configuration template; According to at least one variable placeholder specified by the text configuration rule, variable data corresponding to each variable placeholder in the at least one variable placeholder is obtained, and each variable placeholder in the text configuration rule is replaced with the corresponding variable data to obtain an initial message text; According to the user type, a user identifier is obtained, and the initial message copy is marked with the user identifier to obtain the message copy to be sent.

5. The method according to claim 4, It is characterized in that The step of obtaining variable data corresponding to each variable placeholder in the at least one variable placeholder specified by the copy configuration rule includes: Reading the text configuration rule, and determining the at least one variable placeholder in the text configuration rule; For each variable placeholder in the at least one variable placeholder, query the variable type and field identifier associated with the variable placeholder in the copy configuration rule; When the variable type indication is obtained in the database, querying the database for the data indicated by the field identifier as the variable data corresponding to the variable placeholder; When the variable type indicates reporting and obtaining, the replacement data transmitted by the access party that initiates the message sending request is obtained, and the replacement data is used as the variable data corresponding to the variable placeholder.

6. The method according to claim 5, It is characterized in that The obtaining of replacement data input by the access party that initiates the message sending request includes: When the variable type indicates reporting acquisition, determining the access party that initiated the message sending request, sending a data providing request to the access party, and receiving data returned by the access party based on the data providing request as the replacement data; or, The data carried in the message sending request is obtained, and the data is used as the replacement data.

7. A message sending device, It is characterized in that include: An acquisition module, configured to determine, in response to a message sending request, a message sending task to be executed indicated by the message sending request, and acquire a task type of the message sending task; A determination module is used to determine a target diversion method based on the diversion configuration information corresponding to the task type, wherein the determination module is used to query the diversion configuration information corresponding to the task type, and read the diversion strategy indicated by the diversion configuration information; when the diversion strategy indicates random diversion, obtain a random function, and determine a diversion ratio based on the random function, and use the diversion ratio as the target diversion method; when the diversion strategy indicates model diversion, obtain a preset algorithm model, and determine an optional diversion method from multiple optional diversion methods based on the preset algorithm model as the target diversion method; The sending module is used to generate a message copy to be sent by using the message configuration template associated with the target diversion method, and send the message copy according to the target diversion method.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.